Skip to main content

7.16.10 MC_ReadStatus

Function

Returns the detailed status of the state diagram for the selected axis

LD graphics

alt text

Parameter description

ParametersTypeDeclarationDescriptionRemarks
AxisAXISVAR_IN_OUTSystem axis for executing commandsInvoke Function Block
EnableBOOLVAR_INEnable or not
ValidBOOLVAR_OUTIf there is a valid set of outputs available, the output is TRUE
BusyBOOLVAR_OUTWhether there is a valid output for FB, True:FB is not terminated
ErrorBOOLVAR_OUTAn error signal has occurred within the FB
ErrorIDWORDVAR_OUTError ID
ErrorStopBOOLVAR_OUTIndicates if the axis is in the "Error Stop" state (the intention of this state is that the axis stops and no further motion commands will be accepted until reset)
DisabledBOOLVAR_OUTIndicates whether the axis is in the "disabled" state (power is off and the axis has no errors)
StoppingBOOLVAR_OUTIndicates whether the axis is in a stopping sequence
StandstillBOOLVAR_OUTIndicates whether the axis is in a "standstill" state (power on, no errors on the axis, and no motion commands on the axis)
DiscreteMotionBOOLVAR_OUTIndicates whether the axis is in "discrete motion"
ContinuousMotionBOOLVAR_OUTIndicates whether the axis is in "continuous motion"
SynchronizedMotionBOOLVAR_OUTIndicates whether the axis is in "synchronous motion"
HomingBOOLVAR_OUTWhether the axis is in the homing sequence
ConstantVelocityBOOLVAR_OUTIndicates whether the axis is moving at a constant speed
AcceleratingBOOLVAR_OUTIndicates whether the axis is accelerating
DeceleratingBOOLVAR_OUTIndicates whether the axis is decelerating