Appendices
FCS Calculation Method
■FCS Calculation Method
The FCS (Frame Check Sequence) is the result of taking the XOR for each byte between the header and footer (8 bits) and converting it to 2 characters of ASCII.
The FCS can be attached to output data to improve the reliability of communications. Each time data is received, the host calculates the FCS and checks it against the FCS attached to the sent data so that the send data can be checked for errors.
■Calculation Example for Sending FCS
Sample read data: ABCDEFG
The details of the read data and calculation method are as follows:
•Read data
Header Footer
Read data
•Calculation method
Read data |
| ASCII |
|
|
|
Conversion to
ASCII:
FCS
Conversion to hexadecimal values
Hexadecimal
Appendices FCS Calculation
Obtaining the exclusive OR:
Conversion to
ASCII:
FCS data: 40
Method
User’s Manual
85