PC to CPU:
'STX' 'ADR' 't' date time 'CHK' 'ETX'
't'
ASCII-Code 0x74 OR 0x80 = 0xF4
date
DDMMYY per Byte in ASCII OR 0x80 (6 Bytes)
time
HHMMSS per byte in ASCII OR 0x80 (6 bytes)
Example:
ADR = 1, date = 241196, time = 145535
String =
0x02 0x81 0xF4 0xB2 0xB4 0xB1 0xB1 0xB9 0xB6
0xB1 0xB4 0xB5 0xB5 0xB3 0xB5 0xFF 0x03 (17 Bytes)
0xB1 0xB4 0xB5 0xB5 0xB3 0xB5 0xFF 0x03 (17 Bytes)
CPU to PC
'STX' 'ADR' 't' date time 'CHK' 'ETX' (set value)
't'
ASCII-Code 0x74 OR 0x80 = 0xF4