Timing/delay functions while setting a pin high/low
-
Guys,
I am trying to add multicolor/multimaterial to my printer via the 3DChameleon add on here:
https://www.3dchameleon.com/It works by using the printer hotend to physically bump the provided end stop switch for a set amount of time to perform loading/unloading functions.
So instead of using the actual printer hotend to bump the provided switch, I though I can use my duet 6hc main board to directly simulate the switch output by toggling a pin high/low. The problem is I need relatively specific timings and I don't know how to do that.
For example, I need to: set pin 1 high for 3 seconds, then set it low for 2 seconds, then set it high for 4 seconds, then set it low---how do I do that?
I was looking at the Gcode meta commands documentation but I can't find much in the way of timings/delay, can you guys help.
Thanks in advance.
Kind regards,
Gordon
-
@Gordon-Lin G4 would be what you want to add for a delay. https://docs.duet3d.com/en/User_manual/Reference/Gcodes
-
That will do the trick, thank you