These files were created to try and mimic the M600 command from Marlin on the Duet Wifi board. The files were specifically designed for use on the RailCore2 300ZL if you are using them another machine you may need to adjust things.
To use this while printing either press the "Pause" button or insert M25 commands into the gcode files.
You will need two normally open momentary switches to build this.
Unzip "Load_ResumeButtonsFiles_SysFolder" into your sys directory (This will overwrite your existing pause.g, resume.g and trigger2-trigger7 files if they already exist)
Unzip "Load_ResumeButtonsFiles_MacrosFolder" into macros directory
Add this into your config.g
;Assigning Switches to E0=RESU and E1=LOAD
M581 T2 E0 S0 ;Runs trigger2.g file when pressed - Resets Load Macros
M581 T6 E0 S0 C1 ;Runs trigger6.g file when pressed during print - Resumes print after resetting load macros
M581 T3 E1 S0 C1 ;Runs trigger3.g file when pressed during print - Runs before Trigger 7 to get temp back up during print
M581 T7 E1 S0 ;Runs trigger7.g file when pressed - First step of Unload process
The "LOAD" switch is connected to E1
1st Press - Unloads filament (When printing it waits for Hot end temp to stabilize, when not printing you must intialize hot end temperature before pressing)
2nd Press - Loads filament and extrudes 50mm
3rd Press - All additional presses purge 50mm of filament
The "RESU" switch is connected to E0
When printing this button will Resume the print and rest the LOAD button back to initial state
When not printing this button will reset the LOAD button back to it's initial state