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
MC_ReadStatus
MC_ReadStatus parameters
Parameter
Parameter Type
Data Type
Description
EN
Input
BOOL
Instruction block enable.
  • TRUE: Execute current MC_ReadStatus computation.
  • FALSE: There is no computation.
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
  • TRUE: Get the axis status continuously.
  • FALSE: All status outputs are reset to 0.
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
  • TRUE: Valid outputs are available.
  • FALSE: Outputs not available.
Busy
Output
BOOL
  • TRUE: The function block is working and new output values are expected.
  • FALSE: The function block is idle.
Error
Output
BOOL
Indicates an error occurred.
  • TRUE: An error is detected.
  • FALSE: No error.
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.
  • TRUE: Never true.
  • FALSE: Always false.
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 ladder diagram example
MC_ReadStatus structured text example
MC_ReadStatus structured text example
Results
Results
Axis monitoring
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal