On 16 October 2013 11:19, aaron moore <[email protected]> wrote:

> Can anyone tell me, or point me to somewhere that can, how to loop a program 
> continuosly untill the stop button is pressed?

One way:

O100 WHILE [1]
<G-Code Here>
O100 ENDWHILE

If you prefer to have something that will eventually end, then you might prefer

O101 REPEAT [1000000]
<G-code here>
O101 ENDREPEAT

http://www.linuxcnc.org/docs/html/gcode/o-code.html

You might find that the AXIS preview takes an indefinite time for the
indefinite version (and a long time for the other version).
putting (AXIS,stop)  before the "ENDWHILE" or "ENDREPEAT" line might help.
http://www.linuxcnc.org/docs/html/gui/axis.html#_axis_preview_control

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to