background image

12

DIGITAL I/O CARD–16

2.3.4 S

OFTWARE

The Digital I/O Card–16 ships with an I/O suite of Windows

®

98/Me/XP,

Windows NT

®

, and Windows 2000 drivers. These drivers provide you with a

consistent and straightforward application program interface (API), allowing the
developer to concentrate on the details of the application as opposed to low-level
driver development. Popular development environments, including Visual C++,
Visual Basic, and Delphi, are supported for application development. I/O includes
a utility for configuring the driver parameters under Windows, further simplifying
installation.

For DOS, QNX, Linux

®

and other operating systems, please refer to the software

included with your card.

Programming Examples

All examples assume a base address of 300 Hex.

To read inputs at port A :

MOV DX,300H

;Set DX to Port A

IN AL,DX

;Get Input Port Data

NOT AL

;data read is negative

logic

Programming example to set Relay #3 on, write a “1” in bit position D3, to port

address Base+3, or 303 Hex.

MOV DX, 303H

;Set DX to Port D

MOV AL, 00001000B 

;Set bit 3 to a ‘1’

OUT DX, AL

Another method that takes into account the read-back capability of the output

ports C and D:

MOV DX,303H

;Set DX To Port D

IN AL,DX

;Get old port setting

NOT AL

:Invert bits- see note below

OR AL,00001000B

;OR in bit 3

OUT DX,AL

;Set Bit 3

NOTE

Reading back the ports (C and D) results in the binary complement of
the output.

Содержание IC906C

Страница 1: ...midnight Friday 877 877 BBOX FREE technical support 24 hours a day 7 days a week Call 724 746 5500 or fax 724 746 0746 Mail order Black Box Corporation 1000 Park Drive Lawrence PA 15055 1018 Web site...

Страница 2: ...is operated in a commercial environment Operation of this equipment in a residential area is likely to cause interference in which case the user at his own expense will be required to take whatever m...

Страница 3: ...equipment EN50082 1 Electromagnetic compatibility Generic immunity standard Part 1 Residential commercial and light industry EN60950 IEC950 Safety of information technology equipment including electri...

Страница 4: ...ato el ctrico debe ser montado a la pared o al techo s lo como sea recomendado por el fabricante 8 Servicio El usuario no debe intentar dar servicio al equipo el ctrico m s all a lo descrito en las in...

Страница 5: ...stir una antena externa deber ser localizada lejos de las lineas de energia 16 El cable de corriente deber ser desconectado del cuando el equipo no sea usado por un largo periodo de tiempo 17 Cuidado...

Страница 6: ...stered trademark of Linus Torvalds Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries Any other trademarks menti...

Страница 7: ...ew 8 2 2 What s Included 8 2 3 Technical Description 8 2 3 1 Features 9 2 3 2 Input Ports 9 2 3 3 Output Ports Reed Relay 11 2 3 4 Software 12 3 Card Setup 13 4 Installation 14 Appendix A Troubleshoot...

Страница 8: ...d 200 million closures Maximum load 100 million closures Relay Contact Speed Operate 0 5 mS Release 0 5 mS Bounce 0 5 mS Relay Maximum Operating Speed 600 Hz MTBF Greater than 150 000 hours excluding...

Страница 9: ...any of these items are missing or damaged contact Black Box at 724 746 5500 Digital I O Card 16 Systems software on a CD ROM This users manual 2 3 Technical Description The Digital I O Card 16 provide...

Страница 10: ...very other sensor and it s also isolated with respect to the host PC ground This means that signals such as low level AC line voltage motor servo voltage and control relay signals can be sensed or rea...

Страница 11: ...voltage diode drop turn on current x resistance Or 1 1 003 x R Maximum voltage square root of 0 25 resistor value Table 2 2 shows four common input resistors and the ranges associated with each Table...

Страница 12: ...for high current applications and can be destroyed by inductive load switching where a spark occurs across the contacts internally The relays are normally open and they close when energized Each rela...

Страница 13: ...ion For DOS QNX Linux and other operating systems please refer to the software included with your card Programming Examples All examples assume a base address of 300 Hex To read inputs at port A MOV D...

Страница 14: ...wer up Interrupt source is Base 0 bit D0 When selecting the Interrupt Mode always disable interrupts before changing or setting states This will help prevent inadvertent or unexpected interrupts from...

Страница 15: ...nstall the card 1 Turn off all PC power and disconnect the power cord 2 Remove the cover of the PC case 3 Locate two available slots and remove the blank metal slot covers 4 Gently insert the Digital...

Страница 16: ...lict with currently installed adapters No two adapters can occupy the same I O address and may not be allowed to share IRQs 4 Make sure the system s adapter is securely installed in a motherboard slot...

Страница 17: ...Digital I O Card 16 Package it carefully We recommend that you use the original container If you are shipping the Digital I O Card 16 for repair make sure you include everything that came in the orig...

Страница 18: ...3 C2 C1 C8 C7 C6 C5 C12 C11 C10 C9 C16 C15 C14 C13 C17 P3 P1 P2 K5 K1 C22 K13 K9 C18 K6 K2 C23 K14 K10 C19 K7 K3 C24 K15 K11 C20 K8 K4 C25 K16 K12 RP3 U1 U2 RP2 U4 U5 U3 RP4 RP1 C27 C26 C32 C35 C34 R1...

Страница 19: ...1000 Park Drive Lawrence PA 15055 1018 724 746 5500 Fax 724 746 0746 Copyright 2005 Black Box Corporation All rights reserved...

Отзывы: