Scheduling Gcode execute on Duet Wifi
Ntrack last edited by
This is unrelated to 3d printers in general and maybe unrelated to duet boards in general but helpful for a project of mine in which I’ll be using a duet wifi board. Maybe someone already does this and can help.
I want to send a certain gcode sequence to the board to be executed at a certain hour every day/ week et.
I understand I would need a raspberry pi or some other mean to send the code but I don’t know where to start . Ideally the board will be wired to the pi via usb because the board will be turned on before sending the gcode with a relay and sometimes the wifi doesn’t connect.
So my question is, how do I schedule sending gcode to duet?
A Former User last edited by A Former User
the easiest is probably to do it externally and send it over http; but using RRF3 and conditional gcode/meta commands you might be able to use the daemon.g file to cobble together some sort of basic schedule.
edit: look at
aton the pi, and search for the simplify 3d thread here to see how to send gcode to the duet.
edit2; i'd sort the wifi, but if you need to use serial then just do
echo M300 S2000 P2000 > /dev/ttyACM0to send a beep command to the duet f.ex. (adjust /dev/ttyACM0 to match the actual device you get when you plug in the duet, but iirc thats the default on the raspberry pi with the duet)
Ntrack last edited by Ntrack
@bearer that looks easier than I was expecting it to be.
Basically I just send echo M300 S2000 P2000 > /dev/ttyACM0 , then ,for instance, echo G28 > /dev/tryACM0 to home it?
Yes, I’ll be using cron to schedule tasks.
A Former User last edited by
Spelled tty wrong*, but yes.
*)could be auto carrot perhaps