0X01) Read Coil Registers - ICP DAS USA tM-TH8 User Manual

Table of Contents

Advertisement

tM-TH8

3.1 01 (0x01) Read Coil Registers

This function code is used to read the digital output channel status
of a module.
Request
00
Address
01
Function code
02 ~ 03 Starting channel
04 ~ 05 Number of digital
output channels
Response
00
Address
01
Function code
02
Byte count
03
Data of digital
output channels
Error Response
00
Address
01
Function code
02
Exception code
tM-TH8 User Manual, Rev: A1.1 7MH-018-A11
1 Byte
1 to 247
1 Byte
0x01
2 Bytes 256 to 272
2 Bytes N, 1 to 16
1 Byte
1 to 247
1 Byte
0x01
1 Byte
1
1 Byte
A bit corresponds to a channel.
When the bit is 1 it denotes that
the channel is ON. If the bit is 0 it
denotes that the channel is OFF.
1 Byte
1 to 247
1 Byte
0x81
1 Byte
02: starting channel out of range
03: out of range, incorrect number
of bytes received
109

Advertisement

Table of Contents
loading

Table of Contents