AXIS_REF

PROGRAM MAIN
VAR
    axis: AXIS_REF;
END_VAR
axis.ReadStatus();

MC axis variable

AXIS_REF 1:

The PLC axis variable MAIN.axis has the data type AXIS_REF.

The data type AXIS_REF:

AXIS_REF 2:

Refreshing the status data structure in AXIS_REF

The status data structure Status of the type ST_AxisStatus contains additional or prepared status and diagnostic information about an axis. The structure is not cyclically refreshed, but has to be updated by the PLC program

Calling the ReadStatus() action from AXIS_REF updates the status data structure and should be done once at the beginning of each PLC cycle.

The status information does not change within a PLC cycle. After calling ReadStatus(), the current status information can be accessed in AXIS_REF within the entire PLC program.
The nature of the status data structure is purely informative. Therefore, its use is not mandatory.