Copyright This documentation and the software included with this product are copyrighted 2001 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.
Contents 1. Introduction ........................................................... 1 1.1 1.2 1.3 1.4 1.5 Features ............................................................................ 1 Applications ...................................................................... 3 Installation Guide ............................................................. 3 Software ............................................................................ 5 Accessories ...............................................
C.1 C.2 C.3 C.4 Overview ......................................................................... 27 I/O Port Address Map ................................................... 28 Relay I/O Registers - BASE+0 and BASE+1 ............... 29 Isolated Digital Input Registers - BASE+2 and BASE+3 .......................................................................... 30 C.5 Board ID Register - BASE+4 ........................................ 30 C.6 Interrupt Status Register - BASE+6 and BASE+7 ...... 31 C.
Figures Figure 1-1: Installation Flow Chart ............................................................. 4 Figure 2-1: Figure 2-2: Figure 2-3: Figure 2-4: Figure 2-5: Figure 2-6: Figure 2-7: Figure 2-8: Figure 2-9: Figure 2-10: Figure 2-11: Figure 2-12: Figure 2-13: Card connector, jumper and switch locations .......................... 9 I/O connector pin assignments for the PCI-1762 .................. 11 The Setup Screen of Advantech Automation Software ...........
Tables Table 2-1: Table 2-2: Summary of jumper settings .................................................... 9 Summary of jumper settings for relay ................................... 10 Table C-1: Table C-2: Table C-3: Table C-4: Table C-5: Table C-6: Table C-7: PCI-1762 register format ...................................................... 28 Register for relay output status ............................................. 29 Register for relay output ......................................................
1 Chapter 1 Chapter 1. Introduction Thank you for buying the Advantech PCI-1762 DAS card. The Advantech PCI-1762 DAS card is a 16-ch relay actuator and 16-ch isolated digital input card for the PCI bus. Its sixteen on-board SPDT relays are ideal for applications such as device ON/OFF control or small power switched. For easy monitoring, each relay is equipped with one red LED to show its ON/OFF status.
Chapter 1 Robust Protection The PCI-1762 digital input channels feature a robust isolation protection for industrial, lab and machinery automation applications. It durably withstands voltage up to 2,500 VDC, preventing your host system from any incidental harms. If connected to an external input source with surge-protection, the PCI-1762 can offer up to a maximum of 2,000 VDC ESD (Electrostatic Discharge) protection.
Chapter 1 1.2 Applications • Industrial ON/OFF control • Switch status sensing • Digital I/O control • Industrial and lab automation • SMT/PCB machinery • Semi-conductor machinery • PC-based Industrial Machinery • Testing & Measurement • Laboratory & Education • External relay driving 1.
Chapter 1 Figure 1-1: Installation Flow Chart PCI-1762 User’s Manual –4– Advantech Co., Ltd. www.advantech.
Chapter 1 1.4 Software Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully exploit the functions of your PCI-1762 card: • • • • DLL driver (on the companion CD-ROM) LabVIEW driver Advantech ActiveDAQ Advantech GeniDAQ For more information on software, please refer to Chapter 4, Software Overview. Users who intend to program directly at the registers of the DAS card can have register-level programming as an option.
Chapter 1 PCI-1762 User’s Manual –6– Advantech Co., Ltd. www.advantech.
2 Chapter 2 Chapter 2. 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.1 Unpacking After receiving your PCI-1762 package, please inspect its contents first.
Chapter 2 Also pay extra caution to the following aspects to ensure proper installation: Avoid physical contact with materials that could hold static electricity such as plastic, vinyl and Styrofoam. Whenever you handle the card, grasp it only by its edges. DO NOT TOUCH the exposed metal pins of the connector or the electronic components. Note: ✎ Keep the antistatic bag for future use. You might need the original bag to store the card if you have to remove the card from PC or transport it elsewhere.
Chapter 2 2.2 Switch and Jumper Settings The PCI-1762 card has one function switch and two jumper settings. The following sections tell how to configure the card. You may want to refer to the figure below for help in identifying card components.
Chapter 2 Setting relay outputs to be NC/NO Sixteen relay outputs, K0 ~ K15, are single-pole single-throw (SPST), which can be jumper set as either nornally open (NO) or normally close (NC) (see Table 2.2). The default settings for K0 ~ K15 are normally open. For detailed information, please refer to Appendix C.
Chapter 2 2.
Chapter 2 2.4 Driver Installation We recommend you to install the driver before you install the PCI-1762 card into your system, since this will guarantee a smooth installation process. The 32-bit DLL driver Setup program for the PCI-1762 card is included on the companion CD-ROM that is shipped with your DAS card package. Please follow the steps below to install the driver software: Step 1: Insert the companion CD-ROM into your CD-ROM drive.
Chapter 2 Step 3: Select the DLL Drivers option. Step 4: Select the Windows 95/98, Windows NT or Windows 2000 option according to your operating system. Just follow the installation instruc-tions step by step to complete your DLL driver setup. Figure 2-4: Different options for Driver Setup For further information on driver-related issues, an online version of DLL Drivers Manual is available by accessing the following path: Start/Programs/Advantech Driver for 95 and 98 (or for NT/2000)/ Driver Manual 2.
Chapter 2 Step 1: Turn off your computer and unplug the power cord and cables. TURN OFF your computer before installing or removing any components on the computer. Step 2: Remove the cover of your computer. Step 3: Remove the slot cover on the back panel of your computer. Step 4: Touch the metal part on the surface of your computer to neutralize the static electricity that might be on your body. Step 5: Insert the PCI-1762 card into a PCI slot.
Chapter 2 Figure 2-5: The device name listed on the Device Manager Note: ✎ If your card is properly installed, you should see the device name of your card listed on the Device Manager tab. If you do see your device name listed on it but marked with an exclamation sign “!”, it means your card has not been correctly installed. In this case, remove the card device from the Device Manager by selecting its device name and press the Remove button. Then go through the driver installation process again.
Chapter 2 2.6 Device Setup & Configuration The Device Installation 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 32-bit DLL drivers. Setting Up the Device Step 1: To install the I/O device for your card, you must first run the Device Installation program (by accessing Start/Programs/ Advantech Driver for 95 and 98 (or for NT/2000)/Device Installa-tion).
Chapter 2 Figure 2-7: The I/O Device Installation dialog box Step 3: Scroll down the List of Devices box to find the device that you wish to install, then click the Add... button to evoke the Device(s) found dialog box such as one shown in Fig. 2-8. The Device(s) found dialog box lists all the installed devices on your system. Select the device you want to configure from the list box and press the OK button. After you have clicked OK, you will see a Device Setting dialog box such as the one in Fig. 2-9.
Chapter 2 Configuring the Device Step 4: On the Device Setting dialog box (Fig. 2-9), you can configure the ID0/ID8 Interrupt trigger mode either as Rising Edge or Falling Edge, and Enable of Disable the ID0/ID8.
Chapter 2 2.7 Device Testing Following through the Setup and Configuration procedures to the last step described in the previous section, you can now proceed to test the device by clicking the Test Button on the I/O Device Installation dialog box (Fig. 2-10). A Device Test dialog box will appear accordingly: Figure 2-11: Digital Input tab on the Device Test dialog box On the Device Test dialog box, users are free to test various functions of PCI-1762 on the Digital input and Digital output tabs.
Chapter 2 Testing Digital Input Function Click the Digital Input tab to show forth the Digital Input test panel as seen below. Through the color of the lamps, users can easily discern whether the status of each digital input channel is either high or low. Figure 2-12: Digital Input tab on the Device Test dialog box Testing Digital Output Function Click the Digital Output tab to bring up the Digital Output test panel such as the one seen on the next page.
3 Chapter 3 Chapter 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-1762 via the I/O connector. 3.
Chapter 3 3.3 Relay Output After power on, the initial relay output status of PCI-1762 is shown as below: Figure 3-2: Relay output connection A write operation to I/O address, BASE +0, will change the output status of each relay. For example, if Bit 0 of BASE +0 is set "1" (logic high), relay 0, K0, will switch from position "NORMALLY CLOSED", NC0, to position "NORMALLY OPEN", NO0. This means that LOAD2 will be de-energized, while LOAD1 is energized.
A Appendix A Appendix A. Specification Isolated Digital Input Number of Input Channel 16 Optical Isolation 2500 VDC Opto-isolator response time 25µs Over-voltage Protect 70 VDC Input Voltage VIH (max.) 50 VDC VIH (min.) 10 VDC VIL (max.) 3 VDC 10 VDC 1.6 mA (typical) 12 VDC 1.9 mA (typical) 24 VDC 4.1 mA (typical) 48 VDC 8.5 mA (typical) 50 VDC 8.9 mA (typical) VIL (max.
Appendix A General +5V @ 250 mA (typical) +5V @ 620 mA (max.) Power Consumption Temperature Relative Humidity Operation 0 ~ +60° C (32 ~ 140° F) (refer to IEC 68-2-1,2) Storage -20 ~ +70° C (-4 ~ 158° F) 5 - 95 % RH non-condensing(refer to IEC 68-2-3) Certification PCI-1762 User’s Manual CE Class A certified – 24 – Advantech Co., Ltd. www.advantech.
B Appendix B Appendix B. Block Diagram Address Bus Control Bus Control Logic Data Bus PCI BUS PLX PCI 9052 ID I0 ~ ID I1 5 ECOM 0 ~ ECOM 3 R 0_O U T ~ R15_O U T Iso latio n D-Sub 62 Pin Connector R 0_C O M ~ R 15_C O M ID I0 Interrupt Control Logic Advantech Co., Ltd. www.advantech.
Appendix B PCI-1762 User’s Manual – 26 – Advantech Co., Ltd. www.advantech.
C Appendix C Appendix C. Register Structure and Format C.1 Overview The PCI-1762 is delivered with an easy-to-use 32-bit DLL driver for user programming under the Windows 95/98/NT/2000 operating system. We advise users to program the PCI-1762 using the 32-bit DLL driver provided by Advantech to avoid the complexity of low-level programming by register. The most important consideration in programming the PCI-1762 at the register level is to understand the function of the card’s registers.
Appendix C C.2 I/O Port Address Map The PCI-1762 requires 32 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. For example, BASE+0 is the card’s base address and BASE+7 is the base address plus seven bytes. The table C-1 shows the function of each register of the PCI-1762 or driver and its address relative to the card’s base address.
Appendix C C.3 Relay I/O Registers - BASE+0 and BASE+1 The PCI-1762 offers 16-ch relay Actuators. These I/O channels use the input and output ports at addresses BASE+0 and BASE+1.
Appendix C C.4 Isolated Digital Input Registers - BASE+2 and BASE+3 The PCI-1762 offers 16-ch isolated digital input channels. These channels use the input ports at addresses BASE+2 and BASE+3. Table C-4: Register for isolated digital input Read Isolated Digital Input Bit # 7 6 5 4 3 2 1 0 BASE + 3 IDI15 IDI14 IDI13 IDI12 IDI11 IDI10 IDI9 IDI8 BASE + 2 IDI7 IDI6 IDI5 IDI4 IDI3 IDI2 IDI1 IDI0 C.5 Board ID Register - BASE+4 The PCI-1762 offers Board ID register BASE+4.
Appendix C C.6 Interrupt Status Register - BASE+6 and BASE+7 The Interrupt Status Register control the status of two interrupt signal sources (IDI0 and IDI8). Table C-6: Register for interrupt status Read Bit # Interrupt Status Register 7 6 5 4 3 2 1 0 BASE + 7 ID8RF ID8EN ID8F BASE + 6 IDORF IDOEN ID0F IDnF Interrupt flag bits (n = 0 or 8) This bit is a flag indicating the status of an interrupt.
Appendix C C.7 Interrupt Control Register - BASE+6 and BASE+7 The Interrupt Control Register control the status of two interrupt signal sources (IDI0 and IDI8). The user can clear the interrupt by writing its corresponding value to the Interrupt Control Register, as shown in below table. Table C-7: Register for interrupt control Interrupt Control Register Write Bit # 7 6 5 4 3 2 1 0 BASE + 7 ID8RF ID8EN ID8CLR BASE + 6 IDORF IDOEN ID0CLR IDnCLR Interrupt clear control bits (n = 0 or 8).
D Appendix D Appendix D. Flow Chart To write a command or confirm the command status, please follow the follow chart below. Interrupt Enable Start Initial Sethug: 1. Interrupt clear (IDOCLR or ID8CLR = “1”) 2. Interrupt enable (IDOEN or ID8EN = “1“) 3. Triggering edge control (Rising: IDORF or ID8RF = “O” Falling: IDORF or ID8RF = “1“) NO IDI0 or IDI8 has an INT signal, or not. YES Interrupt Service Routing: 1. Intenupt disable (IDOEN or ID8EN = “O”) 2.
Appendix D PCI-1762 User’s Manual – 34 – Advantech Co., Ltd. www.advantech.