MC_ReadStatus (motion control read status)
The MC_ReadStatus instruction returns the status of the axis with respect to the motion currently in progress.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L50E and L70E controllers that support motion control.
MC_ReadStatus

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
EN | Input | BOOL | Instruction block enable.
Applies only to ladder diagram programs. |
AxisIn | Input | AXIS_REF FB_AXIS_REF | Use the AXIS_REF data type parameters to define AxisIn. For an FB_Axis (feedback axis), use the FB_AXIS_REF data type to define AxisIn. |
Enable | Input | BOOL |
|
ENO | Output | BOOL | Enable output. Applies only to ladder diagram programs. |
Axis | Output | AXIS_REF | Axis output is read-only in ladder diagram programs. |
Valid | Output | BOOL |
|
Busy | Output | BOOL |
|
Error | Output | BOOL | Indicates an error occurred.
|
ErrorID | Output | UINT | A unique numeric that identifies the error. The errors for this instruction are defined in motion control function block error IDs. |
ErrorStop | Output | BOOL | TRUE: The axis state is Error Stop. Axis states are defined in motion control axis state values and names. |
Disabled | Output | BOOL | TRUE: The axis state is Disabled. |
Stopping | Output | BOOL | TRUE: The axis state is Stopping. |
Referenced | Output | BOOL | TRUE: The axis state is homed, the absolute reference position is known for the axis. |
StandStill | Output | BOOL | TRUE: The axis state is Standstill. |
DiscreteMotion | Output | BOOL | TRUE: The axis state is Discrete Motion. |
ContinuousMotion | Output | BOOL | TRUE: The axis state is Continuous Motion. |
SynchronizedMotion | Output | BOOL | Synchronized motion is not supported in Micro800 controllers.
|
Homing | Output | BOOL | TRUE: The axis state is Homing. |
ConstantVelocity | Output | BOOL | TRUE: The velocity for the motor is constant. |
Accelerating | Output | BOOL | TRUE: Axis is accelerating, increased energy to the motor. |
Decelerating | Output | BOOL | TRUE: Axis is decelerating, decreased energy to the motor. |
MC_ReadStatus examples
MC_ReadStatus function block diagram example

MC_ReadStatus ladder diagram example

MC_ReadStatus structured text example

Results


Provide Feedback