Relaiskarte K8056

Die (auch) per RS232 seriell angesteuerte Relaiskarte Vellemann K8056 ist (leider) nur als Bausatz erhältlich und hat acht Relais, die unterschiedlich angesteuert werden können. Mit einem zwischengeschaltetem USB-RS232 Wandler funktioniert sie auch an einem Raspi sofort. Für die Relaiskarte ist ein Hutschienengehäuse erhältlich.

Die komplette Dokumentation Relaiskarte Vellemann K8056 enthält auch Beispiele von Ansteuer-Software.

Zu erhalten für ca. 40 Euro bei Reichelt, Conrad, Segor, Polin, Bürklin, Amazon und anderen Versendern.

Kommandos zur seriellen Ansteuerung (aus der Anleitung) :

1) Port settings: 2400/8/N/1

2) Instruction sequence :

1. CHR$(13)

2. card address (1..255)

3. instruction

4. address (1..255) or relay# ('1'..'9' ASCII)

5. checksum (2-complement of the sum of the 4 previous bytes + 1)

3) Instructions :

'E' : Emergency stop all cards, regardless of address. Carefull, relays turned on by open collector inputs will not be turned off by this command).

'D' : Display address. All cards show their current address in a binary fashion. (LD1 : MSB , LD8 : LSB)

'S' : Set a relay. 'S'-instruction should be followed by relay # '1' to '8'. ('9' sets all relays at once).

'C' : Clear a relay. 'C'-instruction should be followed by a relay # '1' to '8'. ('9' clears all relays at once.)

'T' : Toggle a relay. 'T'-instruction should be followed by a relay # '1' to '8'

'A' : Change the current address of a card. 'A'-instruction should be followed by the new address (1..255)

'F' : Force all cards to address 1 (default)

'B' : Send a byte. Allows to control the status of all relays in one instruction, by sending a byte containing the relay status for each relay. (MSB : relay1, LSB : relay8)

Der Vorteil dieser Karte ist die elektrische Trennung von Raspi. Die Verbindung erfolgt nur seriell.