Einzelnen Beitrag anzeigen
Alt 27.10.2003, 12:47   #8
Pantu
Master
 
Registriert seit: 11.01.2001
Beiträge: 798


Standard

Hi Finn,

the BCD coded switch can have max 16 positions, but could well be 10 only. (0 to 9).
The switch has 4 pins plus common and is BCD coded (1, 2, 4, 8 ) in itself The numbers on the switch are generally in dec.

In FSBus you just tell that it´s a BCD switch and the software will decode the BCD coded signal to dec.

Eg: 1 Dec = switch representing the 1 is closed (all others open)
2 " = " 2 " "
3 " = " 1 and 2 " "
4 " = " 4 " "
5 " = " 1 and 4 " "
6 = 4 and 2
7 = 1 and 2 and 4
8 = 8
9 = 1 and 8
10 (A) = 2 and 8
B = 1 and 2 and 8

And so on until 1and 2 and 4 and 8 = 16 dec = F hex

Hope this helps.

Best regards


Peter
Pantu ist offline   Mit Zitat antworten