Sub-Fc 69 (0X45): Set Ir-Relay-States - ICP DAS USA IR-310-RM User Manual

Ir controlled 10-ch high power relay module
Table of Contents

Advertisement

ГК Атлант Инжиниринг – официальный представитель в РФ и СНГ
+7(495)109-02-08 sales@bbrc.ru www.bbrc.ru

5.4.20 Sub-FC 69 (0x45): Set IR-Relay-States

Set 10 relays' states corresponding to IR command numbers.
‧Request
Byte order
Description
00
Address
01
FC
02
Sub-FC
03
IR command
number
04
Relays status
byte0
05
Relays status
byte1
06~07
reserved
‧Response
Byte order
Description
00
Address
01
FC
02
Sub-FC
03
IR command
number
04
Setting result
Note:
1. For "Relay status byte0 and byte1", byte0 represents the state of RL0~RL7 and the
least two bits of byte 1 are the state of RL8 and RL9.
The binary representation of the byte1 and byte 0 is 0000 00## #### #### where the
least significant bit# (the rightest) is RL0 and the most significant bit# is RL9.
Bit# = 1 => Relay# is ON (at NO contact)
Bit# = 0 => Relay# is OFF (at NC contact)
IR-310-RM, IR Controlled 10-ch High Power Relay Module (Ver. 1.1, Jul/02/2013) 53
Size
Value
1 Byte
1 ~ 247
1 Byte
0x64
1 Byte
0x45
1 Byte
0 ~ 63 (0x00 ~ 0x3F)
1 Byte
0x00~0xFF. Bit 0 ~ bit 7 => RL0 ~ RL7
1 Byte
0x00~0x03. Bit 0 & bit 1 => RL8 & RL9
2 Bytes
0x00, 0x00
Size
Value
1 Byte
1 ~ 247
1 Byte
0x64
1 Byte
0x45
1 Byte
0 ~ 63 (0x00 ~ 0x3F)
1 Byte
0x00=>OK, 0xFF=>Error

Advertisement

Table of Contents
loading

Table of Contents