PC to CPU:
'STX' 'ADR' 'o' index10er index1er_value 'CHK' 'ETX'
'o'
ASCII-Code 0x6F OR 0x80 = 0xEF
Index10er
Number of channel according list at command ‘O’ counting from zero.
Index1er
per byte in ASCII OR 0x80
_
blank = 0x20 OR 0x80 = 0xA0
value
'1' or '0' correspond to ON or OFF
Example 1:
Index 9
Index10er = '0' = 0x30 OR 0x80 = 0xB0
Index1er = '9' = 0x39 OR 0x80 = 0xB9
Index must be greater or equal 3 + number of flags. In the example above index = 9 would match channel compressed air.
Example 2:
index 9 turn on: ADR = 1, compressed air = 1
String =
0x02 0x81 0xEF 0xB0 0xB9 0xA0 0xB1 0xF6 0x03 (9 Bytes)
CPU to PC
'STX' 'ADR' 'o' Index10er Index1er 'CHK' 'ETX'
'o'
ASCII-Code 0x6F OR 0x80 = 0xEF
Example:
index 9 turn on: ADR = 1, compressed air = 1
String =
0x02 0x81 0xEF 0xB0 0xB9 0xE7 0x03 (7 Bytes)