How to know if the swiches are open or closed?

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
xagduran
Posts: 36
Joined: Sat Feb 15, 2020 3:15 pm

How to know if the swiches are open or closed?

Post by xagduran »

Hi:
What is the input voltage of the Paylink switches: 3 V?
Can the 16 outputs be used?
Is it a switch that opens and closes?
How do we detect in C # that an entry is open or closed?
if (AESImhei.SwitchCloses (0) == AESImhei.SwitchOpens (0))
{
// close??
}
else
{
// open??
}
Thank you.
Greetings
davebush
Posts: 492
Joined: Fri Oct 22, 2004 12:20 pm

Re: How to know if the swiches are open or closed?

Post by davebush »

Hi,

The Paylink inputs should not be connected to any voltage. The Paylink itself connects the line to its internal 3V3 through a resistor.

The only thing you should then do with the signal is connect it to ground - either with a switch, or by using an "open collector" electronic output.

From the programming manual:
The expression (SwitchCloses(n) == SwitchOpens(n)) will always return false if the switch is currently closed and true if the switch is currently open.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply