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

1.7 KiB

tag title brief author contrib requires since experimental group codes related notes parameters videos examples
m0422 Set Z Motor XY Set a Z motor position for G34 Auto-Alignment shitcreek thinkyhead Z_STEPPER_AUTO_ALIGN 2.0.4 true calibration
M422
G34
See [`G34`](/docs/gcode/G034-zsaa.html) for further details about Z-Stepper automatic alignment.
Requires `Z_STEPPER_AUTO_ALIGN`.
`M422 W` requires `Z_STEPPER_ALIGN_STEPPER_XY`.
tag optional description values
R true Reset alignment and known points to the defaults. This will also be done by [`M502`](/docs/gcode/M502.html).
type
flag
tag optional description values
S true One-based index of a Z-Stepper whose probing-point will be set.
tag type
index int
tag optional requires description values
W true Z_STEPPER_ALIGN_STEPPER_XY One-based index of a Z-Stepper whose known position will be set.
tag type
index int
tag optional description values
X true X position
tag type
linear float
tag optional description values
Y true Y position
tag type
linear float
6UgT9YqY3UA
pre code
Set a probe position for aligning the first Z stepper
M422 S1 X10 Y10
pre code
Set a known position for the second Z stepper
M422 W2 X10 Y10

Set an XY probe or known position for a given Z Stepper. Either the S or W parameter must be given, along with X and Y positions. The W parameter exists only when Z_STEPPER_ALIGN_STEPPER_XY is defined, providing known stepper positions.