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

    How can I start a part program again after it is finished

    Scheduled Pinned Locked Moved
    CNC
    3
    8
    340
    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.
    • martin7404undefined
      martin7404
      last edited by martin7404

      So I built a custom machine for automated drilling of ALU profile
      with 2 AXIS , Z, and X.
      On my CNC mills and lathe machines, I can put M99 at the end of a file and it will run it again and again until some condition or with M00 and switch on the controls keyboard.
      Generally, I want to loop the part program (job) endless
      Dduet wifi , RPF2 with duet brackout board and external drivers
      How to do this with DUET

      Muldex IDEX Duet2+Duex5
      Custom CoreXY 600x400 Hemera , Duet3+Toolboard+1HCL closed loop
      Sapphire Pro with Duet2, with closed-loop motors
      custom high temp E3D tool changer with Duet2+Duex

      oliofundefined 1 Reply Last reply Reply Quote 0
      • oliofundefined
        oliof @martin7404
        last edited by

        @martin7404 you can do this with metacommands

        I would write a helper macro, "Loop.g" that looks roughly like this:

        while globals.Loop
          M98 P{params.X}
        

        A Macro "EnableLoop"

        if exists(global.Loop)
          set global.Loop = true
        else
          global Loop = true
        

        And a Macro "StopLoop"

        if exists(globals.Loop)
          set globals.Loop = false
        else
          global Loop = false
        

        Then you can set up your system to Loop by running EnableLoop
        and call your looping gcode running M98 P"Loop" X"FileToLoop"

        Note this is untested and probably misses some nuance. You will need to make sure that in case of error globals.Loop is unset for example

        <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

        martin7404undefined 1 Reply Last reply Reply Quote 2
        • martin7404undefined
          martin7404 @oliof
          last edited by

          @oliof thank you
          So I should move to RPF 3 then with this project

          Muldex IDEX Duet2+Duex5
          Custom CoreXY 600x400 Hemera , Duet3+Toolboard+1HCL closed loop
          Sapphire Pro with Duet2, with closed-loop motors
          custom high temp E3D tool changer with Duet2+Duex

          oliofundefined baird1faundefined 2 Replies Last reply Reply Quote 0
          • oliofundefined
            oliof @martin7404
            last edited by

            @martin7404 I would recommend that

            <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

            1 Reply Last reply Reply Quote 0
            • baird1faundefined
              baird1fa @martin7404
              last edited by

              @martin7404 I'm running a duet 2 wifi with external drivers and using RRF3.4 the only issue I've seen is that when in CNC mode I have no DRO of any kind. They are supposedly fixing that when 3.4 becomes RC1 (not sure what that means)

              oliofundefined 1 Reply Last reply Reply Quote 0
              • oliofundefined
                oliof @baird1fa
                last edited by

                @baird1fa excuse my ignorance, but what does DRO mean in this context and what is it used for?

                <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

                martin7404undefined 1 Reply Last reply Reply Quote 0
                • martin7404undefined
                  martin7404 @oliof
                  last edited by

                  @oliof Digital Read Out.
                  i.e. No position tracking on panel DUE only in DWC

                  Muldex IDEX Duet2+Duex5
                  Custom CoreXY 600x400 Hemera , Duet3+Toolboard+1HCL closed loop
                  Sapphire Pro with Duet2, with closed-loop motors
                  custom high temp E3D tool changer with Duet2+Duex

                  oliofundefined 1 Reply Last reply Reply Quote 0
                  • oliofundefined
                    oliof @martin7404
                    last edited by

                    @martin7404 PanelDue (and 12864 if configured to do so) do show current position (within limits), but I guess you are looking for either a real time display or position reporting from encoders etc.?

                    <>RatRig V-Minion Fly Super5Pro RRF<> V-Core 3.1 IDEX k*****r <> RatRig V-Minion SKR 2 Marlin<>

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