Write Multiple Coils (Fc: 15) - Mitsubishi Electric QJ71MB91 User Manual

Modbus interface module
Table of Contents

Advertisement

4
MODBUS STANDARD FUNCTIONS

4.14 Write Multiple Coils (FC: 15)

Writes values (ON/OFF) to multiple coils.
(1) Request message format (Master
Function code
Function
Head coil number
code
(0000
(0F
)
H
(H)
Device data 1
Device data n
The values (ON/OFF) stored into the device data 1 to n are written to
the coils in order from low-order to high-order bits of the device data.
Write points*1
to FFFF
)
(0001
to 07B0
H
H
H
(L)
(H)
(Device data 1 to n )
b7
b6
Figure 4.82 Write multiple coils (Request message)
* 1 The number of the specified write points must be matched with the number of bits specified as the
number of bytes.
For example, when the write points are set to 16, set the number of bytes to 2 bytes (= 16 bits).
Slave)
Data
Number of
Device
)
bytes n*1
data
H
(0001
to
1
H
00F6
)
H
(L)
(Number of bytes n)
b5
b4
b3
b2
b1
Data storage order
4.14 Write Multiple Coils (FC: 15)
Device
. . .
data
n
b0
0 : OFF
1 : ON
4
1
2
3
4
5
6
7
8
- 50

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sw1d5c-qmbu-e

Table of Contents