Pdu Formats By Functions - Mitsubishi QJ71MT91 User Manual

Modbus/tcp interface module melsec-q series
Hide thumbs Also See for QJ71MT91:
Table of Contents

Advertisement

4 MODBUS
STANDARD FUNCTIONS
R

4.3 PDU Formats by Functions

[Request message format]
Setting range
[Response message format]
Value stored in response message
4 - 4
This section explains the PDU (protocol data unit) formats of the MODBUS
functions.
(1) Precautions for specifying device number in message
When specifying a device number in a message, specify "(device number) - 1".
However, it does not apply to the file number and device number specified for
Read/Write file record.
(Example) When the status of input 32 (100032) is read with Read discrete
inputs (FC: 02)
Function code
Function code
02
H
Specify 31 (001F
) for the head input number
H
to read the input 32 (100032) status.
The device number stored in the response message is "(actually read/written
device number) - 1".
(2) Overview of request/response message format given in this section
(a) Request/response message format diagram
The following indicates the overview of the request/response message
format diagram given in Section 4.3.1 to 4.3.12.
Area name
Frame contents
(b) Response message format
The format of a response message issued by the slave to the master differs
depending on whether the processing in the slave has been completed
normally or not.
In Section 4.3.1 to 4.3.12, the formats for normal completion and error
completion are provided.
Data
Head input number
001F
H
(H)
(L)
Function code
Function code
Head coil number
(01
)
(0000
H
H
(H)
1 byte
1 byte
(8 bits)
(8 bits)
Read points
0001
H
(H)
(L)
Data
Read points
to FFFF
)
(0001
H
(L)
(H)
When 2 bytes comprise 1 data, the high-
order byte (8 bits) are represented as
(H) and the low-order byte (8 bits) as (L).
MELSEC-Q
standard
R
to 07D0
)
H
H
(L)
4 - 4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents