Preset Multiple Registers (Writing Data In Multiple Holding Registers: 10H) - Mitsubishi Electric MELSERVO-JE MR-JE-C Instruction Manual

General-purpose ac servo ethernet interface / servo amplifier, modbus / tcp
Table of Contents

Advertisement

2. MODBUS/TCP PROTOCOL

2.3.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
Protocol
Length Field
Identifier
Identifier
16 bits
0000h
Message field
Transaction Identifier
(Transaction identifier)
Protocol Identifier
(Protocol identifier)
Length Field (Message length)
Unit Identifier (Unit identifier)
Function (Function field)
Starting Address (Start address)
(Note)
No. of Registers
(Number of registers to write)
Byte Count (Byte count)
Data (Writing data) (Note)
Response Message
Transaction
Protocol
Length Field
Identifier
Identifier
16 bits
0000h
Message field
Transaction Identifier
(Transaction identifier)
Protocol Identifier
(Protocol identifier)
Length Field (Message length)
Unit Identifier (Unit identifier)
Function (Function field)
Starting Address (Start address)
No. of Registers
(Number of registers 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 6.
Unit
Function
Identifier
16 bits
FFh
10h
Size
16 bits
Set any value.
16 bits
Set "0000h".
16 bits
Set the byte length from Unit Identifier to Data.
8 bits
Set "FFh".
8 bits
Set "10h".
16 bits
Set the start address of the holding registers to which data is written.
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.
16 bits
Set the size of the data to write.
16 bits × n
Set the data to write.
Unit
Function
Identifier
0006h
FFh
10h
Size
16 bits
Transaction Identifier received from the client (controller) is copied and returned.
16 bits
The value "0000h" is returned.
16 bits
The byte length from Unit Identifier to Data is returned.
8 bits
Unit Identifier received from the client (controller) is copied and returned.
8 bits
When the message was received without errors, "10h" is returned.
16 bits
The start address of the holding registers to which the data was written is
returned.
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.
Starting
No. of
Address
Registers
H
L
H
L
8
8
8
8
Bit
Bit
Bit
Bit
Description
Starting Address
H
L
H
8 bits
8 bits
8 bits
Description
2 - 8
Data
Byte
Count
H
L
to
8
8
8
to
Bit
Bit
Bit
No. of Points
L
8 bits
H
L
8
8
Bit
Bit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents