0X05) Force A Single Coil (Write Do Value) - ICP DAS USA iNS-308 User Manual

8-port 10/100base-tx iot switch
Table of Contents

Advertisement

iNS-308 User Manual

7.2.5 05(0x05) Force a Single Coil (Write DO value)

This function code is used to set the status of a single coil or a single Digital Output value for the
iNS-308.
[Request]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02-03
DO Address
04-05
Output Value
[Response]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02
DO Address
03
Output Value
[Error Response]
Byte
Description
00
Net ID (Station Number)
01
Function Code
02
Exception Code
Copyright © 2022 ICP DAS CO., Ltd. All Rights Reserved.
Size
1 Byte
1 to 247
1 Byte
0x05
Byte 02 = high byte
2 Byte
Byte 03 = Low byte
0xFF 00 sets the output to ON
0x00 00 sets the output to OFF
2 Byte
Byte 04 = high byte
Byte 05 = Low byte
Size
1 Byte
1 to 247
1 Byte
0x05
The value is the same as Bytes 02-03 of the
2 Byte
Request
The value is the same as Bytes 04-05 of the
2 Byte
Request
Size
1 Byte
1 to 247
1 Byte
0x85
Refer to the Modbus Standard
1 Byte
Specifications for more details
Value
Value
Value
- 40 -

Advertisement

Table of Contents
loading

Table of Contents