Omron V400-H111 FCS Calculation Method, Calculation Example for Sending FCS, Header Footer

Models: V400-H111

1 93
Download 93 pages 3.98 Kb
Page 86
Image 86

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

V400-H111/211

User’s Manual

85

Page 86
Image 86
Omron V400-H111 user manual FCS Calculation Method, Calculation Example for Sending FCS, Header Footer, FCS data