![ICP DAS USA tM-TH8 User Manual Download Page 112](http://html1.mh-extra.com/html/icp-das-usa/tm-th8/tm-th8_user-manual_3864813112.webp)
tM-TH8 User Manual, Rev: A1.1 7MH-018-A11
112
tM-TH8
3.4 05 (0x05) Write Single Coil Register
This function code is used to write to one digital output channel.
Request
00
Address
1 Byte
1 to 247
01
Function code
1 Byte
0x05
02 ~ 03 Channel
2 Bytes 256 to 271
04 ~ 05 Data
2 Bytes FF00h for ON and 0000h for OFF.
Response
00
Address
1 Byte
1 to 247
01
Function code
1 Byte
0x04
02 ~ 03 Channel
2 Bytes
256 to 271
04 ~ 05 Data
2 Bytes FF00h for ON and 0000h for OFF.
Error Response
00
Address
1 Byte
1 to 247
01
Function code
1 Byte
0x85
02
Exception code
1 Byte
02: channel out of range