Execute macros when power on?
-
Hi,
There is some kind of system of run macros when power on printer… For example, as idea:
Power on
Heat bed
Heat nozzle
Homing
Calibrate
Extrude some plastic
Move nozzle near bed for printRepetitive things that are almost always done when the printer is turned on ...
-
If you really want to execute commands at power up, you can do so in config.g or In a macro that you call from that. But think carefully about unusual conditions that might make it undesirable to have actions performed at power up, such as power being lost when there is a large print under way, and then restored.
-
If the macro button in the GUI is not enough for you, you can wire a physical button on an unused endstop input which triggers you macro.
-
Is there documentation for how to do that? Sounds good.
-
Try using M581 along with a trigger2.g to an unused endstop (I use E0 end stop) Should be pretty simple to connect a push button as an end stop, then configure a script to trigger on button press.
https://duet3d.com/wiki/Connecting_endstop_switches (Follow instructions for microswitch)
https://duet3d.com/wiki/G-code#M581:_Configure_external_trigger
-
Is there documentation for how to do that? Sounds good.
https://www.duet3d.com/wiki/Connecting_an_Emergency_Stop_button
-
Thanks