---
tag: g042
title: Move to mesh coordinate
brief: Move to a specific point in the leveling mesh
author: ManuelMcLure

group: calibration
since: 1.1.2
requires: HAS_MESH

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
    
- tag: P
  optional: true
  description: If there is a probe, move it to the given position.
  values:
  - type: flag

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
    - G42 I2 J2 P ; moves probe to point instead of nozzle

---

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.
