0X0F) Write Multiple Coil Registers - ICP DAS USA tM-TH8 User Manual

Table of Contents

Advertisement

tM-TH8
3.5 15 (0x0F) Write Multiple Coil
Registers
This function code is used to write to multiple digital output
channels.
Request
00
Address
01
Function code
02 ~ 03 Starting channel
04 ~ 05 Number of
channels (N)
06
Byte count
07 ~
Data of digital
output channels
Response
00
Address
01
Function code
02 ~ 03 Starting channel
04 ~ 05 Number of
channels (N)
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
0x0F
2 Bytes 256 to 271
2 Bytes 1 to 16
1 Byte
1
1 Byte
A bit corresponds to a coil. When
the bit is 1 it denotes that the coil
is ON. If the bit is 0 it denotes that
the coil is OFF.
1 Byte
1 to 247
1 Byte
0x0F
2 Bytes 256 to 271
2 Bytes 1 to 16
1 Byte
1 to 247
1 Byte
0x8F
1 Byte
02: starting channel out of range
03: out of range, incorrect number
of bytes received
113

Advertisement

Table of Contents
loading

Table of Contents