MDI_ReadStatus (FB)
FUNCTION_BLOCK MDI_ReadStatus
This function block makes the status bits available from the axis reference structure.
- InOut:
Scope
Name
Type
Initial
Comment
Input
EnableBOOLFALSE
Enable the function block.
VelocityWindowLREAL5
If the actual velocity is greater than VelocityWindow, the state of axis is valid. Not support homing mode.Unit: user units/s. Default value: 5.
Inout
AxisReference to the axis structure.
Output
ValidBOOLValues are available.
ErrorBOOLSignals that an error has occurred within function block.
ErrorIDContains the error code when there is an error.
ErrorStopBOOLAxis is in specific state.
DisabledBOOLAxis is in specific state.
StoppingBOOLAxis is in specific state.
StandStillBOOLAxis is in specific state.
DiscreteMotionBOOLAxis is in specific state, not support homing mode.
SetPointReachedBOOLReached setpoint set in relevant mode, not support homing mode.
ConstantVelocityBOOLAxis is in specific state, motor moves with constant velocity, not support homing mode.
AcceleratingBOOLAxis is in specific state, increasing energy of the motor, not support homing mode.
DeceleratingBOOLAxis is in specific state, decreasing energy of the motor, not support homing mode.
ForwardBOOLSignals that the position is increasing,not support homing mode.
BackwardBOOLSignals that the position is decreasing,not support homing mode.
LimitActiveBOOLTorque or velocity limit is prohibiting motion, not support homing mode.
HomingBOOLAxis is in specific state.
ActiveControlModeDINT1 - Position, 3-Velocity, 4-Torque, 6-Homing.
DriveWarningActiveBOOLDrive is in warning state.
DriveErrorActiveBOOLDrive is in error state.
DriveErrorCodeDINTError identification. For error details refer to drive manual.
PositionFollowingErrorDINTE530 only user units - For position mode.
Structure: