beautypg.com

5 connecting to relays, 4 programming – Omega Speaker Systems CIO-RELAY16 User Manual

Page 8

background image

5 CONNECTING TO RELAYS

5.1 I/O CONNECTOR DIAGRAMS

The CIO-RELAY08 and CIO-RELAY16 boards use a single 50 pin connector for sig-
nal interfacing. The CIO-RELAY24 and CIO-RELAY32 use two 50 pin connectors.
The pin-outs of the connector are shown here.

CIO-RELAY08 and CIO-RELAY16 Connector

PINS corresponding to relays 8 through 15 are not

connected on the RELAY08 version. The form A relays used

on the /M versions have NO and COM connections only!

WARNING!

High voltages will be present on the CIO-RELAY boards when you
have connected high voltage inputs or outputs to the CIO-RELAY
connector. Use extreme caution! Never handle the CIO-RELAY
when signals are connected to the board.! DO NOT REMOVE
THE PROTECTIVE PLATES FROM THE CIO-RELAY
.

9

G N D 5 0

1 5 N O 4 8
1 5 N C 4 6

1 4 C O M 4 4

1 3 N O 4 2
1 3 N C 4 0

1 2 C O M 3 8

11 N O 36

11 N C 3 4

1 0 C O M 3 2

9 N O 30

9 N C 2 8

8 C O M 2 6

7 N O 24

7 N C 2 2

6 C O M 2 0

5 N O 18

5 N C 1 6

4 C O M 1 4

3 N O 12

3 N C 1 0

2 C O M 8

1 N O 6

1 N C 4

0 C O M 2

4 9 + 5 V
4 7 1 5 C O M
4 5 1 4 N O
4 3 1 4 N C
4 1 1 3 C O M
3 9 1 2 N O
3 7 1 2 N C
3 5 11 C O M
3 3 1 0 N O
3 1 1 0 N C
2 9 9 C O M
2 7 8 N O
2 5 8 N C
2 3 7 C O M
2 1 6 N O
1 9 6 N C
1 7 5 C O M
1 5 4 N O
1 3 4 N C
11 3 C O M
9 2 N O
7 2 N C
5 1 C O M
3 0 N O
1 0 N C

4 PROGRAMMING

The CIO-RELAY boards are easy to program. Eight bit registers located at the base
address and the base address plus an offset are written to control relays or can be read
to determine the state of relays.

In addition to direct I/O programming, the boards are fully supported by the powerful
Universal Library program as well as most third party application programs.

4.1 DIRECT I/O REGISTER PROGRAMMING

The CIO-RELAY family uses between one and four I/O addresses. Each address con-
trols 8 relays and the relays are controlled by writing to these registers. The base
address maps of the CIO-RELAY boards are shown below.

BASE ADDRESS

Relay 0-7

Read/Write

BASE + 1

Relay 8-15

Read/Write (RELAY16, 24, 32)

BASE + 2

Relay 16-23

Read/Write (RELAY24, 32)

BASE + 3

Relay 24-31

Read/Write (RELAY32 only)

The registers are written to and read from as a single 8 bit byte. Each bit controls an
output (write) or represents the state of a relay (read).

All registers are read left to right. The leftmost bit being the most significant bit. Fol-
lowing this format bit 7 of BASE+0 corresponds to relay 7 and bit 0 to relay 0.

To construct a control word, use the following table:

80

128

7

40

64

6

20

32

5

10

16

4

8

8

3

4

4

2

2

2

1

1

1

0

HEX VALUE

DECIMAL VALUE

BIT POSITION

6

This manual is related to the following products: