PCI-1737U/1739U 24/48 Channel Digital I/O Output Card User Manual
Copyright The documentation and the software included with this product are copyrighted 2007 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.
Product Warranty (2 years) Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years from the date of purchase. This warranty does not apply to any products which have been repaired or altered by persons other than repair personnel authorized by Advantech, or which have been subject to misuse, abuse, accident or improper installation.
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.
FCC Class B Note: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications.
Packing List Before setting up the system, check that the items listed below are included and in good condition. If any item does not accord with the table, please contact your dealer immediately. • PCI-1737U/PCI-1739U card • Companion CD-ROM (Device Drivers included) • This User Manual Safety Instructions 1. Read these safety instructions carefully. 2. Keep this User's Manual for later reference. 3. Disconnect this equipment from any AC outlet before cleaning. Use a damp cloth.
b. Liquid has penetrated into the equipment. c. The equipment has been exposed to moisture. d. The equipment does not work well, or you cannot get it to work according to the user's manual. e. The equipment has been dropped and damaged. f. The equipment has obvious signs of breakage. NOTE: 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.
PCI-1737U/PCI-1739U User Manual viii
Contents Chapter 1 General Information ...................................... 2 1.1 1.2 1.3 Features ............................................................................ 2 Applications ..................................................................... 3 Installation Guide .............................................................. 3 1.4 1.5 Software Overview............................................................ 5 Device Driver Programming Roadmap............................. 6 1.
4.1 4.2 Configuration ................................................................. 26 8255 Mode 0 Function Definitions ................................ 26 4.2.1 4.2.2 4.2.3 4.3 Interrupt Function of the DIO Signals ......................... 27 Input/Output Control .................................................... 27 Table 4.1:Bit map of port configuration register ......... 27 Initial Configuration .................................................... 28 Interrupt Handling ......................
CHAPTER 2 1 General Information Sections include: • Features • Applications • Installation Guide • Software Overview • Device Driver Programming Roadmap • Accessories
Chapter 1 General Information The PCI-1737U/PCI-1739U is a 24/48-bit DI/O card with PCI bus. It provides you with 24/48 bits of parallel digital input/output. It emulates mode 0 of the 8255 PPI chip, but the buffered circuits offer a higher driving capability than the 8255. The I/O bits are divided into three 8-bit I/O ports: A0, B0, and C0.( Six for PCI-1739U, A0, A1, B0, B1, C0, C1) You can configure each port as either input or output via software.
1.2 Applications • Industrial AC/DC I/O module monitoring and control • Relay and switch monitoring and control • Parallel data transfer • Sensing the signals of TTL, DTL, CMOS logic • Driving indicator LED's 1.
Figure 1.
1.4 Software Overview Advantech offers a rich set of DLL drivers, third-party driver support and application software to help fully exploit the functions of your PCI1737U/PCI-1739U card: • Device Drivers (on the companion CD-ROM) • LabVIEW driver • Advantech ActiveDAQ • Advantech ADAQView Programming choices for DA&C cards You may use Advantech application software such as Advantech Device Drivers.
1.5 Device Driver Programming Roadmap This section will provide a roadmap to demonstrate how to build an application from scratch using Advantech Device Drivers with your favorite development tools such as Visual C++, Visual Basic, Delphi, or C++ Builder. The step-by-step instructions on how to build your own applications using each development tool will be given in the Device Drivers Manual. Moreover, a rich set of example source code is also given for your reference. 1.5.
1.5.2 Programming with Device Drivers Function Library Advantech Device Drivers offer a rich function library that can be utilized in various application programs. This function library consists of numerous APIs that support many development tools, such as Visual C++, Visual Basic, Delphi and C++ Builder. 1.5.3 Troubleshooting Device Drivers Error Driver functions will return a status code when they are called to perform a certain task for the application.
PCLD-785B 16-channel Relay Output Boards The PCLD-785B carry 16/24 SPDT electromechanical relays with a 20pin flat cable connector and an additional 50-pin Opto-22 connector (for PCLD-785B only) compatible with the digital outputs of most I/O Cards. The number of output channels available on the PCLD-785B depends on the connector you use. The I/O card’s 50-pin connector accesses all 24 channels, while its 20-pin connector has access to 16 channels.
CHAPTER 2 2 Installation .
Chapter 2 Installation 2.1 Unpacking After receiving your PCI-1737U/PCI-1739U package, please inspect its contents first. The package should contain the following items: • PCI-1737U/PCI-1739U Card • Companion CD-ROM (Device Drivers included) • User Manual The PCI-1737U/PCI-1739U cards harbor certain electronic components vulnerable to electrostatic discharge (ESD). ESD can easily damage the integrated circuits and certain components if preventive measures are ignored.
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 anti-static bag for future use. You might need the original bag to store the card I you have to remove the card from a PC or transport it elsewhere. 2.2 Driver Installation We recommend you install the driver before you install the PCI-1737U/ PCI-1739U card into your system, since this will guarantee a smooth installation process.
Figure 2.1: Advantech Automation Software Setup 3. Select the Device Drivers option. 4. Select the specific device then just follow the installation instructions step by step to complete your device driver installation and setup. Figure 2.
2.3 Hardware Installation Note: Make sure you have installed the driver before you install the card (please refer to chapter 2.2 Driver Installation) After the Device Drivers installation is completed you can install the PCI1737U/PCI-1739U card into any PCI slot on your computer. A complete device installation procedure should include device setup, configuration and testing. The following sections will guide you through the Setup, Configuration and Testing of your device.
2.4 Device 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 configure the I/O device for your card, you must first run the setup program by accessing Start/Advantech Automation/Device Manager/ Advantech Device Manager . 2.
Figure 2.4: The Device Setting Dialog Box After your card is properly installed and configured, you can click the ‘Test’ button to test your hardware by using the testing utility. Figure 2.5: Digital Input Test Utility For more detailed information, please refer to Chapter 2 of the Device Drivers Manual. You can also find rich examples on the CD-ROM to speed up your programming.
PCI-1737U/PCI-1739U User Manual 16
CHAPTER 3 2 Signal Connections .
Chapter 3 Signal Connections 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 PCI1737U/PCI-1739U via the I/O connector. Figure 3.
Figure 3.2: PCI-1739U Board Layout CN1: IDC 50-pin header for digital input/output port A, B, and C CN2: IDC 50-pin header for digital input/output port A, B, and C SW1: Port status setting (input/output) for PA0, PB0, PC0H and PC0L SW2: Port status setting (input/output) for PA1, PB1, PC1H and PC1L SW3: Port output status setting (low/high) for PA0, PB0, PC0H and PC0L SW4: Port output status setting (low/high) for PA1, PB1, PC1H and PC1L SW5: BoardID switch (0~15) 3.
3.1.1 Port Status Setting (SW1 for PCI-1737U, SW1/SW2 for PCI-1739U) Users can set the onboard I/O ports as input or output separately. Please be aware that once dials the switch to “ON” (Set port as output); the software setting will be ignored. Table 3.1: Port Status Setting ON Set port as output OFF Set port I/O by software 3.1.2 Output Status Setting Users can determine the output status of each port after the system powering up or resetting.
3.1.3 BoardID Setting (SW3 for PCI-1737U, SW5 for PCI-17339U) Table 3.3: BoardID Setting Board ID ID3 ID2 ID1 ID0 0 ON ON ON ON 1 ON ON ON OFF 2 ON ON OFF ON 3 ON ON OFF OFF 4 ON OFF ON ON 5 ON OFF ON OFF 6 ON OFF OFF ON 7 ON OFF OFF OFF 8 OFF ON ON ON 9 OFF ON ON OFF 10 OFF ON OFF ON 11 OFF ON OFF OFF 12 OFF OFF ON ON 13 OFF OFF ON OFF 14 OFF OFF OFF ON 15 OFF OFF OFF OFF *Default setting =0 3.2 Signal Connections 3.2.
Figure 3.
Figure 3.4: Connector 2 & 3 (Optional) 3.2.2 I/O Connector Signal Description For PCI-1737U Table 3.4: I/O Connection signal Description Signal Ref. Direction Description PA <0~7> GND Input/Output Digital input/ output port A, channel 0~7. PB <0~7> GND Input/Output Digital input/ output port B, channel 0~7. PC <0~7> GND Input/Output Digital input/ output port C, channel 0~7. +5V GND Output +5V DC power +12V GND Output +12V DC power GND - - Digital ground.
3.2.3 Pin Assignment For PCI-1739U PCI-1739U is equipped with 2 standard IDC 50-pin headers. The pin assignments are as follows. Figure 3.5: PCI-1739U Pin Assignments 3.2.4 I/O Connector Signal Description For PCI-1737U Table 3.5: I/O Connection signal Description Signal Ref. Direction Description PA <0~7, 10~17> GND Input/Output Digital input/ output port A, channel 0~7 & channel 10~17. PB <0~7, 10~17> GND Input/Output Digital input/ output port B, channel 0~7 & channel 10~17.
CHAPTER 4 2 Operation Sections include: • Configuration • 8255 Mode 0 Function Definitions • Interrupt Handling
Chapter 4 Operation This chapter describes the operating characteristics of the PCI-1737U/ PCI-1739U. The DLL driver allows a user to access all of the card's functions without register level programming. Please see the User's Manual for the driver bundled with this card for more information. For users who prefer to implement their own bit-level programming to drive the card's functions, information useful for making such a program is included in this chapter. 4.
4.2.1 Interrupt Function of the DIO Signals The I/O pin (PC00) can be used to generate hardware interrupt. A user can program the interrupt control register (Base + 8) to select the interrupt sources. Refer to "Interrupt Function" in this chapter for details about interrupt control. 4.2.2 Input/Output Control A control word can be written to a port's configuration register (Base + 3) to set the port as an input or an output port, unless the ports are set as output ports via switches (refer to Section 3.
4.2.3 Initial Configuration The initial configuration of each port depends on the switch setting (SW1/SW2 for PCI-1737U and SW1/SW2/SW3/SW4 for PCI-1739U) If SW1 is set to “OFF” , all ports configured by software are automatically set as input ports during system start up or reset, with a default signal level of logic 1 (high). All ports are set as output ports during system start up or reset when SW1 is set to “ON”, signal level depends on SW2.
M00 and M01: mode bits of port0 E0: triggering edge control bits F0: interrupt flag bit 4.3.3 Interrupt Source Control The "mode bits" in the interrupt control register determine the allowable sources of signals generating an interrupt. Bit 0 and bit 1 determine the interrupt source for port. Table 3-3 shows the relationship between an interrupt source and the values in the mode bits. Table 4.
4.3.5 Interrupt Flag Bit The "interrupt flag" bit is a flag indicating the status of an interrupt. It is a readable and writable bit. Read the bit value to find the status of the interrupt, write "1" to this bit to clear the interrupt. This bit must be cleared in the ISR to service the next incoming interrupt. Table 4.
APPENDIX A 2 Specifications
Appendix A Specifications A.1 PCI-1737U Bus interface PCI bus spec. 2.2 compliant and support both 3.3V and 5V signaling (PCI universal card) Digital Input/Output I/O lines: 24 Programming mode: 8255 PPI mode 0 Digital Output Logic level 0: 0.4Vmax.@24mA(sink) Logic level 1: 2.4 V min.@15mA(source) Digital Input Logic level 0: 0.4Vmax. Logic level 1: 2.4 V min.
A.2 PCI-1739U Bus interface PCI bus spec. 2.2 compliant and support both 3.3V and 5V signaling (PCI universal card) Digital Input/Output I/O lines: 48 Programming mode: 8255 PPI mode 0 Digital Output Logic level 0: 0.4Vmax.@24mA(sink) Logic level 1: 2.4 V min.@15mA(source) Digital Input Logic level 0: 0.4Vmax. Logic level 1: 2.4 V min. Interrupt: PC0 of each port can generate interrupt Interrupt Triggering: Rising or falling edge triggering General Board dimension ( L x H) : 175 x 100 mm (6.9" x 3.
PCI-1737U/PCI-1739U User Manual 34
B APPENDIX 2 Function Block
Appendix B Function Block Figure B.1: PCI-1737U Figure B.