IR-712A Universal IR Learning Remote Module (Ver. 1.3, Aug/23/2016) 36
5. Modbus Registers Addresses
Table 5-1 is the description of the Modbus/RTU holding registers (4xxxx) for IR-712A.
The Modbus master device can send Modbus commands to the IR-712A to emit the IR
commands from the output channels. A reference to Modbus FC16 commands is also
provided by the IR-712A Utility (section 3.2.5). The function codes (FC) to write data to
Modbus registers are 6 and 16. Each Modbus address occupies 2 bytes.
Table 5-1
Modbus Holding Registers for the IR-712A
Start Address [4xxxx] Description
1103 (0x44F) [41104]
The number of IR command : 1 ~ 224 (0X01 ~ 0XE0)
1104 (0x450)
[41105]
IR output channels
Settable value: 0x01 ~ 0x03
。
The first bit (LSB) of the
value represents the 1
st
channel. The 2
th
bit represents
the 2
th
channel.
Example :
‧
The 1
st
output channel: 0x01 == 0001 (binary)
‧
The 1
st
and 2
nd
output channels: 0x03 == 0011 (binary)
Table 5-2 is the example of Modbus FC16 command to emit IR signal from the IR-
712A. (Modbus ID: 1, the IR command No.: 1, output channel: 1 & 2)
Table 5-2
An example of Modbus FC16 Command for IR-712A (Hex value)
Net
ID
FC*
Start
Addr.
Word
Count
Byte
Count
IR Cmd
No.
Output
Ch.
CRC16
01
10
04 4F 00 02
04
00 01
00 03
94 DE
*
FC is the abbreviation of Function Code.
Table 5-3 is an example of using Modbus FC6 commands, where [41104] and [41105]
should be written sequentially. (Modbus ID: 1, IR cmd No.: 1, Output channel: 1 & 2)
Table 5-3
An example of Modbus FC6 Command for IR-712A (Hex value)
Net ID
FC
Start Addr. IR Cmd No.
CRC16
01
06
04 4F
00 01
78 ED
Net ID
FC
Start Addr. IR Cmd No.
CRC16
01
06
04 50
00 03
C8 EA