2013/5/22 Ralph Stirling <ralph.stirl...@wallawalla.edu>

> I need to have an infinite while loop for an
> automation application, but I can't figure out
> how to keep Axis from hanging forever when
> loading the program.  Turning off all the
> "Show" settings in View doesn't seem to help.
>
> I also have a problem with M66 commands.
> These insist on a Q timeout value.  I don't
> want an arbitrary timeout.  If my machine
> needs to wait an hour for the input, I want
> it to wait an hour.  Can I restore the old
> functionality of M66 that did not require
> the Q term?
>

I needed to repeat particular g-code lines over and over again for one
client and the way I did it was a little HAL magic to trigger
halui.program.run pin.
Basically at the end of file motion.digital.out-00 was triggered, sent to
oneshot component, which had output duration of ~1 sec, oneshot.out was
linked to and2.in0, but and2.in1 was linked to halui.program.is-idle, but
and2.out was linked to halui.program.run; so whenever the g-code file was
finished, HAL restarted it again. And You can add another and2 component to
enable/disable this looping with VCP button or any physical button.

Now I realized that it might had been easier to check for rising edge of
halui.program-is-idle and feed that into oneshot component and tell it to
trigger halui.program-run pin.

-- 
Viesturs

If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to