On Wednesday 20 September 2017 21:13:21 andy pugh wrote: > On 20 September 2017 at 14:08, Gene Heskett <[email protected]> wrote: > > Since I've found I can't do a setp in gcode to control the color of > > an led > > You could use M62 (or similar) > http://linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m62-m65
So I could in postgui.hal: net led4 motion.digital.out-00 pyvcp.camstatus (the leds control pin) And in my code use m64 p0 to turn it green, and m65 p0 to turn it red again? I can't test it ATM, as I turned off the main motor power box before coming in for the night, so I can't home it which it needs before that works. But if it works, and I suspect it will, I can use up those 4 lines quickly as I've at least 3 more leds to control after this one. Thank you Andy. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
