Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Is streaming G-code (real-time) possible?

    Scheduled Pinned Locked Moved
    General Discussion
    4
    7
    262
    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.
    • loddieundefined
      loddie
      last edited by loddie

      After much searching here and online, I can't find the answer I'm looking for. I'd like to use Duet3D hardware to control a custom CNC positioning device and stream instructions from software on a local host Windows PC.

      Is it possible to stream G-code data into Duet3D controller boards instead of loading from a file? From this thread, it seems that Pronterface and Slicer3D can stream files directly to a 3Dprinter, so I am optimistic.

      If so, is there any feedback mechanism such as checksum or "OK" to notify the sender that the data was received?

      If not, can other firmware (besides RepRap) with streaming capability be used with the Duet3D controller boards?

      EasyTargetundefined 1 Reply Last reply Reply Quote 0
      • EasyTargetundefined
        EasyTarget @loddie
        last edited by

        @loddie said in Is streaming G-code (real-time) possible?:

        Is it possible to stream G-code data into Duet3D controller boards instead of loading from a file?

        If so, is there any feedback mechanism such as checksum or "OK" to notifier the sender that the data was received?

        Yes, and Yes.

        You can send gcode directly to the Duet via USBserial, or via hardwired uart serial, also via telnet and other streams too.

        You can choose to use checksumming and message sequences to ensure integrity.

        Look in the duet documentation for examples and descriptions of this. Almost ALL other firmwares can do the same.

        Doing this is very common, especially on non networked controllers, it's how OctoPrint works, for instance.

        Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
        PrintPy2024 to the rescue!
        MicroPython based; with simple wiring and and no custom PCB.

        loddieundefined 1 Reply Last reply Reply Quote 0
        • loddieundefined
          loddie @EasyTarget
          last edited by

          @EasyTarget Thank-you! I'll have to dig deeper into the documentation as I somehow missed it. Anyway, it is great to know the capability exists.

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @loddie
            last edited by

            @loddie bear in mind that when you stream GCode to a Duet, the capabilities for fast pausing and resume-after-power-fail are lost. This is because those capabilities depend on being able to cancel commands that have already been processed and queued but not yet executed.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            loddieundefined 1 Reply Last reply Reply Quote 1
            • loddieundefined
              loddie @dc42
              last edited by

              @dc42 Thank-you for the warning and insight! Perfectly valid for long processes such as 3D printing or CNC machining. Fortunately, in my application, power loss shouldn't be a problem as it is simply for statically positioning objects - so the G-code is only a couple of lines and the process is only a few seconds. If power is lost, I'll just start the process over.

              droftartsundefined 1 Reply Last reply Reply Quote 1
              • droftartsundefined
                droftarts administrators @loddie
                last edited by

                @loddie Also see Printing over USB connection (Octoprint, Cura, Simplify3D, Etc.)

                Ian

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                loddieundefined 1 Reply Last reply Reply Quote 1
                • loddieundefined
                  loddie @droftarts
                  last edited by

                  @droftarts Thanks Ian!

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