Mitsubishi Electric 800 Series Instruction Manual page 63

Communication
Hide thumbs Also See for 800 Series:
Table of Contents

Advertisement

• Normal response (Response message)
a. Transaction
identifier
H
L
H
(8 bits)
(8 bits)
(8 bits)
• Query message setting
Message
a
Transaction identifier
b
Protocol identifier
c
Length field
d
Unit identifier
e
Function code
f
Sub-function
g
Data
• Content of normal response
With a normal response, the contents in the response are the same as those in (a) to (g) of the query message.
 Write multiple registers (writing data to multiple holding registers) (H10
or 16)
• Data can be written to multiple holding registers.
• Query message
a.
b. Protocol
Transaction
identifier
identifier
H
L
H
L
(8
(8
(8
(8
bits)
bits)
bits)
bits)
• Normal response (Response message)
a.
b. Protocol
Transaction
identifier
identifier
H
L
H
L
(8
(8
(8
(8
bits)
bits)
bits)
bits)
• Query message setting
Message
a
Transaction identifier
b
Protocol identifier
c
Length field
d
Unit identifier
e
Function code
f
Starting address
g
Quantity of registers
h
Byte count
i
Register value
• Content of normal response
With a normal response, the contents in the response are the same as those in (a) to (g) of the query message.
62
2. Ethernet Communication
2.7 MODBUS/TCP
b. Protocol
c. Length field
identifier
L
H
L
(8 bits)
(8 bits)
(8 bits)
The master adds the data for the purpose of transaction control.
The same data is returned in the response from the slave.
Fixed to 0. (When the slave receives data other than 0, it does not send the response message.)
"0" is returned in the response from the slave.
The data length from the unit identifier to the data is stored in byte.
Fixed to 255
Set H08.
Set H0000.
Any 2-byte long data can be set. The setting range is H0000 to HFFFF.
c. Length
d. Unit
field
identifier
H
L
(8
(8
(8 bits)
bits)
bits)
c. Length
d. Unit
field
identifier
H
L
(8
(8
(8 bits)
bits)
bits)
The master adds the data for the purpose of transaction control.
The same data is returned in the response from the slave.
Fixed to 0. (When the slave receives data other than 0, it does not send the response message.)
"0" is returned in the response from the slave.
The data length from the unit identifier to the data is stored in byte.
Fixed to 255
Set H10.
Set the holding register address from which to start writing the data.
Starting address = start register address (decimal) - 40001
For example, when starting address 0001 is set, data is written to holding register 40002.
Set the number of holding registers for writing data. Data can be written to up to 125 registers.
The setting range is H02 to HFA (2 to 250).
Set the value set in (g) multiplied by 2.
The amount of data specified by (g) is set. Write data is output Hi bytes first followed by Lo bytes,
and is arranged as follows: data of start address, data of start address+1, data of start address+2,
and so forth.
d. Unit
e. Function
identifier
code
H08
(8 bits)
(8 bits)
Description
e.
f. Starting
g. Quantity
Function
address
of registers
code
H
L
H
H10
(8
(8
(8
(8 bits)
bits)
bits)
bits)
e.
f. Starting
g. Quantity
Function
address
of registers
code
H
L
H
H10
(8
(8
(8
(8 bits)
bits)
bits)
bits)
Description
f. Sub-function
H00
H00
H
(8 bits)
(8 bits)
(8 bits)
h. Byte
i. Register Value
Count
L
H
L
(8
(8 bits)
(8
(8
bits)
bits)
bits)
L
(8
bits)
g. Data
L
(8 bits)
...
(n × 2 × 8
bits)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr-e800

Table of Contents