EasyManuals Logo
Home>SMC Networks>Chiller>HRR012-A*-20 Series

SMC Networks HRR012-A*-20 Series Operation Manual

SMC Networks HRR012-A*-20 Series
60 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #40 background imageLoading...
Page #40 background image
HRX-OM-W004
Chapter 3 Serial communication
3.10
Checksum calculation method HRR Series
3-10
3.10 Checksum calculation method
3.10.1 LRC(ASCII)
LRC checks the content of the message other than [:] of START and [CR][LF]
of END. The sending side calculates and sets. The receiving side calculates
based on the received message, and compares the calculation result with the
received LRC. The received message is deleted if the calculation result and
received LRC do not match.
Add up the byte number of the message consisting of 8 consecutive bits.
The result except the carry (overflow) is converted to 2’s complement.
Calculation example
Example) Change circulating fluid set temperature 25.4 ° C
Sending data 0106000B00FE
Slave AddressNo.1
FunctionNo.06
Writing address000Bh
Writing data00Feh
No
Classification
Contents
calculation result
1
LRC message for
calculation
0106000B00FE
-
2
Calculation
Added for each 8Byte
01h06h00h0Bh+00h+FEh=110
h
10h
3
complement of 2
10hEFhF0h
F0hLRC
4
Sending message
[:]0106000B00FEF0[CR][LF] -
3.10.2 CRC(RTU)
CRC checks the content of the message. The sending side calculates
the data every 2 bytes (16 bits). The receiving side calculates CRC
based on the received message, and compares the calculation result
with the received CRC. The received message is deleted if the
calculated CRC is different from the received CRC.
Calculation procedure
Preload “FFFFh” (set 0xFFFF as initial value ).
Exclusive OR the first byte of the transmitted message with the value in (1).
Shift the result of (2) by one bit toward the least significant bit, and fill a zero
into the most significant bit position.
If the least significant bit was a 1, exclusive OR the result of (3) with “A001h”.
(Example 1). If the least significant bit was a 0, no exclusive OR takes place.
Repeat (3) to (5) until eight shifts have been performed.S
After eight shifts, exclusive OR the result of (5) with the next 1-byte (2nd.
byte).
The processes (3) to (6) are repeated for all the remaining bytes of the
message.
The 2-byte data of the result of (7) is the CRC value.

Table of Contents

Other manuals for SMC Networks HRR012-A*-20 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SMC Networks HRR012-A*-20 Series and is the answer not in the manual?

SMC Networks HRR012-A*-20 Series Specifications

General IconGeneral
BrandSMC Networks
ModelHRR012-A*-20 Series
CategoryChiller
LanguageEnglish

Related product manuals