User Manual PCI-1730/1733/1734 32-ch Isolated Digital I/O PCI Cards
Copyright The documentation and the software included with this product are copyrighted 2008 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable.
Declaration of Conformity CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. CE This product has passed the CE test for environmental specifications. Test conditions for passing included the equipment being operated within an industrial enclosure.
Warnings, Cautions and Notes Warning! Warnings indicate conditions, which if not observed, can cause personal injury! Caution! Cautions are included to help you avoid damaging hardware or losing data. e.g. There is a danger of a new battery exploding if it is incorrectly installed. Do not attempt to recharge, force open, or heat the battery. Replace the battery only with the same or equivalent type recommended by the manufacturer. Discard used batteries according to the manufacturer's instructions.
18. The equipment does not work well, or you cannot get it to work according to the user's manual. 19. The equipment has been dropped and damaged. 20. The equipment has obvious signs of breakage. 21. DO NOT LEAVE THIS EQUIPMENT IN AN ENVIRONMENT WHERE THE STORAGE TEMPERATURE MAY GO BELOW -20° C (-4° F) OR ABOVE 60° C (140° F). THIS COULD DAMAGE THE EQUIPMENT. THE EQUIPMENT SHOULD BE IN A CONTROLLED ENVIRONMENT. 22. CAUTION: DANGER OF EXPLOSION IF BATTERY IS INCORRECTLY REPLACED.
PCI-1730/1733/1734 User Manual vi
Contents Chapter Chapter 1 Overview...............................................1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 Introduction ............................................................................................... 2 Features .................................................................................................... 2 Applications............................................................................................... 4 Installation Guide ...........................................
B.1 B.2 B.3 PCI-1730................................................................................................. 34 PCI-1733................................................................................................. 35 PCI-1734................................................................................................. 36 Appendix C Register Structure & Format............ 37 C.1 C.2 C.3 C.4 C.5 C.6 C.7 C.8 Overview .........................................................................
Chapter 1 Overview 1
1.1 Introduction Thank you for buying the Advantech PCI-1730/1733/1734. The Advantech PCI-1730/ 1733/1734 is a 32-channel isolated digital input/output card for the PCI bus. For easy monitoring, each isolated digital input channel is equipped with one red LED, and each isolated digital output channel is equipped with one green LED to show its ON/OFF status. The PCI-1730 and PCI-1733’s isolated digital input channels are ideal for digital input in noisy environments or with floating potentials.
Fully Compatible with ISA-bus Products All the specifications, connectors, pin-assignments, registries format are the same. Users can upgrade their system to PCI bus without changing any existing wiring. For Existing Windows Application Programs: Users just need to remove the PCL-730/733/734 via the 'Device Manager', then install the PCI-1730/1733/1734 instead (the device number must be the same). After that, the user's original windows application program can work with PCI-1730/1733/ 1734 properly.
Board ID The PCI-1730/1733/1734 has a built-in DIP Switch that helps define each card’s ID when multiple PCI-1730/1733/1734 cards have been installed on the same PC chassis. The board ID setting function is very useful when users build their system with multiple PCI-1730/1733/1734 cards. With correct Board ID settings, you can easily identify and access each card during hardware configuration and software programming.
Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully exploit the functions of your PCI-1730/1733/1734 card: Programming choices for DA&C cards: You may use Advantech application software such as Advantech Device Drivers. On the other hand, advanced users are allowed another option for register-level programming, although not recommended due to its laborious and time-consuming nature.
For instructions on how to begin programming works in each development tool, Advantech offers a Tutorial Chapter in the Device Drivers Manual for your reference. Please refer to the corresponding sections in this chapter on the Device Drivers Manual to begin your programming efforts. You can also look at the example source codes provided for each programming tool, since they can help you get familiar quickly. The Device Drivers Manual can be found on the companion CD-ROM.
Advantech offers a complete set of accessory products to support the PCI-1730/ 1733/1734 card. These accessories include: Wiring Boards The ADAM-3937 is a 37-pin D-type wiring terminal module for DIN-rail mounting. This terminal module can be readily connected to the Advantech PC-Lab cards and allow easy yet reliable access to individual pin connections for the PCI-1730/1733/ 1734 card.
PCI-1730/1733/1734 User Manual 8
Chapter 2 2 Hardware Installation
2.1 Installation This chapter gives users a package item checklist, proper instructions about unpacking and step-by-step procedures for both driver and card installation. 2.2 Unpacking After receiving your PCI-1730/1733/1734 package, please inspect its contents first.
We recommend you to install the driver before you install the PCI-1730/1733/1734 card into your system, since this will guarantee a smooth installation process. The Advantech Device Driver Setup program for the PCI-1730/1733/ 1734 card is included on the companion CD-ROM that is shipped with your DA&C card package. Please follow the steps below to install the driver software: Insert the companion CD-ROM into your CD-ROM drive.
Figure 2.2 Different Options for Driver Installation For further information on driver-related issues, an online version of Device Drivers Manual is available by accessing the following path: Start/Programs/Advantech Device Drivers V1.5/ Device Drivers Manual 2.4 Hardware Installation Note! Make sure you have installed the driver first before you install the card (please refer to 2.
In case you installed the card without installing the Device Drivers first, Win95/98/ME will recognize your card as an “unknown device” after rebooting, and will prompt you to provide the necessary driver. Ignore the prompting messages (just click the Cancel button) and set up the driver according to the steps described in 2.2 Driver Installation. 1. Access the Device Manager through Control Panel/System/Device Manager. 2.
2.5 Device Setup & Configuration The Advantech Device Manager program is a utility that allows you to set up, configure and test your device, and later stores your settings on the system registry. These settings will be used when you call the APIs of Advantech Device Drivers. Setting Up the Device 1. To install the I/O device for your card, you must first run the Device Manager program (by accessing Start/Programs/ Advantech Device Drivers V1.5). 2.
5. After you have finished configuring the device, click OK and the device name will appear in the Installed Devices box as seen below: Figure 2.7 The List of Devices Box Note! As we have noted, the device name “000:” begins with a device number “000”, which is specifically assigned to each card. The device number is passed to the driver to specify which device you wish to control.
PCI-1730/1733/1734 User Manual 16
Chapter 3 3 Signal Connections
3.1 Overview Maintaining signal connections is one of the most important factors in ensuring that your application system is sending and receiving data correctly. A good signal connection can avoid unnecessary and costly damage to your PC and other hardware devices. This chapter provides useful information about how to connect input and output signals to the PCI-1730/1733/1734 via the I/O connector. 3.2 Switch and Jumper Settings PCI-1730 The PCI-1730 card has two function jumper settings. Figure 3.
Chapter 3 Table 3.2: Board ID setting (SW1) ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Signal Connections ID3 Note: On: 1, Off: 0 PCI-1733 Figure 3.
Table 3.3: Board ID setting (SW1) ID3 ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Note: On: 1, Off: 0 PCI-1734 The PCI-1734 card has one function jumper setting. Figure 3.
Chapter 3 Table 3.4: Board ID setting (SW1) ID2 ID1 ID0 Board ID 1 1 1 1 0 1 1 1 0 1 1 1 0 1 2 1 1 0 0 3 1 0 1 1 4 1 0 1 0 5 1 0 0 1 6 1 0 0 0 7 0 1 1 1 8 0 1 1 0 9 0 1 0 1 10 0 1 0 0 11 0 0 1 1 12 0 0 1 0 13 0 0 0 1 14 0 0 0 0 15 Signal Connections ID3 Note: On: 1, Off: 0 3.3 Signal Connections PCI-1730 (JP4, JP5: REV.
CN5 EGN 1 2 EGND CN6 Description of pin use: IDIn (n=0 ~ 15): Isolated digital input IDOn (n=0 ~ 15): Isolated digital output ECOM: External common Vcc/GND of IDI PCOM: Free wheeling common diode for EGND: External ground for IDO DIn (n=0 ~ 15): Digital input DOn (n=0 ~ 15): Digital output GND: Digital ground IDI 0 IDI 2 IDI 4 IDI 6 IDI 8 IDI 10 IDI 12 IDI 14 ECOM EGND IDO 0 IDO 2 IDO 4 IDO 6 IDO 8 IDO 10 IDO 12 IDO 14 PCOM 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 DO 1 DO 3 DO 5 DO 7 DO 9 DO 11 DO 13 DO 15 GND +12 V DI 0 DI 2 DI 4 DI 6 DI 8 DI 10 DI 12 DI 14 GND +5 V 1 3 5 7 9 11 13 15 17 19 2 4 6 8 10 12 14 16 18 20 DI 1 DI 3 DI 5 DI 7 DI 9 DI 11 DI 13 DI 15 GND +12 V CN5 EGN 1 2 EGND CN6 Description of pin use: IDIn (n=0 ~ 15): Isolated digital input IDOn (n=0 ~ 15): Isolated digital output ECOMn (n=0 ~ 1): External common Vcc/GND of IDI PCOMn (n=0 ~ 1): Free wheeling common diode for EGND: External grou
TTL-level Digital Input/Output The PCI-1730 has 16 TTL-level digital inputs and 16 TTL-level digital outputs. The following figure shows connections to exchange digital signals with other TTL devices: PCI-1730 TTL device DO DI GND Figure 3.4 TTL-level DI/O Connection If you want to receive an OPEN/SHORT signal from a switch or relay, add a pull-up resistor to ensure that the input is held at a high level when the contacts are open. See the figure below: +5V PCI-1730 4.7K DI Switch GND Figure 3.
External Internal Signal Connections IDI0 Wet contact ECOM Isolated Circuit IDI1 Dry Contact EGND Figure 3.6 Isolated DI Connection Isolated Digital Output Each of the 16 isolated DO channels come equipped with a darlington transistor. Every eight ouput channels share common emitters and integral suppression diodes for inductive load, activated by connecting PCOM to VDD.
PCI-1733 Pin Assignments CN1 Description of pin use: IDIn (n=0 ~ 31): Isolated digital input ECOM n (n=0 ~ 3): External common Vcc/GND of IDI EGND: External ground for IDI IDI 0 IDI 2 IDI 4 IDI 6 ECOM IDI 9 IDI 11 IDI 13 IDI 15 IDI 16 IDI 18 IDI 20 IDI 22 ECOM IDI25 IDI27 IDI29 IDI31 EGND 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 IDI 1 IDI 3 IDI 5 IDI 7 IDI 8 IDI 10 IDI 12 IDI 14 ECOM IDI17 IDI19 IDI21 IDI23 IDI24 IDI26 IDI28 IDI30 ECOM .
CN1 Description of pin use: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 IDO 1 IDO 3 IDO 5 IDO 7 IDO 8 IDO 10 IDO 12 IDO 14 PCOM IDO17 IDO19 IDO21 IDO23 IDO24 IDO26 IDO28 IDO30 PCOM .
Isolated Digital Output Each of the 32 isolated digital output channels comes equipped with a darlington transistor. Every eight ouput channels share common emitters and integral suppression diodes for inductive load, activated by connecting PCOM to VDD. (Channels 0 ~ 7 use PCOM0. Channels 8 ~ 15 use PCOM1. Channels 16 ~ 23 use PCOM2. If the external voltage source (5~40 V) is connected to each isolated output channel (IDO) and its isolated digital output turns on (200 mA max.
Appendix A Specifications A
A.1 Specifications A.1.1 PCI-1730 Isolated Digital Input Number of Channel 16 (bi-directional) Optical Isolation 2,500 VDC Opto-isolator response time 25μs Over-voltage Protect 70 VDC Input Voltage VIH (max.) 30 VDC VIH (min.) 5 VDC VIL (max.) 2 VDC 5 VDC 1.4 mA (typical) 12 VDC 3.9 mA (typical) 24 VDC 8.2 mA (typical) 30 VDC 10.
Isolated Digital Input Number of Channel 32 (bi-directional) Optical Isolation 2,500 VDC Opto-isolator response time 25μs Over-voltage Protect 70 VDC Input Voltage VIH (max.) 30 VDC VIH (min.) 5 VDC VIL (max.) 2 VDC 5 VDC 1.4 mA (typical) 12 VDC 3.9 mA (typical) 24 VDC 8.2 mA (typical) 30 VDC 10.3 mA (typical) Input Current General I/O Connector Type 37-pin D-Sub female Dimensions 175 mm x 100 mm (6.9" x 3.9") Power Consumption Typical +5 V @ 200 mA +12 V @ 50 mA Max.
A.1.3 PCI-1734 Isolated Digital Output Number of Channel 32 Optical Isolation 2,500 VDC Output Voltage Open collector 5 to 40 VDC Sink/Source Current 200 mA max./ch 150 mA max./ch for all channel using General I/O Connector Type 37-pin D-Sub female Dimensions 175 mm x 100 mm (6.9" x 3.9") Power Consumption Typical +5 V @ 150 mA +12 V @ 15 mA Max.
Appendix B Block Diagram B
B.
Address Bus Control Logic Control Bus Data Bus PCI BUS PLX PCI 9052 IDI0 ~ IDI7 IDI8 ~ IDI15 IDI16 ~IDI23 Isolation IDI24 ~ IDI31 D-Sub 37 Pin Connector ECOM0 ~ ECOM3 EGND Interrupt Control Logic 35 IDI0 ~ IDI1 IDI16 ~ IDI17 PCI-1730/1733/1734 User Manual Appendix B Block Diagram B.
B.
Appendix C C Register Structure & Format
C.1 Overview The most important consideration in programming the PCI-1730/1733/1734 at the register level is to understand the function of the card's registers. The information in the following sections is provided only for users who would like to do their own lowlevel programming. C.2 I/O Port Address Map The PCI-1730/1733/1734 requires 16 consecutive addresses in the PC's I/O space. The address of each register is specified as an offset from the card's base address.
Base Addr.
Table C-3 PCI-1734 Register Format Base Addr. 7 +HEX 0H 6 R N/A W Isolated Digital Output R N/A W Isolated Digital Output R N/A W Isolated Digital Output R N/A W Isolated Digital Output R Board ID Register IDO7 1H IDO6 IDO15 2H IDO23 3H IDO31 4H 5 W IDO14 IDO22 IDO30 IDO5 IDO13 IDO21 IDO29 4 3 2 1 0 IDO4 IDO3 IDO2 IDO1 IDO0 IDO12 IDO11 IDO10 IDO9 IDO8 IDO20 IDO19 IDO18 IDO17 IDO16 IDO28 IDO27 IDO26 IDO25 IDO24 BD3 BD2 BD1 BD0 N/A C.
BASE+0H/1H (/2H/3H) The PCI-1730 offers 16-ch isolated digital output channels. These channels use the registries at addresses BASE+0H/1H. Table C-3 Register for Isolated Digital Output Write Isolated Digital Output Bit # 7 6 5 4 3 2 1 0 BASE + 0H IDO7 IDO6 IDO5 IDO4 IDO3 IDO2 IDO1 IDO0 BASE + 1H IDO15 IDO14 IDO13 IDO12 IDO11 IDO10 IDO9 IDO8 The PCI-1734 offers 32-ch isolated digital output channels. These channels use the registries at addresses BASE+0H/1H/2H/3H.
C.6 Non-isolated Digital Output Register BASE+2H/3H The PCI-1730 offers 16-ch digital output channels. These channels use the input ports at addresses BASE+2H/3H. Table C-6 Register for Digital Output Write Digital Output Bit # 7 6 5 4 3 2 1 0 BASE + 2H DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 BASE + 3H DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 C.7 Board ID — BASE+4H The PCI-1730/1733/1734 offers Board ID register BASE+4H.
BASE+8H/CH/10H The PCI-1730 Interrupt Status Register control the status of four interrupt signal sources (IDI0, IDI1, DI0, DI1). Table C-8 Register for Interrupt Status Read Bit # Interrupt Status Register 7 6 5 4 3 2 1 0 BASE + 8H DI1EN DI0EN IDI1EN IDI0EN BASE + CH DI1RF DI0RF IDI1RF IDI0RF BASE + 10H DI1F DI0F IDI1F IDI0F IDI/DInF Interrupt flag bits (n = 0 ~ 1) This bit is a flag indicating the status of an interrupt.
IDInF Interrupt flag bits (n = 0, 1, 16, 17) This bit is a flag indicating the status of an interrupt. User can read this bit to get the status of the interrupt 0 No interrupt 1 Interrupt occurred IDInEN 0 1 Interrupt enable control bits (n = 0, 1, 16, 17) Read this bit to Enable/Disable the interrupt. Disable Enable IDInRF Interrupt triggering control bits (n = 0, 1, 16, 17) The interrupt can be triggered by a rising edge or falling edge of the interrupt signal, as determined by the value in this bit.
Table C-11 Register for Interrupt Control Write Bit # Interrupt Control Register 7 6 5 4 3 2 1 0 BASE + 8H IDI17EN IDI16EN IDI1EN IDI0EN BASE + CH IDI17RF IDI16RF IDI1RF BASE + 10H IDI17CLR IDI16CLR IDI0RF IDI1CLR IDI0CLR IDInCLR Interrupt clear control bits (n = 0, 1, 16, 17) This bit must first be cleared to service the next interrupt. 0 Don’t care 1 Clear the interrupt IDInEN 0 1 Interrupt enable control bits (n =0, 1, 16, 17) Read this bit to Enable/Disable the interrupt.
www.advantech.com Please verify specifications before quoting. This guide is intended for reference purposes only. All product specifications are subject to change without notice. No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permission of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd.