G-language Commands
Programming Example
7-3-17 G51: SELECT WORKPIECE COORDINATE SYSTEM
Format
Operands
Description
Programming Example
The following example shows setting the reference coordinate system as the
coordinate system and performing linear interpolation.
:
:
N009
G90
N010
G50
N011
G01
X100
:
:
Sets the workpiece coordinate system as the coordinate system.
G51
None
This command sets the workpiece coordinate system as the coordinate sys-
tem. After this command is executed, the coordinate data in all subsequent
axis operations is processed as workpiece coordinate data.
The origin for the workpiece coordinate system can be set with the system
parameters or with G53. The reference coordinate system will be used after
REFERENCE ORIGIN RETURN (G26) or ORIGIN SEARCH (G28) is exe-
cuted.
The following example shows setting the workpiece coordinate system as the
coordinate system and performing linear interpolation.
:
:
N009
G90
N010
G51
N011
G01
X100
:
:
Y200
Reference coordinate system
Y200
Workpiece coordinate system
Reference coordinate system
Section 7-3
417