O word in program - AXIS hang on program load
19 Jun 2012 12:24 #21094
by andypugh
Replied by andypugh on topic Re:O word in program - AXIS hang on program load
boyzo wrote:
en.wikipedia.org/wiki/Halting_problem
So, the question should then be if the Axis preview should only iterate through a loop a finite number of times. The question then is how many times, and also if program lines after the loop should be previewed.
I don't think there is any good reason to use an infinite loop. I assume that your machine is not a conventional XYZ machine?
It is impossible in the general case to determine if a loop will ever end:Is this request (I mean to repeat execution of single program) worth thinking about solving it on the external level not in the CNC program?
en.wikipedia.org/wiki/Halting_problem
So, the question should then be if the Axis preview should only iterate through a loop a finite number of times. The question then is how many times, and also if program lines after the loop should be previewed.
I don't think there is any good reason to use an infinite loop. I assume that your machine is not a conventional XYZ machine?
Please Log in or Create an account to join the conversation.
20 Jun 2012 20:28 - 20 Jun 2012 20:29 #21158
by boyzo
Replied by boyzo on topic Re:O word in program - AXIS hang on program load
BigJohnT wrote:
Yes, this is what I want. CNC program will wait until new part is ready on each cycle.
I did this in ladder program where I use halui pins:
halui.machine.is-on
halui.program.is-idle
halui.program.optional-stop.is-on ... to simulate CycleRun
halui.program.run.
It works. I want to use also halui.mode.is-auto, but it goes off with M30. Is it possible to keep this sygnal on?
I attached simple ladder I use for testing.
I would assume the only reason you need to repeat a program is if your changing parts out or have a bar feeder and both of those should be controlled externally from the g code file. When you run out of material you want to stop right? You don't want to start till the new blank or the bar feeder is done right?
John
Yes, this is what I want. CNC program will wait until new part is ready on each cycle.
I did this in ladder program where I use halui pins:
halui.machine.is-on
halui.program.is-idle
halui.program.optional-stop.is-on ... to simulate CycleRun
halui.program.run.
It works. I want to use also halui.mode.is-auto, but it goes off with M30. Is it possible to keep this sygnal on?
I attached simple ladder I use for testing.
Last edit: 20 Jun 2012 20:29 by boyzo.
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds