Write Multiple Coils (Command Code: 0X0F) - Mitsubishi FX3U Series User Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
Series Programmable Controllers
3U
User's Manual - MODBUS Serial Communication Edition
7.14

Write Multiple Coils (Command Code: 0x0F)

Writes values (ON/OFF) to multiple coils.
1) Request message format (Master → Slave)
Function code
Function
code
(0F
)
H
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.
*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).
2) Response message format (Slave → Master)
(When completed normally)
(When completed with an error)
*2. Exception and error codes are stored in special data registers and special auxiliary relays in the case
of error completion. Refer to Chapter 6 for storage location, confirmation methods, and other detailed
contents.
Head coil number
Write points
(0000
to FFFF
)
(0001
H
H
(H)
(L)
(H)
(Device data 1 to n )
b7
Device data 1
Device data n
Function code
Function
Head coil number
code
(The same head coil number
(0F
)
H
value as in the request
message is stored.)
(H)
Function code
Function
code
(8F
)
H
7.14 Write Multiple Coils (Command Code: 0x0F)
Data
*1
Number of
Device
*1
bytes n
to 07B0
)
H
H
(0001
to
H
00F6
)
H
(L)
b6
b5
b4
b3
b2
Data storage order
Data
Write points
(The same write points
value as in the request
message is stored.)
(L)
(H)
Data
Exception
2
code*
7 MODBUS Standard Commands
Device
. . .
data
data
n
1
(Number of bytes n)
b1
b0
0 : OFF
1 : ON
(L)
1
2
3
4
5
6
7
8
9
10
73

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents