Skip to content

Commit d8b7551

Browse files
committed
✨ EVENT_GCODE_PARK_T0/T1 for tool-change pre-park G-code
MarlinFirmware/Marlin#27459
1 parent 3b9134d commit d8b7551

411 files changed

Lines changed: 822 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/default/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,6 +2968,8 @@
29682968
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29692969
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29702970
*/
2971+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2972+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29712973
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29722974
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29732975
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/3DFabXYZ/Migbot/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,8 @@
29592959
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29602960
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29612961
*/
2962+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2963+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29622964
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29632965
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29642966
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/3DMatik/XL/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,8 @@
29592959
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29602960
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29612961
*/
2962+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2963+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29622964
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29632965
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29642966
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/ADIMLab/Gantry v1/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,8 @@
29592959
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29602960
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29612961
*/
2962+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2963+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29622964
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29632965
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29642966
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/ADIMLab/Gantry v2/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,8 @@
29592959
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29602960
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29612961
*/
2962+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2963+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29622964
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29632965
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29642966
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/Alfawise/U20-bltouch/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2969,6 +2969,8 @@
29692969
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29702970
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29712971
*/
2972+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2973+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29722974
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29732975
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29742976
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/Alfawise/U20/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,6 +2960,8 @@
29602960
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29612961
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29622962
*/
2963+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2964+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29632965
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29642966
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29652967
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/AliExpress/CL-260/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,8 @@
29592959
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29602960
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29612961
*/
2962+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2963+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29622964
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29632965
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29642966
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/AliExpress/UM2pExt/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,8 @@
29592959
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29602960
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29612961
*/
2962+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2963+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29622964
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29632965
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29642966
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

config/examples/Anet/A2/Configuration_adv.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2959,6 +2959,8 @@
29592959
* Extra G-code to run while executing tool-change commands. Can be used to use an additional
29602960
* stepper motor (e.g., I axis in Configuration.h) to drive the tool-changer.
29612961
*/
2962+
//#define EVENT_GCODE_PARK_T0 "G28 A\nG1 A0" // Extra G-code to run before tool-change command (if T0 was active)
2963+
//#define EVENT_GCODE_PARK_T1 "G1 A10" // Extra G-code to run before tool-change command (if T1 was active)
29622964
//#define EVENT_GCODE_TOOLCHANGE_T0 "G28 A\nG1 A0" // Extra G-code to run while executing tool-change command T0
29632965
//#define EVENT_GCODE_TOOLCHANGE_T1 "G1 A10" // Extra G-code to run while executing tool-change command T1
29642966
//#define EVENT_GCODE_TOOLCHANGE_ALWAYS_RUN // Always execute above G-code sequences. Use with caution!

0 commit comments

Comments
 (0)