Outputs Open or Close

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: 35
Joined: Sat Feb 15, 2020 3:15 pm

Outputs Open or Close

Post by xagduran »

Hello:
Is there a way to tell if an output is open or closed in C#?
Greetings.
Angel
davebush
Posts: 482
Joined: Fri Oct 22, 2004 12:20 pm

Re: Outputs Open or Close

Post by davebush »

Hi,

From the application manual - http://aardvark.eu.com/downloads/docume ... Manual.pdf

The expression (SwitchCloses(n) == SwitchOpens(n)) will always return 0 if the switch is currently closed and 1 if the switch is currently open.

Regards

Dave
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
xagduran
Posts: 35
Joined: Sat Feb 15, 2020 3:15 pm

Re: Outputs Open or Close

Post by xagduran »

Hello:
We refer to IndicatorOn / IndicatorOff
If there is any way to know whether or not you sent something, or what is its current status
Greetings.
Angel.
davebush
Posts: 482
Joined: Fri Oct 22, 2004 12:20 pm

Re: Outputs Open or Close

Post by davebush »

I'm sorry i misread your post.

No, I'm afraid there is no way of knowing what you last set an output to. They will be off at the time Paylink powers on, but are retained over an application exit and restart.

Regards

Dave
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
xagduran
Posts: 35
Joined: Sat Feb 15, 2020 3:15 pm

Re: Outputs Open or Close

Post by xagduran »

And the state it is in at each moment, there is no way of knowing, if it is open or closed
Greetings.
Angel.
davebush
Posts: 482
Joined: Fri Oct 22, 2004 12:20 pm

Re: Outputs Open or Close

Post by davebush »

I'm not sure what your exact question is.

Within a few milliseconds of you calling IndicatorOn the output transistor will be driven, within a few milliseconds of you calling IndicatorOff the drive will stop.

There is no feedback from Paylink to confirm this has happened.

If you have critical output(s) and it is essential that you know that they have activated, and excatly what state they are in, you could connect these output(s) back to the Paylink input(s) as well as to the external equipment.

Paylink inputs are connected to the internal 3V3 via 680 ohm pull ups, so if your external equipment uses a 3V3 pull up or has a high impedance with a threshold below 3V3 there will be no problem with just connecting it.
If your external equipment signal voltage is higher than 3V3 and will supply quite a lot of current, then you should use a schottky diode to make this connection. (Conducting from the input towards the output.)
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply