14. Coordinates System Setting Functions
14.10 Workpiece Coordinate System Setting and Offset
526
(Example 4)
When six workpieces are placed on the same coordinate system of G54 to G59, and
each is to be machined with the same machining.
(1) Setting of workpiece offset data
Workpiece1 X = -100.000 Y = -100.000 ........................................ G54
2 X = -100.000 Y = -500.000 ....................................... G55
3 X = -500.000 Y = -100.000 ....................................... G56
4 X = -500.000 Y = -500.000 ....................................... G57
5 X = -900.000 Y = -100.000 ....................................... G58
6 X = -900.000 Y = -500.000 ........................................ G59
(2) Machining program (subprogram)
L100;
N1 G90 G0 G43X-50. Y-50. Z-100. H10;
Positioning
N2 G01 X-200. F50;
Y-200. ;
X- 50. ;
Y- 50. ;
N3 G28 X0 Y0 Z0 ;
~
N4 G98 G81 X-125. Y-75. Z-150. R-100. F40;
1
X-175. Y-125. ;
2
X-125. Y-175. ;
3
X- 75. Y-125. ;
4
G80;
N5 G28 X0 Y0 Z0 ;
~
N6 G98 G84 X-125. Y-75. Z-150. R-100. F40 ;
1
X-175. Y-125. ;
2
X-125. Y-175. ;
3
X- 75. Y-125. ;
4
G80;
G23;
Tapping
Surface cutting
Drilling
(3) Positioning program (main)
G28 X0 Y0 Z0 ;
When power is turned ON
N1 G90 G54 G22 L100 ;
N2 G55 G22 L100 ;
N3 G57 G22 L100 ;
N4 G56 G22 L100 ;
N5 G58 G22 L100 ;
N6 G59 G22 L100 ;
N7 G28 X0 Y0 Z0 ;
N8 M02 ;
%