B. Communication protocol
Data contents are in hexadecimal with postive and negative format.
1. RTU
2. ASCII
56
STX Start character=' : ' (3AH)
Address Hi
Communication address :
8-bit address consists of 2 ASCII codes.
Address Lo
Function Hi
Command code :
8-bit command consists of 2 ASCII codes.
Function Lo
Data (n-1)
Contents of data :
n*8-bit data consist of 2n ASCII codes.
...
Data 0
LRC CHK High
LRC check sum :
8-bit check sum consists of 2 ASCII codes.
LRC CHK Low
END Hi
End characters :
END Hi=CR(0DH)
END Lo=LF(0AH)
END Lo
Start A silent interval of more than 10ms
Address 8-bit address
Function 8-bit command
Data (n-1)
Contents of data :
n*8-bit data, n 16≦
...
Data 0
CRC CHK Low Check sum (CRCL)
CRC CHK High Check sum (CRCH)
End A silent interval of more than 10ms