GCode repeat or loop

GCode repeat or loop

ben
Explorer Explorer
715 Views
1 Reply
Message 1 of 2

GCode repeat or loop

ben
Explorer
Explorer

I have a laguna CNC with Rich Auto controller.  I am trying to run an extremely simple operation, but have my file repeat or loop, to infinity or more likely until I hit the power button.    

 

I want to use my machine to cut a chevron flooring pattern.  Say my piece of flooring is 3/4" x 4"  and all I want to cut is a miter on both ends.   Ideally I would set up several cutting "jigs" around my table, and I would simply follow the machine around swapping out cut pieces for uncut pieces while the gantry and spindle are cutting in another location.  After 3 or 4 cutting stations it would simply come back to the beginning and loop the cycle until I turn it off.  

 

Is this A. possible to program within fusion, or B. something I can simply add to my gcode?  I have tried a GOTON10 to try to get it to return to the beginning, replaced my m30 line with m99  etc. but most of these changes just produce an error. 

 

thank you!

 

 

0 Likes
716 Views
1 Reply
Reply (1)
Message 2 of 2

seth.madore
Community Manager
Community Manager

Does your controller support sub programs? I've never run a Rich Auto controller, I'm uncertain if that is or isn't an option.

One thing you can try is to have an M98 Pxxx (where xxxx is the program number of the program you want to loop) and see if that works. The other format that might be required is a G65 Pxxx (same note as above)

 

For subprogram programming, yes, Fusion does support it, but it does require post processor modifications. You can likely use the Fanuc post with "Subroutines" set to Yes. 

 


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes