Program code Comment
N5 DEF REAL XOFFSET
N10 TRAORI(1) ; Transformation on.
N20 TOFFON(Z) ; Activation of online tool length
compensation for the Z tool direc-
tion.
N30 WHEN TRUE DO $AA_TOFF[Z]=10 G4 F5 ; A TLC of 10 is interpolated for the
Z tool direction.
...
N100 XOFFSET=$AA_TOFF_VAL[X] ; Assigns actual compensation in the
X direction.
N120 TOFFON(X,-XOFFSET) G4 F5 ; For the X tool direction, the TLC
is reduced back to 0.
Example 2: Deselect the tool length offset
Program code Comment
N10 TRAORI(1) ; Transformation on.
N20 TOFFON(X) ; Activation of online tool length
compensation for the X tool direc-
tion.
N30 WHEN TRUE DO $AA_TOFF[X]=10 G4 F5 ; A TLC of 10 is interpolated for the
X tool direction.
...
N80 TOFFOF(X) ; Position offset of the X tool di-
rection is deleted:
...$AA_TOFF[X]=0
No axis is moved.
The position offset is added to the
actual position in the Work corre-
sponding to the
actual orientation.
Further information
Block preparation
During block preparation in preprocessing, the current tool length offset active in the main run
is also taken into consideration. To allow extensive use to be made of the maximum permissible
axis velocity, it is necessary to stop block preparation with a STOPRE preprocessing stop while
a tool offset is established.
The tool offset is always known at the time of run-in when the tool length offsets are not changed
after program start or if more blocks have been processed after changing the tool length offsets
than the IPO buffer can accommodate between run-in and main run.
Work preparation
3.13 Tool offsets
NC programming
790 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0