Siemens SIMATIC TIWAY 1 User Manual page 201

Unilink host adapter
Hide thumbs Also See for SIMATIC TIWAY 1:
Table of Contents

Advertisement

B.7 BLOCK CHECKSUM GENERATION AND CHECKING
To calculate the BCS:
1. Zero both BCS field bytes.
2. Begin with the address field byte.
3. Add the byte to the most significant BCS byte including any carry bit
4. Add the most significant BCS byte to the least significant BCS byte,
5. Get the next frame byte and go to Step 3. If there are no more bytes,
6. Add the least significant byte to the most significant byte.
7. Calculate the ones-complement of the most significant BCS byte.
Example B–3 illustrates how to calculate the BCS on an example frame. The
BCS like the Cyclic Redundancy Checksum (CRC) detects burst errors,
single-bit errors, and most double-bit errors.
UNILINK HOST ADAPTER
USER MANUAL
USING THE BDLC PROTOCOL
generated. (Use only eight bit arithmetic in these steps).
again including the carry.
continue with the following steps.
B–16

Advertisement

Table of Contents
loading

Table of Contents