On 17 August 2015 at 19:11, John Kasunich <jmkasun...@fastmail.fm> wrote: >> 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. > > Yuck. > > That means if you use a #<_hal[hal_name]> expression twice (or inside a loop), > the same expression could give different results if the HAL signal changed. > AND, thanks to read-ahead, you don't even know exactly when it will be > sampled.
I give up, clearly I am incapable of describing the situation as I understand it, and a real coder ought to look at the code and decide what happens. I think that the parameters are static from the first time they are read, just like any other named parameter. I don't know if you can change the value once you have initialised them. -- 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