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

53 lines
1.4 KiB
Markdown

---
tag: g042
title: Move to mesh coordinate
brief: Move to a specific point in the leveling mesh
author: ManuelMcLure
since: 1.1.2
requires: HAS_MESH
group: calibration
codes: [ G42 ]
parameters:
-
tag: I
optional: true
description: The column of the mesh coordinate
values:
-
tag: pos
type: float
-
tag: J
optional: true
description: The row of the mesh coordinate
values:
-
tag: pos
type: float
-
tag: F
optional: true
description: The maximum movement rate of the move between the start and end point. The feedrate set here applies to subsequent moves that omit this parameter.
values:
-
tag: rate
type: float
examples:
-
pre: Move to various points on a 9x9 mesh
code:
- G42 I0 J0 ; front left corner
- G42 I4 J4 ; center
- G42 I4 J8 ; back center
- G42 I8 J8 ; back right
---
The `G42` command moves the nozzle to the location corresponding to a specific coordinate in the bed leveling mesh. It operates similarly to the [`G0`](/docs/gcode/G000-G001.html) and [`G1`](/docs/gcode/G000-G001.html) commands except that the provided coordinates are a mesh row and column instead of an absolute or relative position on the bed.
The `G42` command will determine the bed position that corresponds to the provided mesh row and column and move the nozzle to that position.