MC_ReadStatus (FB)ΒΆ
FUNCTION_BLOCK MC_ReadStatus
This function block returns the detailed status of the axis with respect to the motion currently in progress.
- InOut:
Scope
Name
Type
Initial
Comment
Inout
Axis
Reference to axis
Input
Enable
BOOL
FALSE
TRUE
: WhileTRUE
, the parameter values are read out continuously.Output
Valid
BOOL
FALSE
TRUE
: Valid outputs are available.Busy
BOOL
FALSE
TRUE
: Execution of the function block is not finished.Error
BOOL
FALSE
TRUE
: Error has occurred within the function block.ErrorID
SMC_ERROR
0
Error identification
Disabled
BOOL
FALSE
TRUE
: Axis is in statedisabled
(see SMC_AXIS_STATE).Errorstop
BOOL
FALSE
TRUE
: Axis is in stateerrorstop
(see SMC_AXIS_STATE).Stopping
BOOL
FALSE
TRUE
: Axis is in statestopping
(see SMC_AXIS_STATE).StandStill
BOOL
FALSE
TRUE
: Axis is in statestandstill
(see SMC_AXIS_STATE).DiscreteMotion
BOOL
FALSE
TRUE
: Axis is in statediscrete_motion
(see SMC_AXIS_STATE).ContinuousMotion
BOOL
FALSE
TRUE
: Axis is in statecontinuous_motion
(see SMC_AXIS_STATE).SynchronizedMotion
BOOL
FALSE
TRUE
: Axis is in statesynchronized_motion
(see SMC_AXIS_STATE).Homing
BOOL
FALSE
TRUE
: Axis is in statehoming
(see SMC_AXIS_STATE).ConstantVelocity
BOOL
FALSE
TRUE
: Motor moves with constant velocity.Accelerating
BOOL
FALSE
TRUE
: Energy of motor increases.Decelerating
BOOL
FALSE
TRUE
: Energy of motor decreases.FBErrorOccured
BOOL
FALSE
TRUE
: Function block error has occured. It has not yet been cleared with SMC_ClearFBError.