SMC Networks HECR Series Communications Manual page 31

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

Advertisement

MODBUS communication function
5.8.2 Function code:06H Writing registers
Write data to assigned address.
Request message <Normal> (Master to Slave)
Start
Slave Address
[:]
XX
XX
Response message <Normal> (Slave to Master)
Start
Slave Address
[:]
XX
XX
Communication example
1) Slave Address (=Unit number): No 1
2) Write data to register 0050H
(Commands to run)
Your system
(Request):010600500001A8 [CR][LF]
(Response):010600500001A8 [CR][LF]
Request message
Code
01
Slave Address
06
Function
0050
Address of specified register
0001
Information written to 0050H (Stop flag)
A8
LRC
5-9
Function
[0]
[6]
Write Address
Hi
Lo
XX
XX
XX
Function
[0]
[6]
Write Address
Hi
Lo
XX
XX
XX
Contents
Data
Write Data
Hi
XX
XX
XX
Data
Write Data
Hi
XX
XX
XX
Response message
Code
01
Slave Address
06
Function
0050
Address of register to write
0001
Information of register to write
A8
LRC
LRC
End
XX
XX
[CR]
Lo
XX
XX
LRC
End
XX
XX
[CR]
Lo
XX
XX
This product
Data is sent and
received in ASCII
code.
Contents
[LF]
[LF]
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