Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Software > Programming
Minimize Text   Default    Enlarge Text
 

Print
E-mail

CJ2M-MD211/MD212 Function Block For Read Status


Read Status
Name Read Status: MD_CPU200_ReadStatus
 
Basic Function Read the output status.
Symbol  
Originates from Tsunagi Lab Europe
Created by OEE-HQ HvB (creation and testing)
File Name MD_CPU200_ReadStatus.cxf
Applicable models CPU Unit CJ2M-CPU Unit version 2.0 or higher with max. two
CJ2M-MD211 (NPN) or
CJ2M-MD212 (PNP)
CX-Programmer Version 9.1.2 or higher
Conditions for usage None.
Function Description Reads the status of the output specified with the Axis No. (Axis) continuously as long as the Output enabled (Enable) is ON. When the Output enabled (Enable) is turned OFF, the status will be reset.
The Status read completed (Done) is turned ON while valid status is being read and output.
The Error flag (Error) will be turned ON and the Error code (ErrorID) will be output if an error occurs for this FB.
Strictly speaking, they are respectively turned ON or output only when Axis No. (Axis) is set out of range.
They are output by this FB, combining the states of the Status Bits in the Bit Area of the applicable CPU Unit.
These statuses will be reset when Output enabled (Enable) turns OFF.


Output variable name Status Output condition
ErrorStop Stopping due to error Pulse Output Stopped Error Flag being ON
StandStill Waiting for Start command Pulse Output In-progress Flag being OFF
Motion Operating or processing command Pulse Output In-progress Flag being ON
Kind of FB definition Connect Always ON type
  Connect the EN input to the Always ON Flag (P_ON).
  The same instance cannot be used in two or more places.
FB Precautions • CW output is taken as + direction and CCW output is taken as – direction.
• When using the Pulse ouput 0&1 or 2&3 simultaneously, use the same Pulse output method for them.
• Set the Total positioning time (PositioningTime) for Acceleration time (Acceleration) and Deceleration time (Deceleration), so that the sum of the Acceleration time (Acceleration) and Deceleration time (Deceleration) would not exceed the Total positioning time (PositioningTime).
• If Start (Execute) is turned ON with no origin defined, the present value of output pulse counts will be cleared to 0 and the next positioning operation is started with the present value of 0. (See the diagram below.)

The MD_CPU*_* function blocks are offered 'as is' and may serve as a basis for development. Users should previously test its adequacy to the final application.

Omron can not be held responsible in case of malfunction.

EN input condition • Connect the EN input to the Always ON Flag (P_ON).
• If a different type of bit is connected to EN, the FB outputs will be maintained when the connected bit is turned OFF.
Application example Reads the status of the pulse output 0 on the CJ2M-MD21* Unit when the Bit A is turned ON.

Related manuals CJ2M Pulse I/O User Manual (W486)
CJ2 Hardware User Manual (W472)
  • Variable Table 

Input Variables

Name Variable name Data type Default Range Description
EN EN BOOL     1 (ON): Starts FB
0 (OFF): Does not start FB
Axis No. Axis INT &0 &0 to &3 &0: Pulse output 0, &1: Pulse output 1
&2: Pulse output 2, &3: Pulse output 3
Enable output Enable BOOL 0(OFF)   1 (ON): Enables output
0 (OFF): Turns OFF output

Output Variables

Name Variable name Data type Range Description
ENO ENO BOOL   1 (ON): FB operating normally
0 (OFF): FB not operating normally
Status read completed Done BOOL   1 (ON) indicates that valid status is being read and output.
Error flag Error BOOL   1 (ON) indicates that an error has occurred in the FB.
Error code (May be omitted) ErrorID WORD   The error code of the error occurred in the FB will be output. For details of the errors, refer to the sections of the manual listed in the Related manuals above. When Unit No. or Axis. No. is out of the range, #0000 will be output.
Error stop ErrorStop BOOL   1 (ON) indicates that the CPU Unit is being stopped due to an error.
Waiting for Start Standstill BOOL   1 (ON) indicates that the CPU Unit is waiting for a Start command.
Operating/Process ing Motion BOOL   1 (ON) indicates that internal processing (for Pulse Output In-progress Flag, etc.) of the CPU Unit is in progress.

Revision History

Version Date Contents
1.00 17-Feb-2012 Based on Function Block: _NCCPU200_ReadStatus

Note

This manual is a reference that explains the function block functions. It does not explain the operational limitations of Units, components, or combinations of Units and components. Always read and understand the Operation Manuals for the system’s Units and other components before using them.

 



Attachments

MD_CPU200_ReadStatus.pdf - Size: 252815


Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2012-02-17
Modified 2012-02-28
Views 2355

 

You are not logged in.