SMC Networks HECR Series Communications Manual page 29

Thermo-con/ rack mount type
Hide thumbs Also See for HECR Series:
Table of Contents

Advertisement

MODBUS communication function
5.6 Function codes
The table berow function codes to read or write register.
NO
Code
1
03(03H)
2
06(06H)
3
16(10H)
4
23(17H)
*1:Broadcast is not supported.
5.7 LRC
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
LRC message for calculation
Calculation
Sending message
5-7
Name
Read holding registers
Preset single register
Preset multiple registers
Read/write 4x registers
0106000B00FE
1) Addition
01H+06H+00H+0BH+00H+FEH=110H
2) Object
110H→10H
3) complement of 2
10H→EFH→F0H
LRC is F0H
[:]0106000B00FEF0[CR][LF]
Function
Reading multiple registers
*1
Writing registers
Writing multiple registers
Reading/writing multiple registers
HECR

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HECR Series and is the answer not in the manual?

Table of Contents