MC_ReadStatus_SML (FB)ΒΆ
FUNCTION_BLOCK MC_ReadStatus_SML
Returns the axis state according to the PLCopen the state diagram for a given axis.

- InOut:
Scope
Name
Type
Comment
Inout
Axis
Reference to the axis
Input
Enable
BOOL
The status is updated continuously while enabled
Output
Valid
BOOL
The status is valid
Busy
BOOL
The FB is not finished and new output values are to be expected
Error
BOOL
An error has occurred
ErrorID
The error number
ErrorStop
BOOL
The axis is in state
ErrorStop
Disabled
BOOL
The axis is in state
Disabled
Stopping
BOOL
The axis is in state
Stopping
Homing
BOOL
The axis is in state
Homing
Standstill
BOOL
The axis is in state
Standstill
DiscreteMotion
BOOL
The axis is in state
DiscreteMotion
ContinuousMotion
BOOL
The axis is in state
ContinuousMotion