259
E.g.: Byte 0X5B will be encoded as two characters: 0x35 and 0x42(ASCII code 0x35 ="5"
,
0x42 ="B" ).
ASCII mode frame check domain
:
Longitudinal Redundancy Checking (LRC)
ASCII mode frame description:
Format:
Communication position(no)
:
Consist of 2 ASCII codes
Function code(command):
Consist of 2 ASCII codes
Command start bit:
Consist of 4 ASCII codes
Length from start to end:
Consist of 4 ASCII codes
LRC check code:
Consist of 2 ASCII codes
End mark
:
END Hi=CR(0DH),END Lo=CR(0AH)
2. Communication address
:
00H
:
All Xinje XC series PLC broadcast—— slave stations do not response.
01H
:
Communicate with address 01H PLC.
0FH
:
Communicate with address 15H PLC.
10H
:
Communicate with address 16H PLC.
And so on, up to 254(FEH).
3. Function and DATA
:
tudonghoatoancau.com