May 31, 2019
Description
The easiest way to equip your printer with the auto power off capability.
You don't need to print anything for this solution, at least one 3D fiile needed to publish this, thats why the mutyur.stl is in the project.
Ingredients:
Preparation:
The necessary End G-code:
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+10 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
G90 ;absolute positioning
G1 X-30 F5000 ;X close to endstop, YOU HAVE TO CHECK IT ON YOUR PRINTER!!!
G1 Y200 F2000 ; prepare for part removal
G1 X-33 F1000 ;X to endstop -> Shutdown, YOU HAVE TO CHECK IT ON YOUR PRINTER!!!
M107 ; turn off fan
M84 ;steppers off
The "G1 X-30" and the "G1 X-33" starting lines are especially for my printer, you have to check your printer by stepping the X axis in 1mm steps. Check where the limit switch is switching, replace the -33 with that value, and +3 to 5mm to the -30 where the printhead just not touching the limit switch.
Usage:
Power on your printer by the switch. Make bed leveling (if need). Start your print and wait until it heating and homeing, after the Start G-code is done and when the print is during normaly you can switch off the switch, the relay will provide the 230 VAC to the powersupply. When the print is done the End G-code is coming and the X limit switch is breaks the relay and the printer is shutting down.
License:
Creative Commons - Attribution