13. Program Support Functions
13.27 Coordinate Read Function; G14
502
13.27 Coordinate Read Function; G14
Function and purpose
The G14 command is used to read the end point coordinates of the immediately preceding block,
the machine coordinates, the workpiece coordinates, the TLM coordinates, or the skip
coordinates.
Command format
G14 X__ Y__ Z__ A__ P__ ;
Coordinate read command
X Y Z A
: Each axis and the variable No. where the axis’s coordinates data will be
stored.
(Aa means the additional axis.)
P
: Type of the coordinates to be read
Detailed description
(1) The type of coordinates to be read is specified in “p”. The coordinates that can be read are
listed below:
"P" command
value
Contents
Compen-
sation
amount
Read
during
moving
No “p” command
is given or
a value other than
1 to 4 is specified
End point position of the immediately
preceding block
(The absolute coordinate system set by
G92)
Not
contained
Enabled
1
Machine coordinates
(Basic machine coordinate system)
Contained Disabled
2
Zero point of the current workpiece
coordinate system
(Workpiece coordinate system)
Contained Disabled
3
TLM coordinates
(The point where TLM switch is turned
OFF to ON at machine stop is used as the
zero point of the TLM coordinate system.)
Contained Disabled
4
Skip signal input coordinates
(Workpiece coordinate system)
Contained Enabled
(2) The end point position will be read instead of the skip coordinates when the skip signal is not
turned ON in a G31 block.
(3) G14 command is unmodal, thus, it is valid only in the block where it is commanded.
(4) The end point and skip coordinates can be read even while moving. Always confirm that the
movement has stopped before reading the machine, workpiece, and TLM coordinates.
(Note)
To stop the movement, stop the axis movement with the dwell command and so forth.
(5) The program error (P241) will occur if an illegal variable No. is commanded.