How can I start a part program again after it is finished
-
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 -
@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 runningM98 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
-
@oliof thank you
So I should move to RPF 3 then with this project -
@martin7404 I would recommend that
-
@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)
-
@baird1fa excuse my ignorance, but what does DRO mean in this context and what is it used for?
-
@oliof Digital Read Out.
i.e. No position tracking on panel DUE only in DWC -
@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.?