0X0F) Write Multiple Coils - ICP DAS USA PIR-130-AC User Manual

Hide thumbs Also See for PIR-130-AC:
Table of Contents

Advertisement

3.8 15 (0x0F) Write Multiple Coils

This function code is used to write multiple values.
Request
Byte
Description
00
Address
01
Function Code
02 - 03
Starting Address
04 - 05
Number of
Addresses
Requested
06
Byte Count
07
The values to be
written
*N = Number of addresses requested
Response
Byte
Description
00
Address
01
Function Code
02 - 03
Starting Address
04 - 05
Value from the
Requested Address
Error Response
Byte
Description
00
Address
01
Function Code
02
Exception Code
PIR-130-AC/DC User Manual Ver. 1.4.0, 2020/07/28
Length
Value
(in Bytes)
1
1 to 247
1
0x0F
2
Refer to the Modbus Address Mapping
Table for details.
2
0x0001 to 0x0001 + *N
1
*N/8
1
A bit corresponds to a channel. If the bit is
1, it denotes that the channel that was set
is ON. If the bit is 0, it denotes that the
channel that was set is OFF.
Length
Value
(in Bytes)
1
1 to 247
1
0x0F
2
The value is the same as bytes 02 and 03
of the Request
2
The value is the same as bytes 04 and 05
of the Request
Length
Value
(in Bytes)
1
1 to 247
1
0x8F
1
Refer to the Modbus standard for more
details.
85/93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pir-130-dc

Table of Contents