IR-310-RM,
IR Controlled 10-ch High Power Relay Module
(Ver. 1.1, Jul/02/2013) 31
5.2 FC05 (0x05) Write Single Coil
For single relay control.
‧
Request
Byte order
Item
Size
Value
00
Address
1 Byte
1 ~ 247
01
Function code
1 Byte
0x05
02 ~ 03
Output channel
number
2 Bytes
0x0000 ~ 0x0009 for single relay status
value.
04 ~ 05
Output value
2 Bytes
ON: 0xFF00
OFF: 0x0000
‧
Response
Byte order
Item
Size
Value
00
Address
1 Byte
1 ~ 247
01
Function code
1 Byte
0x05
02 ~ 03
Output channel
number
2 Bytes
The same as byte 02~03 of the request.
04~05
Output value
2 Bytes
The same as byte 04~05 of the request.
Example:
Command the RL8 change to ON.
Request (hex): 01 05 00 08 FF 00 0D F8 (
“
0D F8
”
is CRC16)
Response (hex): 01 05 00 08 FF 00 0D F8 (
“
0D F8
”
is CRC16)
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru