Unit

The unit in a realtime cycle is defined at the time of its definition. It is the unit valid at the time of definition.

When the unit changes within the NC program in which realtime cycles are used, switchover takes place at the start of the realtime cycle.

Programming Example

Switch over units for realtime cycles

N010 G00 X0 Y0 Z0 F500 G71
N020 #FLUSH WAIT
; Activate realtime cycle and move Z,
; here the position is traversed in mm
N030 #RT CYCLE DEF[ID = 15 SCOPE = BLOCK END_ACTION = MOVE_ABORT]
N040   $IF ONCE V.RTA.ACS.ACT_POS.X > 10
N050     Z[INDP ABORTING G0 G90 POS = 137 ]
N060   $ENDIF
N070 #RT CYCLE END
; here a switchover to inch takes place
N080 G70
; here the realtime cycle is started but positions
; in the realtime cycle are in mm
N090 #RT CYCLE START [ID = 15]
; This is the block in which the real.time cycle is executed.
N100 G01 X100 F1000
N110 G01 X-100 F1000
N120 G01 X100 F1000
; Here no position request takes place
; as Z was moved
N130 G01 Z100 F1000
N140 G01 Z-100 F1000
N150 G01 Z100 F1000
N160 M30