Displaying the remaining path length

If calculation of the remaining path length is switched active, it is calculated up to as far as the next accurate stop, or as far as the last geometric segment in memory (block preparation). An accurate stop is, for instance, generated by G09 or by G60. However, M-functions of type handshake, decoder stops and G04 implicitly generate an accurate stop.

Activation:

Index Group: 0x3000 + Group ID
Index Offset: 0x0508

see index offset specification for group parameters

Reading the remaining path length:
Reading is again implemented through ADS, and can also be recorded with TwinCAT Scope.

Index Group: 0x3100 + Group ID
Index Offset: 0x0522

The remaining path length can be transferred with the cyclic channel interface to the PLC via ItpSetCyclicLrealOffsets.
see index offset specification for group state