Haas Mill G51 Scaling

Haas G Codes Mill Reference

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.

1

0001 (GOTHIC WINDOW) ;
F20. S500 ;
G00 X1. Y1. ;
G01 X2. ;
Y2. ;
G03 X1. R0.5;
G01 Y1. ;
G00 X0 Y0 ;
M99 ;
0 = Work coordinate origin No Scaling

The first example illustrates how the control uses the current work coordinate location as a scaling center. Here, it is X0 Y0 Z0.
2

00010 ;
G59 ;
G00 G90 X0 Y0 Z0 ;
M98 P1 ;
M30 ;
0 = Work coordinate origin
+ = Center of scaling

The next example specifies the center of the window as the scaling center.
3

00011 ;
G59 ;
G00 G90 X0 Y0 Z0 ;
M98 P1 ;
G51 X1.5 Y1.5 P2. ;
M98 P1 ;
M30 ;
0 = Work coordinate origin
+ = Center of scaling

The last example illustrates how scaling can be placed at the edge of tool paths as if the part was being set against locating pins.
4

00011 ;
G59 ;
G00 G90 X0 Y0 Z0 ;
M98 P1 ;
G51 X1.0 Y1.0 P2 ;
M98 P1 ;
M30 ;
0 = Work coordinate origin
+ = Center of scaling

Programming notes:

Tool offsets and cutter compensation values are not affected by scaling. Scaling does not affect canned cycle Z-axis movements such as clearance planes and incremental values. The final results of scaling are rounded to the lowest fractional value of the variable being scaled.


G51 Scaling