13. Program Support Functions
13.27 Coordinate Read Function; G14
503
Example of program
(1) An example of p
1
command value and reading coordinates are given.
N1 G28 X0 Y0 Z0 ;
N2 G90 G00 X-200. Y-100. G53 ;
N3 M60 ; (TLM switch is turned from OFF to ON.)
N4 G00 G54 X-100. Y-100. ;
N5 G92 X0 Y0 Y-50. ;
N6 G00 G43 X-100. H10 ;
N7 G14 X100 Y101 Pp
1
;
G54 : X-50. H10 : 50.
Y-75.
N2
X
Y
-250 -200 -150
-100
-50
-200
-150
-100
-50
N3
N4
N5
Workpiece coordinate system
after execution of N5.
G92
Position after execution of N5.
N10
TLM coordinate system
(TLM switch ON)
Basic machine coordinate system
Coordinate system
after execution of N4.
Coordinates
"P" command value
Read
coordinates
Compensation
amount
End point position of the
immediately preceding
block
No “p” command is given or
a value other than 1 to 4 is
specified
#100 = -100.
#101 = -50.
Not contained
Machine coordinates
1
#100 = -200.
#101 = -175.
Contained
Workpiece coordinates
2
#100 = -50.
#101 = -50.
Contained
TLM coordinates
3
#100 = -0
#101 = -75.
Contained