G52: Local WCS Offset
Overview
- G52 sets a temporary Local Coordinate System offset.
- It is a part of the transformation from Local Coordinate System to a Work Coordinate System.
Command Format
-
Syntax
G52 X... Y... Z... E...
- Provides coordinate shift of the target position specified in the G-code file.
Details
- Side effects and restrictions:
- It does not update any other active offsets
- It is Modal, so if G52 offset is not needed, it has to be set to X0 Y0 Z0 to clear the offset.
- It is not applied to MCS Absolute moves.
Examples
- A simple G-code file produces a 100x100 rectangle:
G90 G21 G17
G01 X0 Y0
G01 Y100
G01 X100 Y100
G01 X100
G01 X0 Y0
If an offset G52 is applied at the start of the file, the whole rectangle will be shifted by an offset amount (X20 Y-10):
G90 G21 G17
G52 X20 Y-10
G01 X0 Y0
G01 Y100
G01 X100 Y100
G01 X100
G01 X0 Y0
See Also