ICP DAS USA PEX-D24 User Manual

ICP DAS USA PEX-D24 User Manual

Hide thumbs Also See for PEX-D24:

Advertisement

Quick Links

Warranty
All products manufactured by ICP DAS are warranted against defective
materials for a period of one year from the date of delivery to the original
purchaser.
Warning
ICP DAS assumes no liability for damages consequent to the use of this product.
ICP DAS reserves the right to change this manual at any time without notice.
The information furnished by ICP DAS is believed to be accurate and reliable.
However, no responsibility is assumed by ICP DAS for its use, nor for any
infringements of patents or other rights of third parties resulting from its use.
Copyright
Copyright © 2010 by ICP DAS. All rights are reserved.
Trademark
Names are used for identification only and may be registered trademarks of their
respective companies.
PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
PEX-D24/D56
PIO-D24/D56
PIO-D24U/D56U
User Manual
Version 3.1
Mar. 2015
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PEX-D24 and is the answer not in the manual?

Questions and answers

Summary of Contents for ICP DAS USA PEX-D24

  • Page 1 Copyright Copyright © 2010 by ICP DAS. All rights are reserved. Trademark Names are used for identification only and may be registered trademarks of their respective companies. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 2: Table Of Contents

    UCCESSFUL NSTALLATION DEMO PROGRAMS FOR WINDOWS ................38 APPENDIX ........................... 39 A. R DOS S ..................39 PPENDIX ELATED OFTWARE Where is the related software ................39 DOS LIB Functions ....................40 PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 3: Introduction

    In addition, the PIO-D56/D56U and PEX-D56 provides additional 16-bit digital inputs and 16-bit digital outputs. The PIO-D24U/D56U and PEX-D24/D56 has a Card ID switch with which users can recognize the board by the ID via software when using two or more PIO- D24U/56U and PEX-D24/D56 cards in one computer.
  • Page 4: Specifications

    (L x W x D) Power Consumption 420 mA @ +5 V 580 mA @ +5 V Operating Temperature 0 ~ 60 °C Storage Temperature -20 ~ 70 °C Humidity 5 ~ 85% RH, non-condensing PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 5: Pex-D24/D56

    (L x W x D) Power Consumption 420 mA @ +5 V 580 mA @ +5 V Operating Temperature 0 ~ 60 °C Storage Temperature -20 ~ 70 °C Humidity 5 ~ 85% RH, non-condensing PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 6: Features

    If any of these items is missing or damaged, contact the dealer from whom you purchased the product. Please save the shipping materials and carton in case you need to ship or store the product in the future. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 7: Hardware Configuration

    The board layout of the PIO-D24/D56 series cards are shown below: PIO-D56/D56U Only for PCI-D56/D56U PIO-D24/D24U Only for PIO-D24U/D56U Figure 2.1  The board layout of the PEX-D24/D56 cards are shown below: PEX-D56 Only for PEX-D56 PEX-D24 PCI Express Bus Figure 2.2 PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 8: I/O Port Location

    2.2 I/O Port Location The PIO-D24/D56 series and PEX-D24/D56 consists of one 24-bit bi-directional port, one 16-bit input port and one 16-bit output port (only for PIO-D56/D56U and PEX-D56). The 24-bit port supports three 8-bit groups, which are PA, PB and PC, respectively.
  • Page 9: Card Id Switch

    ID via software when using two or more PIO- D24U/ 56U and PEX-D24/D56 cards in one computer. The default Card ID is 0x0. For detail SW1 Card ID settings, please refer to Table 2.3.
  • Page 10: Pin Assignments

    2.4 Pin Assignments The Pin assignments for all PIO-D24/D56 series and PEX-D24/D56 connectors are listed in Tables 2.3, 2.4 and 2.5. All signal sources for each digital input or output pin (channel) are TTL compatible. CON2: 20-Pin of box header...
  • Page 11 P1B7 P2C7 P1B6 P2C6 P1B5 P2C5 P1B4 P2C4 P1B3 P2C3 P1B2 P2C2 P1B1 P2C1 P1B0 P2C0 P0A7 N.C. P0A6 P0A5 N.C. P0A4 P0A3 N.C. P0A2 P0A1 P0A0 XXXXXXX This pin not available PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 12 DI14 DI15 +12 V Table 2.6 20-Pin flat-cable headers of D/O for PIO-D56(U) and PEX-D56 PIO-D56(U) and PEX-D56: CON1 Connector Description Description Number Number DO10 DO11 DO12 DO13 DO14 DO15 +12 V PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 13: Enable I/O Operation

    D/I/O states and send their initial values to every D/O port. (Refer to Sec. 3.3.7 and 3.3.9 for details) For more information regarding the initialization procedure for digital I/O ports, please refer to the DEMO1.C demo program. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 14: D/I/O Port Architecture

    Programmable Digital I/O PEX-D24/D56 The programmable digital I/O control architecture for the PIO-D24/D56 series and PEX-D24/D56 is illustrated in Figure 2.2. The operation method of control signal is described below.  When the RESET\ signal is in the Low-state, if means that all D/I/O operations are disabled.
  • Page 15: D/I Port Architecture

    When the RESET\ signal is in the Low-state, if means that all D/I operations are disabled.  When RESET\ signal is in the High-state, if means all D/I operations are enabled. Figure2.3 D/I Port Architecture PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 16: D/O Port Architecture

    When RESET\ signal is in the High-state, if means all D/O operations are enabled. The power-on states are as follows:  All DO operations are disabled  All output latches are cleared to Low-Level Figure2.4 D/O Port Architecture PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 17: Interrupt Operation

    (CON3) can be used as an interrupt signal source. Refer to Sec. 2.1 for the P2C0/P2C1/P2C2/P2C3 location. The interrupt of the PIO-D24/D56 series and PEX-D24/D56 is level-triggered and is Active_High. The interrupt signal can be programmed as either inverted or non-inverted. The procedures for how to configure the interrupt signal source are given as follows: 1.
  • Page 18 This hold time is different for different OS versions and can be as short as micro-second or as a long as second. In general, 20 ms is enough for all types of OS. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 19: Daughter Boards

    The DN-37 is a general-purpose daughter board for the DB-37 using DIN-Rail Mounting. The DN-50 is designed for a 50-pin flat-cable header using DIN-Rail mounting. They are also designed for easy wiring. Figure 2.6 PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 20: Adp-20/Pci

    The ADP-20/PCI is an extender for the 20-pin header. The one side of the ADP- 20/PCI can be connected to a 20-pin header. The other side can be mounted onto the PC chassis as is depicted by the following: Figure 2.8 PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 21: Db-24P, Db-24Pd Isolated Input Board

    Figure 2.9. Table 2.6 is comparison of the DB-24P and DB-24PD. PIO-D24/D56 series PEX-D24/D56 PIO-D24/D56 series PEX-D24/D56 Figure 2.9 Table 2.7 DB-24P DB-24PD 50-pin flat-cable header D-sub 37-pin header Other specifications Same PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 22: Db-24R, Db-24Rd Relay Board

    24 × Photo MOS Relay (350 V, 01 A) DB-24SSR 24 × SSR (250 V , 4 A) DB-24C 24 × O.C. (30 V, 100 mA) DB-16P8R 16 × Relay (120 V, 0.5 A) + 8 × isolated input PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 23: Db-24Pr, Db-24Por, Db-24C

    2. A 20-Pin connector for 16-channel digital output is used for A-82X, A-62X, DIO-64, ISO-DA16/DA8, 3. Channels: 16 Form A Relay, 8 Form C Relay. 4. Relays: Switching of up to 5 A at 110 V /5 A at 30 V PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 24: Daughter Board Comparison Table

    There is no 50-pin flat cable header in the PIO-D24/D56 series and PEX- D56/D24. The PIO-D24/D56 series and PEX-D56/D24 has one DB-37 connector and two 20 pin flat-cable headers (only for PIO-D56(U)/PEX- D56). PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 25: I/O Control Register

    Rev 5.0 or above Vendor ID 0xE159 Vendor ID 0xE159 Device ID 0x0002 Device ID 0x0001 0x8080 Sub-vendor ID 0x80 Sub-vendor ID 0xC080 Sub-device ID 0x01 Sub-device ID 0x01 Sub-aux ID 0x40 Sub-aux ID 0x40 PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 26 Sub-vendor, Sub-device and Sub-Aux ID are given in Table 3-1. The PIO_PISO.exe utility is located on the CD as below and is useful for all PIO/PISO series cards. CD:\NAPDOS\PCI\Utility\Win32\PIO_PISO\ http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/utility/win32/pio_piso/ Figure 3.1 PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 27 If your board is a different version, it may also have different Sub IDs. However this will present no actual problem. No matter which version of the board you select, we offer the same function calls. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 28: The Assignment Of I/O Addresses

    The simplest way to identify which card is card_0 is to use the wSlotBus and wSlotDevice functions as follows: Step 1: Remove all PIO-D24/D56 or PEX-D24/D56 series cards from the PC. Step 2: Install a single PIO-D24/D56 or PEX-D24/D56 series card into the PCI_slot1 in the PC, then run PIO_PISO.EXE and record the...
  • Page 29 Step 2: Identify the specific PIO/PISO card by comparing the data of the wSlotBus and wSlotDevice from Step 1. Note that, normally, the card that is installed in slot 0 is card0 and the card installed in slot1 is card1 for PIO/PISO series cards. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 30: The I/O Address Map

    (only for PIO-D56(U) and PEX-D56) read CON2 high byte write CON1 high byte Wbase+0xd4 (only for PIO-D56(U) and PEX-D56) (only for PIO-D56(U) and PEX-D56) Note: Wbase+0xd0 and Wbase+0xd4 are only for PIO-D56(U) and PEX-D56 series. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 31: Reset\ Control Register

    Aux0 When the Aux is used as D/O operations, the output state is controlled by this register. This register is designed for use with future extensions. Therefore, do not use this register. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 32: Int Mask Control Register

    Bit 1 Bit 0 Port2 Port1 Port0 wCardID = inportb(wBase+0xcc) >>3; /* Read Card ID */ Note: The Card ID function is only supported by the PIO-D24U/D56U and PEX-D24/D56 (Ver1.0 or above) PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 33: I/O Selection Control Register

    *Select the inverted input of P2C0 /*Select the non-inverted input P2C1/2/3 */ outportb(wBase+0x2a,0x0c); /*Select the inverted input of P2C0/1 /*Select the non-inverted input P2C2/3 Refer to Sec. 2.5 and DEMO5.C for more information. PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 34: Read/Write 8-Bit Data Register

    Bit 1 Bit 0 The PIO-D24/D56 and PEX-D24/D56 series contains 5/3 8-bit I/O ports, and each I/O port can be configured as either a D/I or a D/O port. The user can send/receive digital data to/from this register for digital input or output. Note that all ports are set as D/I ports when the PC is first powered-on.
  • Page 35: Software Installation

    4. Software Installation The PIO-D24/D56 and PEX-D24/D56 series can be used in DOS and Windows 98/ME/NT/2K and 32-bit/64-bit Windows XP/2003/Vista/7. The recommended installation procedure for windows is given in Sec. 4.1 ~ 4.2. Or refer to Quick Start Guide (CD:\NAPDOS\PCI\PIO-DIO\Manual\QuickStart\).
  • Page 36: Pnp Driver Installation

    “PIO-DIO DLL Software Manual.pdf(CD:\NAPDOS\PCI\PIO-DIO\Manual\)”. http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/pio-dio/manual/ 4.2 PnP Driver Installation Power off the computer and install the PIO-D24/D56 and PEX-D24/D56 series cards. Turn on the computer and Windows 98/Me/2K and 32-bit/64-bit Windows XP/2003/Vista/7 should automatically defect the new PCI device(s) and then ask for the location of the driver files for the hardware.
  • Page 37: Confirm The Successful Installation

    4.3 Confirm the Successful Installation Make sure the PIO-D24/D56 or PEX-D24/D56 series cards installed are correct on the computer as follows: Step 1: Select “Start”  “Control Panel” and then double click the “System” icon on Windows. Step 2: Click the “Hardware” tab and then click the “Device Manager” button.
  • Page 38: Demo Programs For Windows

    PIODIO.cs  Visual C# Source files A list of available demo programs is as follows: DIO: Digital input and output DIO_2: Digital input and output (only for PIO-D56(U)/PEX-D56 ) INT: Interrupt test INTAPC: Interrupt test PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 39: Appendix

    DEMO1: D/O for CON1 DEMO2: D/I/O for CON1 ~ CON3 DEMO3: Interrupt of P2C0 (Initial low and active high) DEMO4: Interrupt of P2C0 (Initial high and active low) DEMO5: 4 interrupt sources PIO/PEX-D24/D56 Series User Manual (Ver.3.1, Mar. 2015, PMH-005-31)
  • Page 40: Dos Lib Functions

    The number of boards found in this PC WBoards [Output] SubVendor ID of the board wSubVendorID [Input] SubDevice ID of the board wSubDeviceID [Input] SubAux ID of the board wSubAuxID [Input]  Returns: Refer to "Table A.1". PIO/PEX-D24/D56 Series User Manual (Ver.3.0, Feb. 2011, PMH-005-30 )
  • Page 41  Description: This function is used to obtain the version number of PIODIO driver.  Syntax: WORD PIO_GetDriverVersion(WORD *wDriverVersion)  Parameters: wDriverVersion [Output] wDriverVersion address  Returns: Refer to "Table A.1". PIO/PEX-D24/D56 Series User Manual (Ver.3.0, Feb. 2011, PMH-005-30 )
  • Page 42 WORD ShowPIOPISO(wSubVendor, wSubDevice, wSubAux)  Parameters: wSubVendor [Input] SubVendor ID of the board wSubDevice [Input] SubDevice ID of the board SubAux ID of the board wSubAux [Input]  Returns: Refer to "Table A.1". PIO/PEX-D24/D56 Series User Manual (Ver.3.0, Feb. 2011, PMH-005-30 )

This manual is also suitable for:

Pex-d56Pio-d24Pio-d24uPio-d56uPio-d56

Table of Contents