|
2409 | 2409 | //#define NOZZLE_CLEAN_FEATURE
|
2410 | 2410 |
|
2411 | 2411 | #if ENABLED(NOZZLE_CLEAN_FEATURE)
|
2412 |
| - // Default number of pattern repetitions |
2413 |
| - #define NOZZLE_CLEAN_STROKES 12 |
| 2412 | + #define NOZZLE_CLEAN_PATTERN_LINE // Provide 'G12 P0' - a simple linear cleaning pattern |
| 2413 | + #define NOZZLE_CLEAN_PATTERN_ZIGZAG // Provide 'G12 P1' - a zigzag cleaning pattern |
| 2414 | + #define NOZZLE_CLEAN_PATTERN_CIRCLE // Provide 'G12 P2' - a circular cleaning pattern |
2414 | 2415 |
|
2415 |
| - // Default number of triangles |
2416 |
| - #define NOZZLE_CLEAN_TRIANGLES 3 |
| 2416 | + // Default pattern to use when 'P' is not provided to G12. One of the enabled options above. |
| 2417 | + #define NOZZLE_CLEAN_DEFAULT_PATTERN 0 |
| 2418 | + |
| 2419 | + #if ENABLED(NOZZLE_CLEAN_PATTERN_LINE) |
| 2420 | + #define NOZZLE_CLEAN_STROKES 12 // Default number of pattern repetitions |
| 2421 | + #endif |
| 2422 | + |
| 2423 | + #if ENABLED(NOZZLE_CLEAN_PATTERN_ZIGZAG) |
| 2424 | + #define NOZZLE_CLEAN_TRIANGLES 3 // Default number of triangles |
| 2425 | + #endif |
2417 | 2426 |
|
2418 | 2427 | // Specify positions for each tool as { { X, Y, Z }, { X, Y, Z } }
|
2419 | 2428 | // Dual hotend system may use { { -20, (Y_BED_SIZE / 2), (Z_MIN_POS + 1) }, { 420, (Y_BED_SIZE / 2), (Z_MIN_POS + 1) }}
|
2420 | 2429 | #define NOZZLE_CLEAN_START_POINT { { 30, 30, (Z_MIN_POS + 1) } }
|
2421 | 2430 | #define NOZZLE_CLEAN_END_POINT { { 100, 60, (Z_MIN_POS + 1) } }
|
2422 | 2431 |
|
2423 |
| - // Circular pattern radius |
2424 |
| - #define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5 |
2425 |
| - // Circular pattern circle fragments number |
2426 |
| - #define NOZZLE_CLEAN_CIRCLE_FN 10 |
2427 |
| - // Middle point of circle |
2428 |
| - #define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT |
| 2432 | + #if ENABLED(NOZZLE_CLEAN_PATTERN_CIRCLE) |
| 2433 | + #define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5 // (mm) Circular pattern radius |
| 2434 | + #define NOZZLE_CLEAN_CIRCLE_FN 10 // Circular pattern circle number of segments |
| 2435 | + #define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT // Middle point of circle |
| 2436 | + #endif |
2429 | 2437 |
|
2430 | 2438 | // Move the nozzle to the initial position after cleaning
|
2431 | 2439 | #define NOZZLE_CLEAN_GOBACK
|
|
0 commit comments