Write File Record (Fc: 15H) (Sc: 06H) - Mitsubishi Electric MELSEC iQ-R Series Reference Manual

Modbus and modbus/tcp
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

3.15

Write File Record (FC: 15H) (SC: 06H)

Operation description
Writes a value to one extended file register area or values to multiple extended file register areas.
Request message format (from master to slave)
N shown below is the total of the device data (n1 + ... + nm).
Function code
Reference
Number of
number
bytes
m×7+N×2
15H
(06H)
Reference
number
(06H)
• File number specification: The upper limit of the file numbers that can be received by an Ethernet-equipped module is the file register size of the mounted
CPU module.
Specify the number of sub requests, m, and the total number of write points of each sub request, N (n1 + ... +
nm), so that the size of the protocol data unit of the request message does not exceed 253 bytes. The request
message will be discarded if the following condition is not met.
[Conditional formula] 253  2 + (m  7) + (N  2)
Response message format (from slave to master)
■ When completed successfully
The slave returns the request message received from the master as-is.
■ When completed with an error
Function code
Data
Exception code
95H
Data
File number
Write start device
specification
number
(0000H to FFFFH)
(0000H to 270FH)
(H)
(L)
(H)
(L)
File number
Write start device
specification
number
(0000H to FFFFH)
(0000H to 270FH)
(H)
(L)
(H)
Sub-request 1
Number of write points
Device data 1
n1
(0001H to 007AH)
(H)
(L)
(H)
(L)
Number of bytes m×7+N×2
Data
Sub-request m
Number of write points
Device data 1
nm
(0001H to 007AH)
(L)
(H)
(L)
(H)
Number of bytes m×7+N×2
3 MODBUS STANDARD FUNCTION DETAILS
3.15 Write File Record (FC: 15H) (SC: 06H)
Device data n1
(H)
(L)
Device data nm
(L)
(H)
(L)
3
47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents