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

    Duet3 - RPi system commands through g-code

    Scheduled Pinned Locked Moved
    General Discussion
    4
    7
    200
    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.
    • oozeBotundefined
      oozeBot
      last edited by

      As previously stated, I am new to Duet. For all my other setups, they rely on OctoPrint. There is an OctoPrint plugin I rely on quite heavily for automation that allows unique g-codes to call system commands / scripts.

      https://plugins.octoprint.org/plugins/gcodesystemcommands/

      Now that the Duet 3 is incorporating an RPi, can this be accomplished? Is porting something like this possible?

      1 Reply Last reply Reply Quote 0
      • gtj0undefined
        gtj0
        last edited by

        See this by @wilriker

        https://forum.duet3d.com/topic/13194/dsf-extension-exec-on-mcode-was-shutdown-sbc

        oozeBotundefined 1 Reply Last reply Reply Quote 0
        • Danalundefined
          Danal
          last edited by

          Yes, but...

          Conditional G-Code is being rolled out. This seriously minimizes the need for Pi scripting.

          Having said that, what would you like to do on the Pi?

          Delta / Kossel printer fanatic

          oozeBotundefined 1 Reply Last reply Reply Quote 0
          • oozeBotundefined
            oozeBot @gtj0
            last edited by

            @gtj0 Thanks! I'm in hopes this leads me in the right direction,..

            1 Reply Last reply Reply Quote 0
            • oozeBotundefined
              oozeBot @Danal
              last edited by oozeBot

              @Danal Here's one - I have a script that can turn wemo smart switches on and off based on local IP (no cloud). I currently use this to toggle the enclosure heaters before and after each print. I also use it to toggle an exhaust fan at the end of each print to help cool down the enclosure.

              deckingmanundefined 1 Reply Last reply Reply Quote 0
              • deckingmanundefined
                deckingman @oozeBot
                last edited by deckingman

                @gfisher You can do all that sort of stuff just with the Duet bare board - no need for scripts or the RPi. That is to say, you can use gcode commands to control heater and/or fan outputs and/or other io pins but you might need to have some sort of interface such as a mosfet or sold state relay between the Duet and whatever it is that you want to control. But activation can be simple gcode commands that you put in your slicer start and end gcode section. Or you use macros, but to simply toggle things on and off at the start and end of a print doesn't even warrant a macro.

                Edit, It's just extending things that everybody does at the start of a print such as setting the hot end and bed heaters and turning them on, along with cooling fans.

                Ian
                https://somei3deas.wordpress.com/
                https://www.youtube.com/@deckingman

                oozeBotundefined 1 Reply Last reply Reply Quote 1
                • oozeBotundefined
                  oozeBot @deckingman
                  last edited by oozeBot

                  @deckingman That is, for sure, the long term plan.. I was just looking for a quick and dirty way to port over from OctoPrint. I can also think of a lot of stopgaps until the plug-ins for Duet catch up to Octoprint.. alerting for one.

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