I would like to add following end g-code to all my g-code files automatically. This code should allow my creality ender-3 pro to switch itself off after the nozzle is cooled to 40 deg. This is done with some modifications to the machine such as a switch, relay and microswitch. See https://www.thingiverse.com/thing:3744808
Where can I add this end code?
In Preferences - Ender-3 - Machine settings the tab for End G-code is empty and can not be modified.
Thank you
Daniel
G90 ; set coordinates to absoluteG1 X0 Y210 F1000 ; Move Heat Bed to the front for easy print removalM109 R40; Wait for the hotend to cool down to 40CG1 Y220 ; Move Heat Bed to Y=220 to turn the printer off