Browse Source

NOZZLE_PARK_FEATURE - X/Y only axis move (#17697)

studiodyne 5 years ago
parent
commit
58ac9f257c
No account linked to committer's email address
2 changed files with 7 additions and 1 deletions
  1. 2
    0
      Marlin/Configuration.h
  2. 5
    1
      Marlin/src/libs/nozzle.cpp

+ 2
- 0
Marlin/Configuration.h View File

1501
 #if ENABLED(NOZZLE_PARK_FEATURE)
1501
 #if ENABLED(NOZZLE_PARK_FEATURE)
1502
   // Specify a park position as { X, Y, Z_raise }
1502
   // Specify a park position as { X, Y, Z_raise }
1503
   #define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
1503
   #define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
1504
+  //#define NOZZLE_PARK_X_ONLY          // X move only is required to park
1505
+  //#define NOZZLE_PARK_Y_ONLY          // Y move only is required to park
1504
   #define NOZZLE_PARK_Z_RAISE_MIN   2   // (mm) Always raise Z by at least this distance
1506
   #define NOZZLE_PARK_Z_RAISE_MIN   2   // (mm) Always raise Z by at least this distance
1505
   #define NOZZLE_PARK_XY_FEEDRATE 100   // (mm/s) X and Y axes feedrate (also used for delta Z axis)
1507
   #define NOZZLE_PARK_XY_FEEDRATE 100   // (mm/s) X and Y axes feedrate (also used for delta Z axis)
1506
   #define NOZZLE_PARK_Z_FEEDRATE    5   // (mm/s) Z axis feedrate (not used for delta printers)
1508
   #define NOZZLE_PARK_Z_FEEDRATE    5   // (mm/s) Z axis feedrate (not used for delta printers)

+ 5
- 1
Marlin/src/libs/nozzle.cpp View File

188
       } break;
188
       } break;
189
     }
189
     }
190
 
190
 
191
-    do_blocking_move_to_xy(park, fr_xy);
191
+    do_blocking_move_to_xy(
192
+      TERN(NOZZLE_PARK_Y_ONLY, current_position, park).x,
193
+      TERN(NOZZLE_PARK_X_ONLY, current_position, park).y,
194
+      fr_xy
195
+    );
192
 
196
 
193
     report_current_position();
197
     report_current_position();
194
   }
198
   }

Loading…
Cancel
Save