Software; Programming Examples - Black Box IC905C Quick Start Manual

Relay output card, pci
Hide thumbs Also See for IC905C:
Table of Contents

Advertisement

Port Bit
Port D Bit
Ground
+5 volts
+12 volts

2.4 Software

The Relay Output Card, PCI ships with an I/O suite of software drivers. Popular
development environments, including Visual C++, Visual Basic, and Delphi, are
supported for application development. The card includes a utility for configuring
the driver parameters under Windows, further simplifying installation.
For DOS, QNX, Linux
included with your card.

2.5 Programming Examples

Below are several simple examples using 80 x 86 assembly code for energizing and
checking the state of the reed relays on the card. Both examples assume a base
address of 300 hex.
Programming Example #1:
To set relay #3 on, write a "1" in bit-position D2, to port address base+3 or 303 hex.
MOV DX,303H
MOV AL,00001000B
OUT DX, AL
Table 2-1 (continued). Reed relay settings.
Relay-K#
0
K9
1
K10
2
K11
3
K12
4
K13
5
K14
6
K15
7
K16
®
, and other operating systems, please refer to the software
;Set DX to Port D
;Set DX to Port D
CHAPTER 2: Introduction
DB37 Male Connector and Pin No.
10, 28
11, 29
12, 30
13, 31
14, 32
15, 33
16, 34
17, 35
18, 36, 37
19
1
9

Advertisement

Table of Contents
loading

Table of Contents