G92: Set Axes Position
Overview
- Sets current position to the values specified in the register of the G92 command.
- Creates a local coordinate system, relative to the current MCS position.
- G92 values are not stored for later retrieval / reuse. If the G92 is cleared, then the previous values cannot be restored.
- Saved between G-Code file/programs, and within a program. It is reset when the power is cycled (ON/OFF) on the iCube controller.
Command Format
-
Syntax:
G92 X###.## Y###.## Z###.## E###.##
Examples
The below covers the interactions between G92 and G54-59 coordinate systems, and what the expected values would be in the different coordinate systems. Some situations may also benefit from using G52, which provides an alternate interface and distinct layer in the coordinate system chain.
Using MCS position of : X = 235.0 , Y = -58.0 , Z = 10.0
Using G54 WCS offset : X = 35.0 , Y = 2.0 , Z = 0.0
Using G55 WCS offset: X=10.0, Y=5.0, Z=-2.0
G54G92 X0 Y0 Z0- Machine Coordinate System position (actual servo position):
- MCS: X = 235.0, Y = -58.0 , Z = 10.0
- Current Local Coordinate System Position (no active offsets)
- LCS: X = 235.0, Y = -58.0 , Z = 10.0
- Local Coordinate System Position after enabling G54 offset (35, 2, 0):
- LCS: X = 200.0 , Y = -60.0 , Z = 10.0
- Local Coordinate System position after G92 sets the values to 0:
- LCS: X = 0.0 , Y = 0.0 , Z = 0.0
- Calculated difference of Fixture Coordinate System positions before and after G92
- Current FCS: X = 235.0, Y = -58.0 , Z = 10.0
- After G92: FCS: X = 35.0, Y = 2.0 , Z = 0.0
- G92 offset: X = 200.0, Y = -60.0, Z = 10.0
G55- Machine Coordinate System position (actual servo position):
- MCS: X = 235.0, Y = -58.0 , Z = 10.0
- G92 offset: X = 200.0, Y = -60.0, Z = 10.0
- Fixture Coordinate System Position after subtracting G92 offset:
- FCS: X = 35.0, Y = 2.0 , Z = 0.0
- Local Coordinate System Position after enabling G55 offset (10, 5, -2)
- LCS: X = 25.0 , Y = -3.0 , Z = 2.0
- Changing the WCS from G54 to G55 shifts the coordinate system by the difference between the G54 and G55 offsets but no motion occurs.
- To verify positions, simply add all active offsets to the Local Coordinate System position and the result should match the Machine Coordinate System position.
- In the above samples, LCS is (0, 0, 0) after executing the G92 command
- LCS (0, 0, 0) + G54 offset (35, 2, 0) + G92 offset (200, -60, 10) = WCS (235, -58, 10)
- After executing G55:
- LCS (25, -3, 2) + G55 offset (10, 5, -2) + G92 offset (200, -60, 10) = WCS (235, -58, 10)
G92 E0Using G92 to zero only the E axis is used to reset the extruder position when the extruder axis is operating in absolute mode.
Details
- If no register is specified, it is an error.
- Not all registers need to be included.
- Missing registers leave the previously set value for that register as-is.
See Also:
Coordinate Systems
Coordinate Systems
G52: Local WCS Offset G52: Local WCS Offset