What I have done before is to use the Hal interface to trigger the program run. You load the program initially and then trigger the program run via Hal. Make sure you put an M30 at the end of your G code program so the program rewinds at the end. Then when you want to run the program again trigger the Hal input again and the program will run again from the beginning.. You can trigger the Hal input via Classic Ladder or via an external input. I used an external input since I was using a PLC to sequence the machine and then when the sheet was loaded properly, I tripped the hal input to run the G code program.
Dave On 11/5/2011 9:14 AM, John Thornton wrote: > No, there is no M code for repeating a program. > > Here is the short list of M codes in the User Manual. > > http://www.linuxcnc.org/docview/html/gcode_main.html#r2 > > John > > On 11/3/2011 5:09 PM, Chris Reynolds wrote: > >> Isn't there an M code for repeating the program? >> >> >> Chris Reynolds >> >> >> Owner - BlowYourBrassOff.com - Maker of fine custom harmonicas >> http://www.blowyourbrassoff.com >> >> >> >> >>> Subject: [Emc-users] Repeating a program >>> To: "Enhanced Machine Controller (EMC)" >>> <[email protected]> >>> Message-ID: >>> <CAA=YKfMsGct8N=x5w-gcgfe2ecovdir4vxyk9ads6vqcgjb...@mail.gmail.com> >>> Content-Type: text/plain; charset=ISO-8859-1 >>> >>> How do I repeat a program. >>> >>> On the CNC machines we have now I use an M99 - but this does not seem to >>> work in EMC >>> >>> On my lathe I have a bar puller so I want the program to run over and over. >>> >>> Thanks >>> >>> -- >>> Brian May >>> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Emc-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/emc-users >> > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
