0X05) Write Single Coil - ICP DAS USA PIR-130-AC User Manual

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

Advertisement

3.6 05 (0x05) Write Single Coil

This function code is used to write a value to address 0xxxx.
Request
Byte
Description
00
Address
01
Function Code
02 - 03
Starting Address
04 - 05
Value to be written
Response
Byte
Description
00
Address
01
Function Code
02 - 03
Requested 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
0x05
2
Refer to the Modbus Address Mapping
Table for details.
2
A value of 0xFF00 will set the output to
ON. A value of 0x0000 will set it to OFF. All
other values are invalid and will not affect
the coil.
Length
Value
(in Bytes)
1
1 to 247
1
0x05
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
0x85
1
Refer to the Modbus standard for more
details.
83/93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pir-130-dc

Table of Contents