On Friday 21 February 2020 04:14:35 Gene Heskett wrote:

> On Thursday 20 February 2020 21:00:47 Gene Heskett wrote:
> > On Thursday 20 February 2020 20:23:53 Peter C. Wallace wrote:
> > > > Thanks Peter.
> > >
> > > HDR26 <--> DB25
> > >
> > > -- P2             26 HDR  DB25
> > > -- I/O 17 PIN 1   PIN 1
> > > -- I/O 18   PIN 2 PIN 14
> > > -- I/O 19   PIN 3 PIN 2
> > > -- I/O 20 PIN 4   PIN 15
> > > -- I/O 21 PIN 5   PIN 3
> > > -- I/O 22 PIN 6   PIN 16
> > > -- I/O 23 PIN 7   PIN 4
> > > -- I/O 24 PIN 8   PIN 17
> > > -- I/O 25 PIN 9   PIN 5
> > > -- I/O 26 PIN 11  PIN 6
> > > -- I/O 27 PIN 13  PIN 7
> > > -- I/O 28 PIN 15  PIN 8
> > > -- I/O 29 PIN 17  PIN 9
> > > -- I/O 30 PIN 19  PIN 10
> > > -- I/O 31 PIN 21  PIN 11
> > > -- I/O 32 PIN 23  PIN 12
> > > -- I/O 33 PIN 25  PIN 13
>
> Now I find something is aglay. Following my usual practice of working
> down from the top in gpio usage, gpio.031 is the first un-commited
> gpio.
>
> But setting it to invert_output, is_opendrain, and is_output, has no
> effect. Not an error according to halshow, but has no effect on the
> output.
>
> When driven by E-stop.out it is not reversed at the halmeter for
> hm2_5i25.0.gpio.031.out.  I'd like it to sink (show false) when
> E-stop-out is true.
>
> How do I accomplish a sink when the net is from E-stop when E-stop is
> true?
>
> This is what I've put in the .hal file:
>
> net estop-out <=   iocontrol.0.user-enable-out
> # can I use gpio.031 supposedly p2-11 to switch main power
> setp hm2_5i25.0.gpio.031.is_output true
> setp hm2_5i25.0.gpio.031.is_opendrain true
> setp hm2_5i25.0.gpio.031.invert_output true
> net estop-out =>   iocontrol.0.emc-enable-in
> net estop-out   =>   hm2_5i25.0.gpio.031.out
>
> Thanks Peter.
>
> Cheers, Gene Heskett

I may be makeing noise, I keep forgetting that I'm NOT looking a the bob 
output with a halmeter when I'm in the house working over the net. So go 
out and use a real meter. Besides that, gpio.031 on the bob is pin-11, 
an input, if it was 5i25-p3 would be an encoder input. So I'll have t0 
figure out which pin is labeled A-dir and use that.  Same with TLM and 
shop, the rebuilt 6040.

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

Reply via email to