IR-310-RM,
IR Controlled 10-ch High Power Relay Module
(Ver. 1.1, Jul/02/2013) 32
5.3 FC15 (0x0F) Write Multiple Coils
For multiple relays control.
‧
Request
Byte order
Item
Size
Value
00
Address
1 Byte
1 ~ 247
01
Function code
1 Byte
0x0F
02 ~ 03
Starting channel
number
2 Bytes
0x0000 ~ 0x0009 for relay status.
04 ~ 05
Output channel
number
2 Bytes
0x0000 ~ 0x000A
06
Byte count
1 Bytes
1 or 2
07
Output value
1 Bytes
A bit corresponding to a channel.
Bit value 1 => ON; Bit value 0 => OFF.
‧
Response
Byte order
Item
Size
Value
00
Address
1 Byte
1 ~ 247
01
Function code
1 Byte
0x0F
02 ~ 03
Starting channel
number
2 Bytes
The same as byte 02~03 of the request.
04~05
Input channel
number
2 Bytes
The same as byte 04~05 of the request.
Example:
Command the RL1 and 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