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...
- 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
- It is not applied to MCS Absolute moves (G53, G28, G30)
Examples
- A simple G-code file produces a 100x100 rectangle:
- 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):
- This butterfly file has the origin point somewhere in the middle of the profile:
- To produce this shape on the machine where the origin point is at the corner of the bed, the whole toolpath has to be shifted up and to the right. It is possible to use the G52 offset to enable the shift.
- Issuing "G52 X100 Y70" command, a X100 Y70 offset will be applied to every position specified in the G-code file. The result will look like this: