Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread Neil Whelchel
Hello, What we are really talking about there are 2 issues: 1) I did this, (AXIS,stop) is in my code, but it still throws a Python error at line 96 in glcanon.py, which reads: if command == "stop": raise KeyboardInterrupt So it seems that raising an exception here is intentional, it is just that

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread Neil Whelchel
Hello Andy, I am using the magic tags, that is why I wrote my first message here. While I am using the magic tags, the program below throws python errors, but it does work once you dismiss the errors. Program with the actual cutting code removed: % (T20 D=0.00049 CR=0 - ZMIN=-0.6746 - TOOL WEAR O

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread andy pugh
On 24 June 2016 at 17:09, Jeff Epler wrote: > I *believe* the special handling code is in the portion that is shared > between axis and gremlin, so try using (AXIS,stop) at the point you want > to end the preview. I miss-read the original message, I thought it was rejecting the already-existing

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread Jeff Epler
http://linuxcnc.org/docs/2.7/html/gui/axis.html#axis:preview-control I *believe* the special handling code is in the portion that is shared between axis and gremlin, so try using (AXIS,stop) at the point you want to end the preview. Jeff --

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread Dave Cole
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge t

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread MichaƂ Geszkiewicz
Easiest way to run infinite gcode with preview: connect halui.program.is-running to motion.digital-in-00 use 'N66 P0 L0' to read this flag in the end of loop without any delay if flag == 0 (loading time) use BREAK to exit loop Michal W dniu 24.06.2016 o 12:48, andy pugh pisze: > On 23 June 2016

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread andy pugh
On 23 June 2016 at 22:03, Neil Whelchel wrote: > Gremlin on the other hand has an issue with this as it attempts to backplot > infinity. Maybe there should be a specific way to code an infinite loop that the preview can detect as such? O100 REPEAT with no count parameter, for example? -- atp "

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread Sarah Armstrong
surely if the code is tried and tested , then either switch gremlin off , it's not needed or use a txt based GUi , may be a option , of for argument On 24 June 2016 at 09:01, Neil Whelchel wrote: > Hello, > That is a good point, but I am trying to avoid stopping and restarting the > spindle and

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-24 Thread Neil Whelchel
Hello, That is a good point, but I am trying to avoid stopping and restarting the spindle and such. My spindle motor is a permanent magnet motor, and the controller does not support a flying start, so the spindle would have to stop and start for each part set. My spindle is also very high inertia,

Re: [Emc-developers] Gremlin parsing code with infinite loops

2016-06-23 Thread Dave Cole
You can get around that by not doing infinite loops! ;-) Seriously, if you have something like Classic Ladder initiate the program you can run as many parts as you want and still have the Gcode terminate. That avoid the infinite loop issue. The needed bits to trigger and monitor the program