On 17 August 2015 at 16:49, John Kasunich <jmkasun...@fastmail.fm> wrote:
> If you start thinking about this from a timing/synchronization perspective, 
> then
> there is nothing magic about reading the pins when you hit RUN.  It could just
> as easily be "read the pins when you encounter custom M-code Mxxxx", or
> when you encounter magic comment (halread <halname> <named_param>).

Maybe I have unnecessarily muddied the waters when I said that the
values are read when you press "Run".
That isn't technically correct. The values are read when the
interpreter interprets the line. What i meant to suggest is that you
wouldn't want to be relying on the G-code seeing your new value if you
change it after the G-code has started.

It would be possible to make the existing format a queue-buster, and
that would have the same effect as the magic-comment. The
magic-comment is just a different way to do exactly the same thing
that Jeff dislikes the idea of.

(I am not sure I quite understand the basis of Jeff's objections,
unless it is actually that a HAL pin value is being read without
actually appearing in the HAL file?)

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to