12. Tool Compensation Functions
12.7 Programmed Compensation Input; G10, G11.1
240
(4) When using one workpiece coordinate system as multiple workpiece coordinate
systems
#1 =
−
50. #2 = 10. ;
G22
L200 P5 ;
M02 ;
%
N1
G90 G54 G10 L2 P1 X#1 Y#1 ;
N2
G00 X0 Y0 ;
N3 X
−
5. F100 ;
N4
X0 Y
−
5. ;
N5 Y0
;
N6
#1 = #1 + #2 ;
N7 G23
;
%
Main program
Subprogram
L200
Basic machine coordinate
system zero point
4th time
3rd time
2nd time
1st time
-X -10.
-10.
M
-20.
-Y
-50.
-30.
-60.
-40.
G54""
W
W
W
W
W
G54"'
G54"
G54'
G54
-50. -40.
-30.
-20.
5th time
Precautions
(1) Even if this command is displayed on the screen, the offset No. and variable details will not be
updated until actually executed.
N1
G90 G10 L10 P10R
−
100 ;
N2 G43
Z
−
10000 H10 ;
N3
G0 X-10000 Y
−
10000 ;
N4
G90 G10 L10 P10 R
−
200 ;...The H10 offset amount is updated when the N4 block is
executed.