The G51 command allows you to use the scale mode in numerical control systems. For each axis, it is possible to specify a scaling factor.
Command format: G51 X Y Z I J K
I - scale for X
J - scale for Y
K - scale for Z
X Y Z - coordinates of the center of scaling
Command format: G51 X Y Z A B C P
P - scale for axes X Y Z A B C
X Y Z A B C - coordinates of the center of scaling
The G50 command allows you to cancel the scaling mode with numerical control systems (CNC) of machines.
Consider an example of using the G50 and G51 commands below: First, create a simple square program.
G00Z5
G00X0Y0
M3 S6000
G00Z0
G51X0Y0I3J4v
G00X15Y15
G01X25Y15
G01X25Y25
G01X15Y25
G01X15Y15
M5
G00Z5
G00X0Y0