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

    Print last file

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    4
    10
    431
    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.
    • MauriceMundefined
      MauriceM
      last edited by MauriceM

      Is there a way to configure a Gcode button to print the last printed file?
      I dont found anything to that toppic...

      JayJayundefined 1 Reply Last reply Reply Quote 0
      • JayJayundefined
        JayJay @MauriceM
        last edited by

        @MauriceM

        A button in DWC called "print another" shows up after my current print finishes.

        1 Reply Last reply Reply Quote 0
        • MauriceMundefined
          MauriceM
          last edited by

          yeah, but i want to do that with an external gcode button

          dc42undefined 1 Reply Last reply Reply Quote 0
          • MauriceMundefined
            MauriceM
            last edited by

            so that i dont have to go to my PC, all my printers are headless

            JayJayundefined 1 Reply Last reply Reply Quote 0
            • JayJayundefined
              JayJay @MauriceM
              last edited by

              @MauriceM said in Print last file:

              so that i dont have to go to my PC, all my printers are headless

              if so what would you be using to send the required g code to the printer ?

              1 Reply Last reply Reply Quote 0
              • MauriceMundefined
                MauriceM
                last edited by

                i start a print in the morning normally, when it's done i take it out and press a button on the printer so it prints the same gcode right back,

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

                  @MauriceM said in Print last file:

                  yeah, but i want to do that with an external gcode button

                  You can do that if you are running RRF3. Set up a trigger for that button using M581. In the trigger macro file check that the printer is idle by testing state.status, check that job.lastFileName is not null or empty, then send M32 {job.lastFileName}.

                  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

                  Phaedruxundefined 1 Reply Last reply Reply Quote 0
                  • MauriceMundefined
                    MauriceM
                    last edited by

                    Thanks, but do i have to insert the name of the file manually?

                    1 Reply Last reply Reply Quote 0
                    • JayJayundefined
                      JayJay @MauriceM
                      last edited by JayJay

                      @MauriceM said in Print last file:

                      i start a print in the morning normally, when it's done i take it out and press a button on the printer so it prints the same gcode right back,

                      M32

                      you need to go and read about the g.code DC42 quoted

                      M581

                      1 Reply Last reply Reply Quote 0
                      • Phaedruxundefined
                        Phaedrux Moderator @dc42
                        last edited by

                        @dc42 said in Print last file:

                        {job.lastFileName}.

                        @MauriceM that is from the object model and will be automatically updated to whatever the last job was.

                        https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware

                        Z-Bot CoreXY Build | Thingiverse Profile

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