On Thursday 25 June 2020 22:14:19 Gene Heskett wrote: > On Thursday 25 June 2020 21:31:36 Gene Heskett wrote: > > On Wednesday 24 June 2020 14:27:11 Gene Heskett wrote: > > > On Wednesday 24 June 2020 13:22:09 andy pugh wrote: > > > > For an on-screen message: > > > > http://linuxcnc.org/docs/2.7/html/man/man9/message.9.html > > > > > > Thats exactly what I'm looking for, thank you. > > > > > > Cheers, Gene Heskett > > > > I /think/ I have that working, but this driver has no docs > > describing its fault output. There are 2 empty pins on the > > connector but no info on the state of those pins, in or out of > > fault. So I may have to wire it up and find out. > > > > I haven't tried to google this driver to see if it has downloadable > > docs, yet. Next obviously. > > And I'm surprised a bit, it has + and - "ALM" labels, but they are > connected when not in fault, and become high impedance when in fault. > And, according to hal-meter, an unconnected gpio is true, so it looks > as if I'll need to wire the - to logic zero/aka ground, and hook the + > ALM to ZFault. gpio.063 IOW. I also want to make it blink the motor > power tally led green/red as an attention getter. And un-home stuff > too. > > > Thanks > > Cheers, Gene Heskett > > Cheers, Gene Heskett
And I'm having a hell of a time. First, the docs lie like a rug, it turns on an npn transistor in an opto isolated circuit when in fault. This makes more sense but is not what the docs say. It also means my chance of detecting it is polarity sensitive. I pulled the top, but center of the list 7i42TA i/o in order to see the better, but somebodies math, likely mine is busted as I hooked it up to what I calculated gpio.063 would be. It wasn't there but showed up on gpio.061. Which is a puzzle because theres wires leaving gpio.62 a 63, and they are not listed in hal. Obviously I need a better way to translate a gpio pin to the 7i42TA terminal when there are 3 7i42TA's plugged into a 7i90HD. But, I get that working, sorta: But its Its triggered by default by either edge. >From my hal file: loadrt message names="ZFault" messages="Z axis in Fault" ... addf ZFault jog-thread ... # display msg if Z drive in fault # copied from board signon at launch # hm2/hm2_7i90.0: IO Pin 061 (P3-31): IOPort # is lowest numbered gpio used yet a/o 6/25/20 setp hm2_[HOSTMOT2](BOARD).0.ZFault.edge 0 lcnc refuses to run, points at above line net zfault <= hm2_[HOSTMOT2](BOARD).0.gpio.061.in => ZFault.trigger linuxcnc -l ... ./hm2-7i90-stepper.hal:260: parameter or pin 'hm2_7i90.0.ZFault.edge' not found Whats wrong? Do I need to rename the net name? Thanks all. 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) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
