Status lesen
PC an CPU:
'STX' 'ADR' 'S' 'CHK' 'ETX'
'S'
ASCII-Code 0x53 OR 0x80 = 0xD3
Beispiel
ADR = 1
String =
0x02 0x81 0xD3 0xD2 0x03 (5 Bytes)
CPU an PC
'STX' 'ADR' 'S' Info1 Info2 ..... Info9 'CHK' 'ETX' (gelesener Wert)
'S'
ASCII-Code 0x53 OR 0x80 = 0xD3
Info1 bis
'0' = "AUS"; '1' = "Ein"
Info9
je 1 Byte in ASCII OR 0x80 (0xB0 oder 0xB1)
Info1 = Start/Stopp
Info2 = Sammelstörung
Info3 = Merker/Softkeys
Info4 = Merker/Softkeys
Info5 = Merker/Softkeys
Info6 = Merker/Softkeys
Info7 = Merker/Softkeys
Info8 = Merker/Softkeys
Info9 = Fehlernummer
Info1 = Start/Stopp
Info2 = Sammelstörung
Info3 = Merker/Softkeys
Info4 = Merker/Softkeys
Info5 = Merker/Softkeys
Info6 = Merker/Softkeys
Info7 = Merker/Softkeys
Info8 = Merker/Softkeys
Info9 = Fehlernummer
Beispiel:
ADR = 1, Info1 = 1, Info2 = 0, Info3 = 1, Info4 = 1, Info5 = 0, Info6 = 0, Info7 = 0, Info8 = 0, Info9 = 0
String =
0x02 0x81 0xD3 0xB1 0xB0 0xB1 0xB1 0xB0 0xB0 0xB0 0xB0 0xB0 0xE3 0x03 (14 Bytes)