extrudeToZ()
Move to an absolute Z position while extruding.
Extrusion amount is calculated automatically from the move distance, scaled by extrusionMultiplier. If an explicit extrusion amount is specified, extrusionMultiplier is ignored.
Most printers use a leadscrew for Z, which have a much lower max speed than the belt-driven XY axes.
The maxSpeedZ preset value caps Z speed in firmware via M203.
In practice, this max Z speed is used for Z movements in general.
Parameters
| Name | Type | Description |
|---|---|---|
z | number | Target Z position in mm. |
v | number | Feedrate in mm/min. |
e? | number | null | Extrusion amount in mm. Calculated automatically if null. |
comment? | string | Optional G-code comment. Default: ''. |