Welcome to mirror list, hosted at ThFree Co, Russian Federation.

M421.md « _gcode - github.com/MarlinFirmware/MarlinDocumentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 609f3cbd1fb895d46ab6fc56c965490c04990994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
tag: m0421
title: Set Mesh Value
brief: Set a single mesh Z height
author: thinkyhead

requires: AUTO_BED_LEVELING_(BILINEAR|UBL)|MESH_BED_LEVELING
group: motion

related: [ G29, M420 ]
codes: [ M421 ]

notes:

parameters:
  -
    tag: I
    optional: true
    description: X index into the mesh array
    values:
      -
        type: int
  -
    tag: J
    optional: true
    description: Y index into the mesh array
    values:
      -
        type: int
  -
    tag: X
    optional: true
    description: X position (which should be very close to a grid line) (`MESH_BED_LEVELING` only)
    values:
      -
        tag: linear
        type: float
  -
    tag: Y
    optional: true
    description: Y position (which should be very close to a grid line) (`MESH_BED_LEVELING` only)
    values:
      -
        tag: linear
        type: float
  -
    tag: Z
    optional: true
    description: The new Z value to set
    values:
      -
        tag: linear
        type: float
  -
    tag: Q
    optional: true
    description: A value to add to the existing Z value
    values:
      -
        tag: linear
        type: float
  -
    tag: C
    optional: true
    description: Set the mesh point closest to the current nozzle position (`AUTO_BED_LEVELING_UBL` only)
    values:
      -
        type: bool
  -
    tag: N
    optional: true
    description: Set the mesh point to undefined (`AUTO_BED_LEVELING_UBL` only)
    values:
      -
        type: bool

examples:
  -
    pre: Set the Z height in the middle of a 5x5 grid
    code: M421 I2 J2 Z-0.05
  -
    pre: Set the same Z height using XY
    code: M421 X100 Y100 Z-0.05
  -
    pre: Adjust the mesh point by -0.01
    code: M421 I2 J2 Q-0.01

---

This command is used to set a single Z value for a mesh point in the stored bed leveling data.

Allowed forms are `M421 In Jn Zn`, `M421 Xn Yn Zn` (`MESH_BED_LEVELING` only) or `M421 C Zn` (`AUTO_BED_LEVELING_UBL` only).