On 29 March 2016 at 01:37, Len Shelton <len.shel...@gmail.com> wrote: > How do you drive a hal pin from g-code. I have been using LinuxCNC for a > very long time and this would be news to me.
You use the Digital output G-codes: http://linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m62-m65 G-code can _read_ HAL pins directly, but you have to take care as the values are read during the look-ahead phase, not synchronised to motion. (in practice this generally means that the value you get is what was current when the program was started) http://linuxcnc.org/docs/2.7/html/remap/remap.html#remap:referto-hal-items (And we really should think about acting on the suggestion of either moving that information to somewhere where users will find it, or removing the feature. I can't remember if it defaults on or off in 2.7) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1916 ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers