0X05) Writing A Single Coil - ICP DAS USA ZT-2017 User Manual

Table of Contents

Advertisement

6.3.7

05 (0x05) Writing a Single Coil

Description
This function code is used to write the digital output value for the ZT-2000 I/O
module.
Request
Byte
Description
00
Address
01
Function Code
Starting Channel
02~03
Number
04~05 Output Value
Response
Byte
Description
00
Address
01
Function Code
Output Channel
02~03
Number
04~05 Output Value
Error Response
Byte
Description
00
Address
01
Function Code
02
Exception Code
ICP DAS, ZT-2017 and ZT-2017C AI Series User Manual, Version 1.0.1
Copyright © 2012 by ICP DAS Co., Ltd. All Rights Reserved.
Length Value
1
1 to 247
1
0x05
2
See Section 6.3.1 for details
A value of 0xFF00 sets the output to ON.
2
A value of 0x0000 sets the output to OFF.
Length Value
1
1 to 247
1
0x05
This value is the same as bytes 02 and 03 of
2
the Request
This value is the same as bytes 04 and 05 of
2
the Request
Length Value
1
1 to 247
1
0x85
1
Refer to the Modbus standard for more details
Page 113

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zt-2017c

Table of Contents