3.5 05 (0x05) Write Single Coils
This function code is used to write the digital output value of the tM module.
Request
00
Address
1 Byte
1 ~ 247
01
Function code
1 Byte
0x05
02 ~ 03 Output channel
numbers
2 Bytes 0x0000 ~ 0x001F
0x0107 to clear the latch value
0x0200~0x0220 to clear the DI
counter value
04 ~ 05 Output value
2 Bytes A value of 0xFF00 sets the output to
ON. A value of 0x0000 sets it to
OFF. All other values are illegal and
will not affect the coil.
Response
00
Address
1 Byte
1 ~ 247
01
Function code
1 Byte
0x05
02 ~ 03 Output channel
numbers
2 Bytes The value is the same as byte 02 and
03 of the Request
04 ~ 05 Output value
2 Bytes The value is the same as byte 04 and
05 of the Request
Error Response
00
Address
1 Byte
1 ~ 247
01
Function code
1 Byte
0x85
02
Exception code
1 Byte
Refer to the Modbus standard for
more details.
tM Series DIO User Manual, Rev: A1.3 7PH-013-A13
110
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru
Содержание tM Series
Страница 8: ...tM Series DIO User Manual Rev A1 3 7PH 013 A13 8 7 495 109 02 08 sales bbrc ru www bbrc ru...
Страница 9: ...tM Series DIO User Manual Rev A1 3 7PH 013 A13 9 7 495 109 02 08 sales bbrc ru www bbrc ru...
Страница 10: ...tM Series DIO User Manual Rev A1 3 7PH 013 A13 10 7 495 109 02 08 sales bbrc ru www bbrc ru...
Страница 11: ...tM Series DIO User Manual Rev A1 3 7PH 013 A13 11 7 495 109 02 08 sales bbrc ru www bbrc ru...
Страница 12: ...tM P3POR3 tM Series DIO User Manual Rev A1 3 7PH 013 A13 12 7 495 109 02 08 sales bbrc ru www bbrc ru...
Страница 13: ...tM R5 tM Series DIO User Manual Rev A1 3 7PH 013 A13 13 7 495 109 02 08 sales bbrc ru www bbrc ru...
Страница 22: ...1 5 Dimensions tM Series DIO User Manual Rev A1 3 7PH 013 A13 22 7 495 109 02 08 sales bbrc ru www bbrc ru...