2
Modbus TCP protocol
© Copyright Reserved Autonics Co., Ltd.
25
2.6
Preset Multiple Registers(Func16–10H)
Writes the binary data of Holding Registers (4X reference) continuously in the Slave device.
(1)
Query(Master)
MBAP
Header
Function
(Comma
nd)
Starting Address
No. of Register
(Number of
register)
Byte Count
(Number of
data byte)
Data
Data
High
Low
High
Low
High
Low
High
Low
7Byte
1Byte
1Byte
1Byte
1Byte
1Byte
1Byte
1Byte
1Byte
1Byte
1Byte
(2)
Response(Slave)
MBAP Header
Function
(Command)
Starting Address
No. of Register(Number of
register)
High
Low
High
Low
7Byte
1Byte
1Byte
1Byte
1Byte
1Byte
The below example is to write all “10(A H)” at Holding Register 400001(0000 H) to 400002(0001
H) of the Slave from the Master.
Query(Master)
MBAP Header
Function
(Comma
nd)
Starting Address
No. of Register
(Number of
register)
Byte Count
(Number of
data byte)
Data
Data
High
Low
High
Low
High
Low
High
Low
00 0d 00 00 00
0b 01H
10 H
00 H
00 H
00 H
02 H
04 H
00 H
0A H
00 H
0A H
Response(Slave)
MBAP Header
Function
(Command)
Starting Address
No. of Register(Number of register)
High
Low
High
Low
00 0d 00 00 00 06 01H 10 H
00 H
00 H
00 H
02 H
Except downloading the pre-designated min/max parameter accoriding to input specification or
default value from PC loader program, it is recommended to use signle register write (Single
Register Write) than multi register write (Multi Regiter Write) to connect external device such as
PLC, graphic panel, etc.
Summary of Contents for krn100 series
Page 1: ...Preface Copyright Reserved Autonics Co Ltd i USER MANUAL For COMMUNICATION ...
Page 2: ...ii Copyright Reserved Autonics Co Ltd ...
Page 10: ...Table of Contents x Copyright Reserved Autonics Co Ltd ...
Page 18: ...1 Modbus RTU protocol 18 Copyright Reserved Autonics Co Ltd ...
Page 82: ......