1 2 8
G Codes
96-8000 rev R June 2007
Example
To engrave “$2.00” two lines of code are necessary. The first will be using a P36 to engrave the dollar sign ($), and
the second will use P0 (2.00). Note that the axes will need to be shifted between the first and second line of code
in order to make a space between the dollar sign and the 2.
G49 G43/G44/G143 Cancel (Group 08)
This G code cancels tool length compensation.
Programming note: An H0, G28, M30, and Reset will also cancel tool length compensation.
G50 Cancel Scaling (Group 11)
G50 cancels the optional scaling feature. Any axis scaled by a previous G51 command is no longer in effect.
G51 Scaling (Group 11)
(This G-code is optional and requires Rotation and Scaling)
X
optional center of scaling for the X axis
Y
optional center of scaling for the Y axis
Z
optional center of scaling for the Z axis
P
optional scaling factor for all axes; three-place decimal from 0.001 to 8383.000.
G51 [X...] [Y...] [Z...] [P...]
A scaling center is always used by the control in determining the scaled position. If any scaling center is not
specified in the G51 command block, then the last commanded position is used as the scaling center.
When scaling (G51) is commanded, all X, Y, Z, I, J, K, or R values addressing machine motion are multiplied by a
scaling factor and are offset relative to a scaling center.
G51 will affect all appropriate positioning values in the blocks following the G51 command. The X, Y and Z axes can
be scaled using a P address, if a P address is not entered the Setting 71 scaling factor is used.
The following programs illustrate how scaling is performed when different scaling centers are used.
X
Z
Y
0001 (GOTHIC WINDOW) ;
F20. S500 ;
G00 X1. Y1. ;
G01 X2. ;
Y2. ;
G03 X1. R0.5;
G01 Y1. ;
G00 X0 Y0 ;
M99 ;
= Work coordinate origin
No Scaling
0001 (GOTHIC WINDOW) ;
F20. S500 ;
G00 X1. Y1. ;
G01 X2. ;
Y2. ;
G03 X1. R0.5;
G01 Y1. ;
G00 X0 Y0 ;
M99 ;
= Work coordinate origin
No Scaling
G51
The first example illustrates how the control uses the current work coordinate location as a scaling center. Here, it
is X0 Y0 Z0.
Summary of Contents for Mill
Page 12: ...96 8000 rev R June 2007 Safety 5 ...
Page 14: ...96 8000 rev R June 2007 Safety 7 LATHE WARNING DECALS ...
Page 15: ...8 Safety 96 8000 rev R June 2007 ...
Page 17: ...10 Introduction 96 8000 rev R June 2007 ...
Page 117: ...110 4 5 Axis Programming 96 8000 rev R June 2007 ...
Page 199: ...Settings 192 96 8000 rev R June 2007 ...