Referencing using CNC objects

Function available as of V3.1.3119.1.

Store and restore axis position using CNC objects

By parameterising the CNC kernel, it is possible to ensure that axis positions are stored permanently when the CNC is shut down for axes that provide an absolute position within at least one motor revolution. At controller start-up, the axis positions are then restored based on the data stored.

This functionality requires that the CNC be shut down using an ordered procedure to ensure that the required data can be stored permanently. If the system was unable to write the data permanently, it will not be possible to restore axis positions the next time the CNC is restarted.

In order to be able to restore axis positions even in the event of an unscheduled CNC shut-down, it is now possible to read out the data required to restore positions on the fly and trigger a reinitialisation of axis positions by writing this data to the CNC.

This gives controller manufacturers the option of reading out and storing position data at regular intervals, for example, to a file or a battery-buffered memory, in order to restore axis positions based on this data as required.

In order to restore an axis position correctly, the axis position may not change by more than half the value range of the absolute encoder from the time of reading the restore data to the time of restoring the axis position.
This condition determines the required query interval for restoration data.

Read axis positions

The data required to restore axis positions can be read for each axis using the following CNC object: LR_RESTORE_POS_RW_DATA::READ

A read access supplies a data structure of type LR_RESTORE_POS_R_DATA.
The structure contains the following data:

Restore axis positions

To restore a position, enter the data stored by the PLC into the structure LR_RESTORE_POS_W_DATA and supply it to the CNC via the CNC object LR_RESTORE_POS_RW_DATA::WRITE. Write access triggers position restoration.

The structure contains the following data: