Description 2.1.1 DISTANCE mode In DISTANCE mode, the location of the STOP is specified by the “dist_prog_start” control unit [ } 26] . "dist_prog_start" is the absolute path travelled from program start and is monotonically increasing. This means that each program position can be uniquely identified. The "dist_prog_start" value can be reset with the NC command #DISTANCE PROG START CLEAR. Return values from the CNC to the PLC (display data) are the axis positions of the first three axes and the "dist_prog_start" at the next/current STOP. A STOP that is set absolute or a one-off relative STOP is cleared during forward/reverse rotation. Relative iterative STOPs are retained.
The table below shows the possible combinations of the parameter “dist_or_pos” and the parameter “rel_abs_mode” and the resulting behaviour of the CNC for DISTANCE mode (`axis_nr `= 0): TF5200 | TwinCAT 3 CNC Insert stop command 11 Version: 1.141 Specified dimension (rel abs mode) _ _ Distance (dist or pos) _ _ CNC behaviour relative iterative (0) =0 a possibly set STOP that is not yet reached is cleared immediate one-off STOP at current distance >0 (possibly interrupt) new STOP relative to the current distance, automatic new relative STOPs after continuation of the previous STOP.
absolute (1) = immediate STOP at current distance > current distance STOP at commanded distance relative one-off (2) = immediate STOP at current distance > 0 (possibly interrupt) and insert a STOP relative to current distance