beautypg.com

Impulse 3098 User Manual

Page 15

background image

© Sealevel Systems, Inc.

- 13 -

REL-32 User Manual

Direct Hardware Control

In systems where the users program has direct access to the hardware (DOS) the
table below gives the mapping and functions that the REL-32 provides.

Function

Available

Port Address

Hex

Port

Type

R/W

1

Base + 0

Relay 1- Relay 8

R/W

2

Base + 1

Relay 9 - Relay 16

R/W

3

Base + 2

Relay 17 - Relay 24

R/W

4

Base + 3

Relay 25 - Relay 32

R/W = Read or Write


Reading the Outputs

The relay ports return the ones complement of the value that is currently being used
to drive the relays. When using the API the value is returned not the complement of
the value.


Writing the Outputs

The relays on a standard 3098 are normally open. To close a relay a one must be
written to the appropriate bit.


Register Description

Address Mode D7 D6 D5 D4 D3 D2 D1 D0
Base+0

R/W P1D7 P1D6 P1D5 P1D4 P1D3 P1D2 P1D1 P1D0

Base+1

R/W P2D7 P2D6 P2D5 P2D4 P2D3 P2D2 P2D1 P2D0

Base+2

R/W P3D7 P3D6 P3D5 P3D4 P3D3 P3D2 P3D1 P3D0

Base+3

R/W P4D7 P4D6 P4D5 P4D4 P4D3 P4D2 P4D1 P4D0