MarlinFirmware

G12 - Clean the Nozzle

1.1.0 nozzle Perform the nozzle cleaning procedure. NOZZLE_CLEAN_FEATURE

{“Start the nozzle cleaning process. Two types of cleaning patterns are supported”=>”stroke-based and zigzag-based. This feature requires a dedicated cleaning area on or outside the bed, but within reach of the nozzle.”}


Usage

G12 [P<0|1>] [S<count>] [T<count>]

Argument Description
[P<0|1>]

Pattern style selection

[S<count>]

Number of strokes (i.e. back-and-forth movements)

[T<count>]

Number of repetitions

Notes

Default behavior is defined by NOZZLE_CLEAN_STROKES, NOZZLE_CLEAN_START_POINT, NOZZLE_CLEAN_END_POINT and NOZZLE_CLEAN_PARK.

With NOZZLE_CLEAN_PARK enabled, the nozzle automatically returns to the XYZ position before G12.

Examples

The most basic example is to use the command without any arguments, this will default to a stroke based pattern which will be stroked NOZZLE_CLEAN_STROKES times.

G12 ; stroke pattern (default)

To generate a three triangle zig-zag pattern which will be stroked one time use the following command.

G12 P1 S1 T3 ; zig-zag pattern with 3 triangles