[Emc-users] HAL: input-output pin wired to a only input or only output pin

2011-04-28 Thread Javier Ros
Hello,

I want to connect the output of an AND gate, to the INDEX-ENABLE io pin of
my card.
I want too, to connect the INDEX-ENABLE io pin of AXIS to one of the inputs
of the AND gate.

Will this give an error or is it possible?.


Thanks,

Javier

PD:
Rationale:

I want to reset two encoder counters using the index pulse of one of them.
The electrical part is easy.

At the HAL configuration level, I plan to connect the AXIS-INDEX-ENABLE io
pin to the first  CARD-INDEX-ENABLE io pin
and to the second CARD-INDEX-ENABLE io pin, through an AND gate that has a
ONE as the other input.

The underlying reason is that I want to compare the errors between both
sensors.
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HAL: input-output pin wired to a only input or only output pin

2011-04-28 Thread andy pugh
On 28 April 2011 18:12, Javier Ros j...@unavarra.es wrote:

 Will this give an error or is it possible?.

Probably less typing to do it in Hal and see than to ask the question,
to be honest.

If it doesn't work it should be fairly easy to write a HAL function to
convert IO to I and O pins and vice-versa.

I think you might have trouble with AND writing to the output IO pin
every thread. A comp has the option of only writing to the pin when a
condition is met, and leaving it unchanged otherwise.

-- 
atp
Torque wrenches are for the obedience of fools and the guidance of wise men

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users