MC_ReadMotionState

Function block MC_ReadMotionState
Reads the status of the axis in connection with the motion currently in progress.
VAR_IN_OUT
B AxisIn AXIS_REF Reference to an axis.
VAR_INPUT
B Enable BOOL Gets the value of the parameter continuously while enabled.
E Source MC_Source Defines the source of the relevant data.
VAR_OUTPUT
B Valid BOOL TRUE if a valid set of outputs available.
E Busy BOOL The function block is not finished and new output values are to be expected.
B Error BOOL Signals that an error has occurred within the function block.
E ErrorID MC_Error Error identification.
E ConstantVelocity BOOL Velocity is constant and may be zero. For the actual value a range is applicable (range is hardware-specific).
E Accelerating BOOL Increasing the absolute value of the velocity.
E Decelerating BOOL Decreasing the absolute value of the velocity.
E DirectionPositive BOOL Signals that the position is increasing.
E DirectionNegative BOOL Signals that the position is decreasing.

 

  MC_ReadMotionState  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Enable   Valid   BOOL
MC_Source   Source   Busy   BOOL
        Error   BOOL
        ErrorID   MC_Error
        ConstantVelocity   BOOL
        Accelerating   BOOL
        Decelerating   BOOL
        DirectionPositive   BOOL
        DirectionNegative   BOOL