MC_ReadAxisInfo

Function block MC_ReadAxisInfo
Reads information concerning an axis, like modes, inputs directly related to the axis, and certain status information.
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 TRUE if a valid set of outputs is 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 HomeAbsSwitch BOOL Digital home switch input is active.
E LimitSwitchPos BOOL Positive hardware limit switch is active.
E LimitSwitchNeg BOOL Negative hardware limit switch is active.
E Simulation BOOL Checks whether the axis is in simulation mode. For example, a motor is simulated.
E CommunicationReady BOOL The EtherCAT network is initialized and ready for communication.
E ReadyForPowerOn BOOL Axis is ready to be enabled (power on).
E PowerOn BOOL Checks whether the axis is powered on. TRUE = On.
E IsHomed BOOL Checks whether the axis is homed successfully after the axis is homed.
E AxisWarning BOOL Checks whether warnings on the axis are present.

 

  MC_ReadAxisInfo  
AXIS_REF   AxisIn   Axis   AXIS_REF
BOOL   Enable   Valid   BOOL
        Busy   BOOL
        Error   BOOL
        ErrorID   MC_Error
        HomeAbsSwitch   BOOL
        LimitSwitchPos   BOOL
        LimitSwitchNeg   BOOL
        Simulation   BOOL
        CommunicationReady   BOOL
        ReadyForPowerOn   BOOL
        PowerOn   BOOL
        IsHomed   BOOL
        AxisWarning   BOOL