PC to CPU:
'STX' 'ADR' 'A' channelno 'CHK' 'ETX'
'A'
ASCII-Code 0x41 OR 0x80 = 0xC1
channelno
one byte in ASCII OR 0x80
Example:
ADR = 1, channelno = 0 (temperature channel)
String =
0x02 0x81 0xC1 0xB0 0xF0 0x03 (6 Bytes)
CPU to PC
'STX' 'ADR' 'A' channelno_actualvalue_setvalue 'CHK' 'ETX' (read value)
'A'
ASCII-Code 0x41 OR 0x80 = 0xC1
channelno
one byte in ASCII OR 0x80
_
blank = 0x20 OR 0x80 = 0xA0
actualvalue
Format XXX.X (-XX.X bei for negative values) per Byte in ASCII OR 0x80
setvalue
Format XXX.X (-XX.X for negative values) per byte in ASCII OR 0x80
Example:
ADR = 1, channelno = 0 (temperature channel), actualvalue = -14.5 °C, setvalue = -13.8 °C
String =
0x02 0x81 0xC1 0xB0 0xA0 0xAD 0xB1 0xB4 0xAE 0xB5 0xA0 0xAD 0xB1 0xB3 0xAE 0xB8 0xFA 0x03 (18 Bytes)
Remarks:
If several channels are available, each one must be read separately.