hmm interesting chicken and egg problem the pre-interpretation done by linuxcnc has loads of benefits but it can have problems with undefined things ( where to trip on a touchprobe, where it will be when done- but in infinite loop so it never finished that calculation)
better heads than mine will ponder the solution, but i suggest you look elsewhere meaning: look at safely aborting a limited number of iterations ( parallel a limit swx in your office or to your smartphone via relay ). and if loading THAT is too doggy. be prepared to load a more limited number of iterations more frequently. Because the 'proper' solution will be slower in coming than a hack. a LOT of CNC is learning how to get around the limitations. remember all the benefits and its not too hard to swallow. my 2c TomP tjtr33 On 11/05/2015 08:57 AM, 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