Transformations
7.7 Online tool length compensation (TOFFON, TOFFOF)
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
7-49
Example of tool length offset selection
MD 21190: TOFF_MODE =1
MD 21194: TOFF_VELO[0] =1000
MD 21196: TOFF_VELO[1] =1000
MD 21194: TOFF_VELO[2] =1000
MD 21196: TOFF_ACCEL[0] =1
MD 21196: TOFF_ACCEL[1] =1
MD 21196: TOFF_ACCEL[2] =1
;Absolute values are approached
N5 DEF REAL XOFFSET
N10 TRAORI(1) ;Transformation ON
N20 TOFFON(Z) ;Activation of online tool length offset
;for the Z tool direction
N30 WHEN TRUE DO $AA_TOFF[Z] = 10
G4 F5
;For the Z tool direction, a tool
;length offset of 10 is interpolated
...
N100 XOFFSET = $AA_TOFF_VAL[X]
N120 TOFFON(X, -XOFFSET)
G4 F5
;Assign current offset in X direction
;for the X tool direction, the tool
;length offset will be returned to 0 again
Example of tool length offset deselection
N10 TRAORI(1) ;Transformation ON
N20 TOFFON(X) ;Activating the Z tool direction
N30 WHEN TRUE DO $AA_TOFF[X] = 10
G4 F5
;For the X tool direction, a tool
;length offset of 10 is interpolated
...
N80 TOFFOF(X) ;Positional offset of the X tool direction
;is deleted: …$AA_TOFF[X] = 0
;No axis is traversed;
;to the current position in WCS, the
;positional offset is added in accordance
;with the current orientation