Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Scheduling Gcode execute on Duet Wifi

    General Discussion
    2
    4
    54
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Ntrack
      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?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • A Former User
        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 cron or at on 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/ttyACM0 to 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 1 Reply Last reply Reply Quote 0
        • Ntrack
          Ntrack @Guest 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.

          1 Reply Last reply Reply Quote 0
          • A Former User
            A Former User last edited by

            Spelled tty wrong*, but yes.

            *)could be auto carrot perhaps

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA