7-12
Chapter 7
About the Modbus TCP
7.2.10
Write multiple coils [0Fh]
This function code is used to force each coil in a
sequence of coils to either ON or OFF.
[Request]
The request specifies the coil references to be
forced.
(Example)
Configure 15 coils with coil number "0001h"
through "000Fh" especialy "0007h", "000Ah" and
"000Dh" (input terminal: 3, 6 and 9) to ON.
↑
If the returned output quantity is not a multiple of
eight, the remaining bits in the final data byte will
be padded with zeros (toward the high order end
of the byte).
Hi: high order
Lo: low order
*1) Even if the number of bytes that actually need
to be changed is odd, add 1 to the number of
bytes. As a result, "Byte Count" is configured to
the even number at all times.
*2) In the case of note *1), the added "Outputs
value" should be configured to 00h.
By convention, bits within a byte are shown with
the MSB to the left, and the LSB to the right.
Output value (Hi) = 01000000b = 40h
(coil number: 0008h through 0001h)
Output value (Lo) = 00010010b = 12h
(coil number: 000Fh through 0009h)
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Output value (Hi)
0008h
0007h
0006h
0005h
0004h
0003h
0002h
0001h
OFF(0)
ON(1)
OFF(0)
OFF(0)
OFF(0)
OFF(0)
OFF(0)
OFF(0)
Output value (Lo)
Remine
000Fh
000Eh
000Dh
000Ch
000Bh
000Ah
0009h
OFF(0)
OFF(0)
OFF(0)
ON(1)
OFF(0)
OFF(0)
ON(1)
OFF(0)
Address
Blocks
Items
Code
0
Modbus TCP
header part
Transaction ID (Hi)
15h
1
Transaction ID (Lo)
01h
2
Protocol ID (Hi)
00h
3
Protocol ID (Lo)
00h
4
Data size (Hi)
00h
In the case, 10 byte lengths
(address 6 through 15).
5
Data size (Lo)
09h
6
Unit ID
FFh
7
Modbus
data part
Function code
0Fh
8
Starting address (Hi)
00h
9
Starting address (Lo)
00h
10
Quanttity (Hi)
00h
11
Quanttity (Lo)
0Fh
12
Byte Count *1)
02h
13
Outputs value (Hi) *2)
40h
14
Outputs value (Lo) *2)
12h
Содержание SJ-P1 Series
Страница 9: ...C 3 Table of Contents Memo ...
Страница 17: ...1 8 Chapter 1 Safety Precautions Memo ...
Страница 21: ...2 4 Chapter 2 Overview Memo ...
Страница 25: ...3 4 Chapter 3 About the P1 EN Memo ...
Страница 29: ...4 4 Chapter 4 Enclosed Items Memo ...
Страница 45: ...6 8 Chapter 6 Inverter Settings Memo ...
Страница 65: ...7 20 Chapter 7 About the Modbus TCP Memo ...