3. Modbus/TCP
3 - 8
3.6.4 Preset Multiple Registers (Writing data in multiple holding registers: 10h)
Data is written to consecutive holding registers for the specified number of data points starting from the
specified register address.
(1) Message frame
Query Message
Transaction
Identifier
Protocol
Identifier
Length Field
Unit
Identifier
Function
Starting
Address
No. of
Registers
Byte
Count
Data
H
L
H
L
H
L
to
H
L
16 bits
0000h
16 bits
FFh
10h
8
Bit
8
Bit
8
Bit
8
Bit
8
Bit
8
Bit
8
Bit
to
8
Bit
8
Bit
Message field
Size
Description
Transaction Identifier
16 bits
Set any value.
Protocol Identifier
16 bits
Set "0000h".
Length Field
16 bits
Set the byte length from Unit Identifier to Data.
Unit Identifier
8 bits
Set "FFh".
Function
8 bits
Set "10h".
Starting Address (Note)
16 bits
Set the start address of the holding registers to which data is written.
No. of Registers
16 bits
Set the number of points of data to write starting from the start address of the
holding registers to which data is written.
Set the number of write points described in the list of holding registers.
To write data in continuous registers, set a value obtained by adding the number
of write points of the target registers to this number.
Byte Count
16 bits
Set the size of the data to write.
Data (Note)
16 bits × n Set the data to write.
Note. Registers can be classified into two types: registers to which data can be continuously written and particular registers to which
data cannot be continuously written.
To write data in particular registers, write data in the target registers one by one.
For the details on whether the target registers can be continuously accessed or not, refer to chapter 7.
Response Message
Transaction
Identifier
Protocol
Identifier
Length Field
Unit
Identifier
Function
Starting Address
No. of Points
H
L
H
L
16 bits
0000h
0006h
FFh
10h
8 bits
8 bits
8 bits
8 bits
Message field
Size
Description
Transaction Identifier
16 bits
Transaction Identifier received from the client (controller) is copied and returned.
Protocol Identifier
16 bits
The value "0000h" is returned.
Length Field
16 bits
The byte length from Unit Identifier to Data is returned.
Unit Identifier
8 bits
Unit Identifier received from the client (controller) is copied and returned.
Function
8 bits
When the message was received without errors, "10h" is returned.
Starting Address
16 bits
The start address of the holding registers to which the data was written is
returned.
No. of Registers
16 bits
The number of points of written data starting from the start address of the holding
registers to which the data was written is returned.
Summary of Contents for MR-JE-C Series
Page 9: ...A 8 MEMO ...
Page 13: ...4 MEMO ...
Page 33: ...2 CC Link IE Field Network Basic SLMP 2 16 MEMO ...
Page 73: ...5 PARAMETERS 5 14 MEMO ...
Page 79: ...6 MANUFACTURER FUNCTIONS 6 6 MEMO ...
Page 143: ...MEMO ...