NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC AXIS O word in program - AXIS hang on program load

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: O word in program - AXIS hang on program load

Re:O word in program - AXIS hang on program load 17 Jun 2012 08:30 #21040

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4136
  • Thank you received: 141
  • Karma: 130
boyzo wrote:
Yes, I did this intentionally, as I want to repeat program all the time.

Pressing "ESC" will stop the preview, which is probably a bit easier than killing the process.

You ought to be able to use a "magic comment" to stop the preview at a chosen location.

(Mill 5 diagonal shapes)
o100 do
G91 (Incremental mode)
o103 repeat [5]
M66 P0 L3 Q2
G0 X1 Y1 (diagonal move to next position)
o103 endrepeat
G90 (Absolute mode)
(AXIS,stop)
o100 while [1 EQ 1]
M30
The administrator has disabled public write access.

Re:O word in program - AXIS hang on program load 17 Jun 2012 08:45 #21043

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
You might try turning off the Axis preview which will try and draw forever the never ending loop...

John
The administrator has disabled public write access.

Re:O word in program - AXIS hang on program load 19 Jun 2012 05:15 #21091

  • boyzo
  • boyzo's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Karma: 1
Hello,

Thank you all for help with this. I use (AXIS,stop) to stop preview.

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?

Regards
The administrator has disabled public write access.

Re:O word in program - AXIS hang on program load 19 Jun 2012 05:20 #21093

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
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?

Or is this a totally different application? More details on what your trying to do would help.

John
The administrator has disabled public write access.

Re:O word in program - AXIS hang on program load 19 Jun 2012 05:24 #21094

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4136
  • Thank you received: 141
  • Karma: 130
boyzo wrote:
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?
It is impossible in the general case to determine if a loop will ever end:
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?
The administrator has disabled public write access.

Re:O word in program - AXIS hang on program load 20 Jun 2012 13:28 #21158

  • boyzo
  • boyzo's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Karma: 1
BigJohnT wrote:
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 13:29 by boyzo.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 1.299 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.