• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    martin7404
    last edited by martin7404 2 Jul 2022, 18:45 7 Feb 2022, 18:45

    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

    undefined 1 Reply Last reply 7 Feb 2022, 19:21 Reply Quote 0
    • undefined
      oliof @martin7404
      last edited by 7 Feb 2022, 19:21

      @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<>

      undefined 1 Reply Last reply 7 Feb 2022, 22:25 Reply Quote 2
      • undefined
        martin7404 @oliof
        last edited by 7 Feb 2022, 22:25

        @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

        undefined undefined 2 Replies Last reply 8 Feb 2022, 09:52 Reply Quote 0
        • undefined
          oliof @martin7404
          last edited by 8 Feb 2022, 09:52

          @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
          • undefined
            baird1fa @martin7404
            last edited by 8 Feb 2022, 22:24

            @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)

            undefined 1 Reply Last reply 10 Feb 2022, 11:19 Reply Quote 0
            • undefined
              oliof @baird1fa
              last edited by 10 Feb 2022, 11:19

              @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<>

              undefined 1 Reply Last reply 10 Feb 2022, 11:26 Reply Quote 0
              • undefined
                martin7404 @oliof
                last edited by 10 Feb 2022, 11:26

                @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

                undefined 1 Reply Last reply 10 Feb 2022, 11:31 Reply Quote 0
                • undefined
                  oliof @martin7404
                  last edited by 10 Feb 2022, 11:31

                  @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
                  8 out of 8
                  • First post
                    8/8
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA