Thanks Andy Do I understand it correctly. I have to send the value from gcode to an analog pin that is connected to my float input in HAL to get the actual value. Scaled obviously.
I.E motion.analog-out-00 => mycomp-float-in. On 2014-09-04 16:32, andy pugh wrote: > On 4 September 2014 15:17, Marius Liebenberg <[email protected]> wrote: > >> I understand that one can get a value from HAL into a gcode sub routine. >> I am trying to set a HAL pin from my gcode but it seems not to want to >> happen. > The #<_hal[hal.pin.name]> format is read-only, so the easy option is > unfortunately not available. > > To set a HAL pin you need to use the G-code "analog output" or > "digital output". See M62 etc: > http://www.linuxcnc.org/docs/html/gcode/m-code.html#sec:M62-M65 > -- Regards /Groete Marius D. Liebenberg +27 82 698 3251 +27 12 743 6064 QQ 1767394877 ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
