flexi-bot/docs/marlin/_gcode/G092.md
2023-09-05 20:38:49 +02:00

72 lines
1.8 KiB
Markdown

---
tag: g092
title: Set Position
brief: Set the current position of one or more axes.
author: thinkyhead
contrib: shitcreek
since: 1.0.0-beta
group: motion
codes: [ G92 ]
notes:
- In earlier versions of Marlin `G92` doesn't update the software endstops, so it was unsupported to set coordinates outside these boundaries. In Marlin 1.1.0 and up, the physical boundaries are maintained. This means you can no longer use `G92` to move below the bed, for example.
parameters:
-
tag: X
optional: true
description: New X axis position
values:
-
tag: pos
type: float
-
tag: Y
optional: true
description: New Y axis position
values:
-
tag: pos
type: float
-
tag: Z
optional: true
description: New Z axis position
values:
-
tag: pos
type: float
-
tag: E
optional: true
description: New extruder position
values:
-
tag: pos
type: float
examples:
-
pre:
- Specify that the nozzle's current X position is 10 and the current extruder position is 90.
code:
- G92 X10 E90
-
pre:
- Specify that the nozzle's current XYZ position is 0, 0, 0.
code:
- G92 X0 Y0 Z0
-
pre:
- Resets selected workspace is 0, 0, 0.
code:
- G92.1
---
Set the current position to the values specified. In Marlin 1.1.0 and up, the software endstops are adjusted to preserve the physical movement limits. Thus you could use `G92` to set the middle of the bed to 0,0 and then run .gcode that was sliced for a Deltabot.
The [`CNC_COORDINATE_SYSTEMS`](/docs/gcode/G054-G059.html) option enables use of `G92.1` to reset the selected workspace to native machine space. See [`G54-G59`](/docs/gcode/G054-G059.html) and [`G53`](/docs/gcode/G053.html).