MC_ReadActualPosition

Function block MC_ReadActualPosition
Reads the actual position of the axis as long as Enable is TRUE. Valid is TRUE when the output position is valid. If Enable is FALSE, the data loses its validity, and Valid is also FALSE, no matter if new data is available.
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.
VAR_OUTPUT
B Valid BOOL A valid output is available at the function block.
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.
B Position LREAL New absolute position. [unit]

 

  MC_ReadActualPosition  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Enable   Valid   BOOL
        Busy   BOOL
        Error   BOOL
        ErrorID   MC_Error
        Position   LREAL