As a self taught programmer, cook, engineer, machinist, welder, jack of all trades master of a few I could never see me wanting to use an infinite loop for anything CNC related. I would have my input run the subroutine program.
I understand this is normal for a PLC (I program them as well) to scan the ladder forever waiting on an input so maybe you need to use ClassicLadder instead. JT On 11/4/2015 7:57 PM, Ralph Stirling wrote: > I use Linuxcnc for machine automation in my manufacturing lab, > and am bothered by the difficulty of creating "infinite loops". > I often want to have a machine sit an indefinite amount of time > until a sensor signals it is time to make the next move. M66 > lets me wait for a sensor, but requires a timeout value. I don't > want a timeout value. > > In addition to this, I would like to be able to have WHILE [1] > infinite loops, with a conditional to break out based on some > input. Axis hangs loading a program with WHILE [1] in it, > even if I have (axis,HOLD) or (axis,STOP) at the beginning. > > Anybody else wanted to do this? Anybody find a way to? > > Thanks, > -- Ralph > ------------------------------------------------------------------------------ > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users