Page 13
IR104-V4 User Guide
Rev A
3 Configuration
I/O Map
There are four I/O maps:
•
Relay Output Control (ROC)
•
Digital Input Reading (DIR)
•
Input Change Flags (ICF), see page 14
•
Interrupts Control Register (ICR), see page 15
Relay Output Control (ROC)
The ROC bank energizes and de-energizes through the I/O writes. They are two grouped banks of eight and
one bank of four. When an I/O read is executed, the relay output register is accessed. This allows the relay
data to be read back. To energize a relay (close contact), write a logic “1” to the corresponding bit in the
register bank. To de-energize a relay (open contact), write a logic “0” to the corresponding bit in the register
bank.
Relay
SD7
SD6
SD5
SD4
SD3
SD2
SD1
SD0
ROC Bank 1
Relay 8
Relay 7
Relay 6
Relay 5
Relay 4
Relay 3
Relay 2
Relay 1
ROC Bank 2
Relay 16
Relay 15
Relay 14
Relay 13
Relay 12
Relay 11
Relay 10
Relay 9
ROC Bank 3
Not used
Not used
Not used
Not used
Relay 20
Relay 19
Relay 18
Relay 17
ROC I/O Map
Digital Input Reading (DIR)
The DIR bank is accessed through I/O reads and are grouped in two banks of eight and one bank of four. A
logic “0” read for an input indicates the corresponding physical input is “powered”. A logic “1” read on any input
indicates the corresponding physical input is “non-powered”.
ROC Grouping
Relay
Output
Address
ROC Bank 1
DO1 to DO8
I/O address = Base Address (0x00)
ROC Bank 2
DO9 to D16
I/O address = Base A 1 (0x01)
ROC Bank 3
DO17 to DO20
I/O address = Base A 2 (0x02)
Note
The I/O address is an
offset from the base
decoded address.
DIR Grouping
Bank
Input
Address
DIR Bank 1
DI1 to DI8
I/O address = Base A 4 (0×04)
DIR Bank 2
DI9 to DI16
I/O address = Base A 5 (0×05)
DIR Bank 3
DI17 to DI20
I/O address = Base A 6 (0×06)
Note
The I/O address is an
offset from the base
decoded address.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com