PDA

View Full Version : Switch on Mastercard



Biting Bee
09-25-2009, 11:13 AM
Hi there all

i would install my switch on my Mastercard but i get only a loop.
I dont push my switch and i get a signal from my mastercard

Where is my mistake?


My Code


Var 1 Link IOCARD_SW Input 1 Type I
{
IF v1 = 1
{
&Key = 37
}
ELSE
{
&Key = 0
}
}

Var 2 name Key Link KEYS


Sioc.ini

#37=B
...


Kind regards

gblock
10-14-2009, 01:25 AM
What kind of switch are you using. It says type 1 in your SIOC code, which is SPDT (Single-Pole-Double-Throw) but you speak of "Pushing your switch," so is it a switch, or a momentary pushbutton?

*Edit: "Push My Switch"