beautypg.com

3 detailed relay control i/o map, Base address +0 – Measurement Computing CIO-RELAY08 User Manual

Page 10

background image

Table 4-2. Sample Coding to Turn ON Relays 0, 1, 3, 5, & 7

1

1

1

1

1

1

OP0

2

1

2

2

1

2

OP1

0

0

4

0

0

4

OP2

8

1

8

8

1

8

OP3

0

0

16

0

0

10

OP4

32

1

32

20

1

20

0P5

0

0

64

0

0

40

OP6

128

1

128

80

1

80

OP7

WEIGHT

ON=1

DECIMAL

WEIGHT

ON=1

HEX

RELAY

Totals

AB

171

4.2 PROGRAMMING NOTES

WRITE = CONTROL: Write a byte to the register to control the relays. A one in the
relay bit position turns the relay on.

READ = STATUS: Read the status of the relay control register. A one in the relay
bit position indicates the relay is on.

ON & OFF for FORM C RELAYS:

ON means that FORM C relay common terminal is in contact with the No rmally
Open contact.

OFF means that FORM C relay common terminal is in contact with the no rmally
closed contact.

4.3 DETAILED RELAY CONTROL I/O MAP

The following section provides a detailed description of the register map and relay

control registers.

Base Address +0

(applicable to all CIO-RELAY series boards).

RELAY OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0

BIT No. 7 6 5 4 3 2 1 0

HEX Value 80 40 20 10 8 4 2 1

DECIMAL 128 64 32 16 8 4 2 1

6

This manual is related to the following products: