Home

ICP DAS USA I-2532 Modem User Manual

image

Contents

1. Figure 1 3 PCI P16R16 Board Layout PCI P8R8 PI6R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 Transistor Seile 00 External Power LED indicator External Power protection Pico Fuse PCI P16C16 Figure 1 4 PCI P16C16 Board Layout DDD O O DD OOOO OO DO DT D OD DO O0 0 0 Da LED indicator PCI P16POR16 Figure 1 5 PCI P16POR16 Board Layout PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 10 1 4 3 Jumper Setting e For PCI P8R8 P16R16 P16C16 P16POR16 You can change the I O card configuration simply by setting the jumpers on this board Each digital input channel can be jumper configured as a single pole RC filter with a time constant of 1 2 ms The table listed below shows each digital inpu
2. Digital input printf Digital Output gt FFFFH Digital Input gt 04xH n winData P16R16_DO P16R16_BaseAddress 0x5555 Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress Digital input printf Digital Output gt 5555H Digital Input gt 04xH n winData P16R16_DO P16R16_BaseAddress OxAAAA Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress Digital input printf Digital Output gt AAAAH Digital Input gt 04xHin wInData PCI_DriverClose return 0 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 44 4 12 P8R8 DO Description Sends 8 bit data to PCI P8R8 s D O port Syntax Void P8R8_DO WORD BaseAddr WORD OutData Input Parameters BaseAdadr D O port base address OutData the 8 bit data sent to D O port Return Value void e Demo Program Please refer to page 46 4 13 P8R8_DI Oo Description Reads 8 bit data from PCI P8R8 s D I port o Syntax WORD P8R8_DI WORD wBaseAddr Oo Input Parameters wBaseAddr D O port base address o Return Value the 8 bit value reading from D I port PCI P8RS PI6R16 P16C16 PI6POR16 User s Manual Ver 2 2 2005 5 5 45 e Demo Program LEB EESRERRRRERRE ER EELS SELES KARERE ER ERRERERE DEERE This program is developed by Turbo C 2 0 PETRA REENERES EEE EERE ERAS SAE SE RERSEEREEER EERE Demo 2
3. P16R6 BC LARGE DEMO lt large mode demo programs P16R6 BC LARGE LIB lt large mode library P16R16L LIB Demo code Lib for MSC P16R6E MSC HUGE DEMO lt huge mode demo programs P16R6 MSC HUGE LIB P16R6 MSC LARGE DEMO P16R6 MSC LARGE LIB P16R16 TC HUGE DEMO P16R16 TC HUGEI LIB P16R16 TC LARGE DEMO P16R16 TC LARGE LIB lt huge mode library P16R16H LIB lt large mode demo programs lt large mode library P16R16L LIB Demo code Lib for TC lt huge mode demo programs lt huge mode library P16R16H LIB lt large mode demo programs lt large mode library P16R16L LIB Please see readme txt in sub directory of DEMO and LIB for further information 3 3 Software Installation for WINDOWS 95 98 NT 2000 XP The software installation for WINDOWS 95 98 NT 2000 XP is as follows Refer to readme txt of CD ROM PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 28 4 1 0 Control Register The First 16 double words of a PCI device s configuration space is referred to as the device s configuration region Within these the 16 0 15 double words the 04 05 06 07 08 and 09 double words are referred to as Base Address0 Base Address1 Base Address2 Base Address3 Base Address4 and Base Address5 For more detailed information for about these 16 double words please referring the book titled PLUG AND PLAY SYSTEM ARCHITECTURE written by Tom
4. One P8R8 card demo dl include P16R16 H int main int ij WORD nVal float fVal WORD wBoards wRetVal wVal WORD winData WORD wtTypelD WORD wAddress0O wAddress1 wAddress2 WORD wAddress3 wAddress4 wAddress5 WORD P16R16_BaseAddress P8R8_BaseAddress WORD wP16R16No wP8R8No clrscr initiaing PCI P16R16 card and detect how many P16R16 P8R8 card in PC wRetVal PCI_Driverlnit amp wBoards printf Threr are d P180X Cards in this PC n wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf There are no P16R16 P8R8 card in this PC n exit 0 dump every P16R16 P8R8 card s configuration address space for i 0 i lt wBoards i wRetVal PCI_GetConfigAddressSpace i awTypelD amp wAddress0 amp wAddress1 amp wAddress2 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 46 amp wAddress3 amp wAddress4 amp wAddress5 if wRetVal switch wTypelD case 0 printf gt 02d Board Name PCI P16R16 n i P16R16_BaseAddress wAddress2 wP16R16No break case 1 printf gt 02d Board Name PCI P8R8Wn i P8R8_BaseAddress wAddress2 wP8R8No break case 2 printf gt 02d Board Name PCI TMC12 n i break case 3 printf gt 02d Board Name PCI DA16 n i break case 4 printf gt 02d Board Name PCI DA amp 8 n i break printf gt Addr0 04x Addr1 04x Addr2 0x n wAddress0 wAddress1 wAddress2
5. Shanley Addison Wesley Publish Company 1995 These base addresses are utilized as control register and or I O register for many data acquisition boards On PCI P16R16 and PCI P8R8 boards the base address2 is utilized as the base address of digital in and digital out So the Digital I O functions for PCI P16R16 and PCI P8R8 are coded as follows define WORD unsigned int define UCHAR unsigned char void P16R16_DO WORD BaseAddr WORD wOutData outport BaseAddr wOutData WORD P16R16_DI WORD BaseAddr WORD Digitalln Digitalln inport BaseAddfr return Digitalln void P8R8_DO WORD BaseAddr WORD wOutData outportb BaseAddr wOutData UCHAR P8R8_DI WORD BaseAddr UCHAR Digitalln Digitalln inportb BaseAddfr return Digitalln PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 29 Please refer to the following program code to get these six base addresses for PCI P16R16 and PCI P8R8 These codes are based on PCI Plug amp Play mechanism 2 DEF RN EIN DOREEN RR Reading PCI card s configuration address space el E WORD GetAddress void DWORD dConfigAddress dBaseAddress WORD HiWord LoWord WORD ReturnCode UCHAR Bus Device Function WhichLong WORD VendorlD DevicelD WORD wlirqNumber wTotalBoards 0 initial board number is O Bus 0 for Bus 0 Bus lt 10 Bus Function 0 WhichLong 1 for Device 0 Device lt 32 Device WhichLong 0 WriteAddress B
6. of nA nB 4 5 PCI_GetDliVersion e Description Gets the version number of P16R16 DLL e Syntax WORD PCI_GetDllVersion Void e Input Parameters Void e Return Value 201 hex for version 2 01 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 36 4 6 PCI_Driverlnit e Description Initializes the device driver napwnt sys for Windows NT 2000XP nappci vxd for Windows 95 98 It is necessary to call on the function the first time you use this program e Syntax WORD PCI_Driverlinit WORD wT olalBoard e Input Parameters wTotalBoard address of wTotalBoard When wTotalBoard 1 either P16R16 or P8R8 in PC When wTotalBoard 2 possibility of combination gt e One P16R16 and one P8R8 in PC e Two P16R16 boards in PC e Two P8R8 boards in PC e Return Value NoError OK NotFoundBoard can t detect the existence of P16R16 P8R8 DriverCallError can t open the NAPPCI VXD in Windows 95 98 Can t open the NAPWNT SYS in Windows NT 2000 XP DriverHandleError return handle is wrong when open device driver PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 37 e Demo Program VC example LRESULT CALLBACK WndProc HWND hwnd UINT iMsg WPARAM wParam LPARAM IParam static char cBuf 80 HDC hdc TEXTMETRIC tm PAINTSTRUCT ps int i switch iMsg case WM_CREATE window initial JERFRRRRERERESRERNAERNNERNE ERA AER RRE RARER SEES RESSRERARERA ERE NOTICE call PCI_Driverlnit t
7. printf gt Addr3 04x Addr4 04x Addr5 0x n n wAddress3 wAddress4 wAddress5 Getting the Driver version wRetVal PCI_GetDriverVersion amp wVal printf Driver Version x n wVal call a function to test if exact calling LIB nVal PCI_ShortSub2 1 2 printf P180X_ShortSub2 1 2 d n nVal call another function to test if exact calling LIB fVal PCI_FloatSub2 1 0 2 0 printf P180X_FloatSub2 1 0 2 0 f n fVal PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 47 if wWP8R8No lt 1 putch 0x07 printf Please plug one PCI P8R8 in PC n exit 0 eb PCI P8R8 DO DO demo RRA printf The PCI P8R8 DO DI testing n P8R8_DO P8R8_BaseAddress 0x0000 Digital output delay 500 Delay a little time winData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt OOOOH Digital Input gt 04xHin wInData P8R8_DO P8R8_BaseAddress OxFFFF Digital output delay 500 Delay a little time winData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt FFFFH Digital Input gt 04xH n winData P8R8_DO P8R8_BaseAddress 0x5555 Digital output delay 500 Delay a little time winData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt 5555H Digital Input gt 04xHin wInData P8R8_DO P8R8_BaseAddress 0xAAAA Digital output d
8. 6POR16 The software package for this card consists of CD ROM Please choose the exact disk for setup according to your PC platform 3 1 Plug and Play of Windows 95 98 2000 XP Because Windows 95 98 2000 XP provides the Plug and Play two stages must be completed to setup the I O card After plugging the PCI P8R8 P16R16 P16C16 P16POR16 on the main board and turning on the power you will see these the following windows Please follow these steps to finish this driver installation Refer to Figures 1 to 15 Add New Hardware Wizard This wizard installs the software for a new hardware device Before continuing close any open programs To begin installing the software for your new device click Next i Cancel Figure 1 Click on the Next gt button to install driver PCI P8R8 PI6R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 20 Add New Hardware Wizard Windows will now search for any new Plug and Play devices on your system Your screen may go blank during this process This is normal To continue click Next lt Back Cancel Figure 2 Click on the Next gt button to search device Add New Hardware Wizard This wizard searches for new drivers for PCI System Peripheral A device driver is a software program that makes a hardware device work Cancel Figure 3 Click on the Next gt button to search drivers PCI P8R8 P16R16 P16C16 P16PORI6 Use
9. AC DC digital signed input e AC digital input with filter by jumper setting Input channel 8 16 16 16 Input type Optically isolated digital input Output channel 8 16 16 16 Output type Relay Output Relay output Transistor PhotoMos Open Relay collector Led indicators None None External Power Output Status status Table 1 1 Features of PCI P8R8 P16R16 P16C16 P16POR16 card 1 1 2 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 Applicatio Factory automation Laboratory automation Communication switching Security control Product test Energy management ns 1 2 Block Diagram PCI BUS P8R8 P16R16 eseas EsPROM gt PCI Controller Buffers amp Drivers PhotoMos I Protonen Photo cou ple ni E Buffers amp Filters Photo couple Figure 1 1 Functional Block diagram PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 5 1 3 Specifications Product PCIP16RA6 PCI P8R8 Channels ft Photo coupler PC 814 PC 814 Input Current per 120 mA max 24V 20 mA max 24V channel D 1K HZ e ae 1K HZ Input impedance _ Impedance 11 2 12K0 1 2 142KQ 4 With Filter 2 2mS With Filter 2 2mS ll a Channels Contact Rating AC 120V 0 5A AC 120V 0 5A DC 24V 1A 48V 0 15A OUTPUT Breakdown Voltage Operate Time Resistance Electrical 1 x 10 1 x 10 TEE Switching Power Po
10. P8R8 board then gets the content of Base Address0 Base Address1 Base Address2 Base Address3 Base Address4 and Base Address5 Syntax WORD PCI_GetConfigAddressSpace WORD wBoadNo WORD wTypelD WORD wAddress0 WORD wAddress1 WORD wAdd ress2 WORD wAddress3 WORD wAddress4 WORD wAddress5 Input Parameters wBoardNo The Board number for P16R16 P8R8 board wTypelD Address of wType 0 this board is PCI_P16R16 1 this board is PCI_P8R8 2 this board is PCI_TMC12 3 this board is PIO_DA16 4 this board is PIO_DA8 wAddress0 wAddress1 wAddress2 wAddress3 wAddress4 wAddress5 the six base address of a PCI device will be stored in these variables Return Value NoError OK FindBoardError can t detect the existence of P16R16 P8R8 ExceedBoardError can t open the NAPPCI VXD in Windows 95 98 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 40 4 10 4 11 P16R16 DO Description Sends 16 bit data to D O port of the P16R16 Syntax Void P16R16_DO WORD BaseAddr WORD OutData Input Parameters BaseAddr D O port base address OutData the 16 bit data sent to D O port Return Value void Demo Program Please refer to page 42 P16R16_DI Description Reads 16 bit data from P16R16 s D I port Syntax WORD P16R16_DI WORD BaseAddr Input Parameters BaseAddr D O port base address Return Value the 16 bit value read from D I port PCI P8R8 P16R16 P16C16 P16POR16 User s Manual Ve
11. PCI P8R8 P16R16 P16C16 P16POR16 User s Manual 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 O March 1998 1999 by ICP DAS All rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies License The user can use modify and backup this software ON A single machine the user may not reproduce transfer or distribute this software or any copy in whole or in part PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 1 1 Table of Contents INTRODUCTION ovio daa 3 1 1 FEATURES AND APPLICATIONS urueersensennsnnnnnnnennnnnnnennnennnnnnnennnennnennnnnnnennennennnnnnen nn 4 1 2 BLOCK DIAGRAMA A a eee 5 135 ESPECIFICATIONS do do ade cate ler o 6 1 4 HARDWARE CONFIGURATION cooocccoccccconccononnnonnccnnncnnnnnnnnnn nn nan rn rana rn n rra n nn rr nnn nn nancnnins 8 114 2 BOard LaydUti ita aaa 9 143 Jumpe
12. PCIP16R16 P16R16 Figure 8 Click OK after selecting the P16R16 inf driver This folder corresponds to on the CD ROM drive Note PCI P8R8 uses the driver P8R8 inf Install From Disk x Insert the manufacturer s installation disk into the driwe selected and then click OK i a Cancel Copy manufacturer s files from FAProjs PCIP1 BRI1B Wvin95 Inf P16R16 Browse Figure 9 Click OK Note PCI P8R8 uses the driver P8R8 inf PCI P8R8 PI6R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 24 Add New Hardware Wizard Selectthe manufacturer and model of your hardware device If you have a disk that contains the updated driver click Have Disk To install the updated driver click Finish ICPDAS PCI P16R16 P16C16 P16POR16 Card 9 16 1999 lt Back Figure 10 Click Next gt Add New Hardware Wizard Windows driver file search for the device ICPDAS PCI P16R16 P16C16 P16POR16 Card Windows is now ready to install the selected driver for this device Click Back to select a different driver or click Nextto continue Location of driver E FAPROJS PCILP1 1 P16C16 INF Cancel Figure 11 Click Next gt Note PCI P8R8 uses the driver P8R8 inf PCI P8R8 P16R16 P16C16 P16POR16 User s Manual Ver 2 2 2005 5 5 25 Add New Hardware Wizard y ICPDAS PC LP16R16 P16C16 P16POR16 Card Windows has finished inst
13. Space wT otalBoards 6 TYPE_P16R16 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 31 wTotalBoards increment board number wGetAddress 1 if VendorID 0x1234 88 DevicelD 0x0808 PCI P8R8 WhichLong 4 Base Address 0 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr0 WORD dBaseAddress amp Oxfffe wConfigSpace wT otalBoards 0 wBaseAddr0 WhichLong 5 Base Address 1 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAdadr1 WORD dBaseAddress amp Oxfffe wConfigSpace wT otalBoards 1 wBaseAddr1 WhichLong 6 Base Address 2 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr2 WORD dBaseAddress amp Oxfffe wConfigSpace wT otalBoards 2 wBaseAddr2 WhichLong 7 Base Address 3 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr3 WORD dBaseAddress amp 0xfffe wConfigSpace wT otalBoards 3 wBaseAddr3 WhichLong 8 Base Address 4 WriteAddress Bus Device Function WhichLong PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 32 dBaseAddress _inpd Oxcfc wBaseAddr4 WORD dBaseAddress amp Oxfffe wConfigSpace wT otalBoards 4 wBaseAddr4 WhichLong 9 Base Address 5 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr5 WORD dBaseAddress amp 0x
14. alling the software you selected that your new hardware device requires Figure 12 Click Finish EN Exploring Control Panel A E File Edit View Go Favorites Tools Help 38 288 ala x Back karward Up Cut Copy Paste Undo Delete Properties All Folders A Adds removes or changes settings f Es Internet Changes your Internet settings a Keyboard Changes settings for your keyboard Desktop g My Computer 3 Floppy amp 3 6 C a LiveUpdate Symantec LiveUpdate Manager 98ddk a Modems Installs a new modem and changes n Be D Mouse Changes settings for your mouse C600 8 Multimedia Changes settings for multimedia devic Ddk A Network Configures network hardware and so 9 09 Ev A Passwords Changes passwords and sets secunit 20 Gay Y Power Management Changes Power Management setting a hpfonts 421 Printers Adds removes and changes settings C hpli2100 4 i Ga Mopyfish Regional Settings Changes how numbers currencies c a ES E Sounde Changes system and program sound z Provides system information and chal My Documents gt y My Installations Configure Telephony Drivers and Dia C Nedtree Sets up and manages multiple users e C Pe2 aj 1 object s selected Provides system information and chanc 5 My Computer Lo Figur
15. ated Digital Input Output Type PCI P8R8 8 Channel 8 Channel Relay Output PCI P16R16 16 Channel 16 Channel Relay Output PCI P16C16 16 Channel 16 Channel Open Collector Output PCI P16POR16 16 Channel 16 Channel PhotoMos Relay Output e PCI P8R8 PCI P16R16 The PCI P16R16 and PCI P8R8 are relay actuator output isolation input interface cards for PCs and compatible computers The former provides 16 channels and the latter provides 8 channel input and output channels Both can be easily installed in a 5V PCI slot and can support truly Plug and Play They can be used in many applications e PCI P16C16 The PCI P16C16 provides 16 channel transistor outputs and 16 channel isolated digital input The transistor can outputs up to 30Vdc 600mA open collector The isolated digital input like the PCI P16R16 provides AC DC input and R C filter e PCI P16POR16 The PCI P16POR16 provides 16 channels PhotoMos Relay output and 16 channel isolated digital input The PhotoMos relay output can switch up to 350Vac 130mA max with designed LED indicated for output status The isolated digital input like the PCI P16R16 provides AC DC input and R C filter PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 3 11 Features and Applications 1 1 1 Features PCI P8R8 PCI P16R16 PCI P16C16 PCI P16POR16 Common e 5V PCI Bus add on card Features e Optically isolated digital input e
16. break case 2 printf gt 02d Board Name PCI TMC12 n i break case 3 printf gt 02d Board Name PCI DA16 n i break case 4 printf gt 02d Board Name PCI DA amp 8 n i break printf gt Addr0 04x Addr1 04x Addr2 0x n wAddress0 wAddress1 wAddress2 printf gt Addr3 04x Addr4 04x Addr5 0xinin wAddress3 wAddress4 wAddress5 Getting the Driver version wRetVal PCI_GetDriverVersion 8wVal printf Driver Version x n wVal call a function to test if exact calling LIB nVal PCI_ShortSub2 1 2 printf P180X_ShortSub2 1 2 din nVal call another function to test if exact calling LIB fVal PCI_FloatSub2 1 0 2 0 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 43 printf P180X_FloatSub2 1 0 2 0 fin fVal if wP16R16No lt 1 putch 0x07 printf Please plug one PCI P16R16 in PC n exit 0 PRE ARPES BASRA SERES RE AN PRARAEE ESE E EEE P PCI P16R16 DO DO demo HED SEAS IA AI IIIA III printf The PCI P16R16 DO DI testing n P16R16_DO P16R16_BaseAddress 0x0000 Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress Digital input printf Digital Output gt OOOOH Digital Input gt 04xH n winData P16R16_DO P16R16_BaseAddress OxFFFF Digital output delay 500 Delay a little time 500ms wInData P16R16_DI P16R16_BaseAddress
17. e 13 Double click the item System in the Control Panel folder PCI P8R8 PI6R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 26 System Properties 2 x General Device Manager Hardware Profiles Performance View devices by type View devices by connection Computer H Display adapters H Floppy disk controllers E gt Hard disk controllers ee Keyboard un Monitors Th Mouse BY Network adapters F Ports COM amp LPT m System devices Uniwersal serial bus controller Properties Refresh Remove Print HH cance Figure 14 Select the device PCI P16R16 or PCI P8R8 and click Properties ICPDAS PCI P16R16 P16C16 P16POR16 Card Properties Fa Ea Generel Driver Resources Y ICPDAS PCI P16R16 P16C16 P16POR16 Card Basic configuration 0000 Input Output Range 1000 107F A inputOutput Range 1080 1083 No conflicts cancel Figure 15 Please ensure that this device has no conflicts with other devices PCI P8R8 PI6R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 27 3 2 Software Installation for DOS Here s the DOS software installation Refer to the install bat in sub directory of P16R16 with CD ROM After installation the sub directory is as follows Demo code Lib for Borland C P16R16 BC HUGE DEMO lt huge mode demo programs P16R6 BC HUGE LIB lt huge mode library P16R16H LIB
18. elay 500 Delay a little time winData P8R8_DI P8R8_BaseAddress Digital input printf Digital Output gt AAAAH Digital Input gt 04xH n winData PCI_DriverClose return 0 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 48
19. fffe wConfigSpace wTotalBoards 5 wBaseAddr5 store the type name ID x wConfigSpace wTotalBoards 6 TYPE_P8R8 wTotalBoards increment board number wGetAddress 1 if wTotalBoards gt 16 return NotFoundBoard else return NoError void WriteAddress UCHAR bBus UCHAR bDevice UCHAR bFunction UCHAR bWhichLong DWORD dOutData WORD HiWord LoWord UCHAR HiByte LoByte HiWord 0x8000 bBus HiByte bDevice lt lt 3 bFunction LoByte bWhichLong lt lt 2 8 Oxfc LoWord WORD HiByte lt lt 8 LoByte dOutData DWORD HiWord lt lt 16 LoWord _outpd Oxcf8 dOutData PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 33 4 1 Function Call in P16R16 DLL A function in P16R16 DLL DLL for Windows 95 98 NT will be exactly the same prototype as P16R16H LIB huge mode library for DOS and P16R16L LIB large mode library for DOS It is convenient to develop applications under different platforms 4 2 P16R16 H define EXPORTS extern C _ declspec dllimport return code define NoError 0 define DriverHandleError 1 define DriverCallError 2 define NotFoundBoard 3 define FindBoardError 4 define ExceedBoardNumber 5 define Type Name ID define TYPE_P16R16 define TYPE_P8R8 define TYPE_TMC12 define TYPE_DA16 define TYPE_DA8 WN 0 EXPORTS float CALLBACK PCI_FloatSub2 float fA float fB EXPORTS short CALLBACK PCI_ShortS
20. following figures show how to use the relay Basic Circuitry Current Rating lt 0 3 A Relay Contact Power Supply Figure 2 1 Basic Relay Circuit PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 15 Heavy Loading Application gt 0 3A P16R16DI Power Relay ORelay O Contact Power Relay Heavy Loading Figure 2 3 Heavy load relay circuit 2 2 Open Collector Output e ForPCI P16C16 Only The PCI P16C16 provides 16 channel open collector outputs and 4 channels per common power Each common power has designed fuse protection and LED indicated status Wiring diagrams Ext Power_1 OUT_O OUT_1 30Vdc Max OUT 2 OUT 3 __ GND 1 PCI P16C16 Load current per channel 30Vdc 600mA max PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 16 2 3 PhotoMos Relay Output e For PCI P16POR16 Only The PCI P16POR16 includes 16 normally open form A PhotoMOS relays The board can eliminate ground loop problems and isolate the computer from damaging voltages Use the PCI P16POR16 to switch loads up to 350VAC and 130mA Measurement Meter AC DC Signal PCI P16POR16 PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 17 2 4 Isolated Input e For PCI P8R8 P16R16 P16C16 P16POR16 Reading the isolation input register will give the digital input state of the photo couple isolation input Figures 2 3 and 2 4 show the basic circuit
21. o initialize the driver ed Ran AE aI III III III III II AI AI IAEA f Initial the device driver and return the board number in the PC wlnitialCode PCI_Driverlnit amp wTotalBoard if wInitialCode NoError MessageBox hwnd No PCI card in this system PCI Card Error MB_OK PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 38 4 7 PCI_DriverClose Description Terminates the device driver napwnt sys for window NT 2000 XP nappci vxd for Windows 95 98 In DOS version this function is provided just for uniformity or W32 program It can only return a NoError e Syntax void PCI_DriverClose void e Input Parameters void e Output Parameters void 4 8 PCI_GetDriverVersion Description Gets the version number of device driver nappci vxd for windows 95 98 napwnt sys for Windows NT 2000 XP e Syntax WORD PCI_GetDriverVersion WORD wDriverVersion Input Parameters wDriverVersion address of wDriverVersion WDriverVersion 200 hex Version 2 00 Return Value NotError OK NotFoundBoard can t detect the existence of P16R16 P8R8 DriverCallError can t open the NAPPCI VXD in Windows 95 98 Can t open the NAPWNT SYS in Windows NT 2000 XP DriverHandleError return handle is wrong when open device driver PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 39 4 9 PCI _GetCongfigAddressSpace Description Reads configuration space for P16R16 and
22. of the digital input Switch _ DIA 0 I 0 If Using AC Internal Circuit Signal JP1 must be shorted 2 31 Figure 2 3 Basic Digital Input Circuit PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 18 Although the normal input voltage range is 5 to 24V AC or DC the input can still be changed to a larger range by choosing suitable external resistors The following figure shows how to connect to a larger input Please note that the input current should be limited between 2mA to 20mA too large an input current will burn down the internal resistor Ri while too low of an input current will not active the photo coupler isolator Calculate input voltage and current then replace resister Ri Ri 1 2K Q 1W External Circuit On board circuits pc 814 Figure 2 4 Isolated Digital Input lf 2mA 20mA A rough estimate if Vin 120V and we ignore photo coupler turn on voltage We ll get Vin k Ri Vin 120 V k 10 mA Ri Vin If 120 V 0 01 A 12000 Q If you replace 1 2KQ as resistor Ri we can calculate the power consumption of Ri as follows 2 2 P Rex 10mA 1 2KQ 1 2W The power consumption is 1 2 watts but choosing 1 5 or 2 watts is better Thus we can choose a 1 2K 2W resistor to replace the resistor Ri PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 19 3 Software Installation Guide e FOR PCI P8R8 PCI P16R16 PCI P16C16 PCI P1
23. r 2 2 2005 5 5 41 e Demo Program a a EERAERERERRE This program is developed by Turbo C 2 0 VERTRETERIN ERE DEERE ERERRES AEE EEEEL SEERA EAR ERR Demo 1 One P16R16 card demo PORRA ARRESAR ESE NEKEEN KENEK RERRE RGC UA RRER AA ERA RERRERRRE include P16R16 H int main int WORD i j nVal float fVal WORD WORD WORD WORD WORD WORD WORD clrscr wBoards wRetVal wVal wInData wTypelD wAddress0 wAddress1 wAddress2 wAddress3 wAddress4 wAddress5 P16R16_BaseAddress P8R8_BaseAddress wP16R16No wP8R8No initiaing PCI P16R16 card and detect how many P16R16 P8R8 card in PC wRetVal PCI_Driverlnit amp wBoards printf Threr are d PCI P16R16 P8R8 Cards in this PC tally n wBoards if wBoards 0 putch 0x07 putch 0x07 putch 0x07 printf There are no P16R16 P8R8 card in this PC n exit 0 dump every P16R16 P8R8 card s configuration address space for i 0 i lt wBoards i PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 42 wRetVal PCI_GetConfigAddressSpace i amp wTypelD amp wAddress0 amp wAddress1 amp wAddress2 amp wAddress3 amp wAddress4 amp wAddress5 if IwRetVal switch wTypelD case 0 printf gt 02d Board Name PCI P16R16 n i P16R16_BaseAddress wAddress2 wP16R16No break case 1 printf gt 02d Board Name PCI P8R8Wn i P8R8_BaseAddress wAddress2 wP8R8No
24. r Setting en 11 1 9 PINASSIGNMENTS a titel H Hensel iliersiekeih llei 12 HARDWARE APPLICATIONS uu42204242002020000n0nnnnnannnnnannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnannnnnnnnnnannnnnn 15 21 ZRELAYOUTPUT iia aia 15 2 2 OPEN COLLECTOR OUTPUT aia di db 16 2 3 PHoTOMOS RELAY OUTPUT criada dali 17 2 4 SOL TEB INPUT A dead 18 SOFTWARE INSTALLATION GUIDE usnsuussasnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnannnnnnnnnnnnnnnnannnnnannnnn 20 3 1 PLUG AND PLAY OF WINDOWS 95 98 2000 XP uunneensnnensnennnnnnnnnnnennnnnnnnnennnnennn nn 20 3 2 SOFTWARE INSTALLATION FORDOS coria AE 28 3 3 SOFTWARE INSTALLATION FOR WINDOWS 95 98 NT 2000 XP nissene 28 VO CONTROL REGISTER 2 2 eaa sr aerea nati Akesa aant Enina 29 4 1 FUNCTION CALLIN P16RT6 DLL 1 20 iaeei isse aa au rg 34 A O E A 34 4 3 PELUELOATSUB LL A A 35 4 4 PCI SHORTSUB2 cerrada ita italia 36 4 5 PCIUGETDUEVERSION cos ita Getic enter ete 36 4 6 PGI DRIVERENI E EE aaa A Aa 37 44 PCL DRIVERCLOSE cia ed ee od 39 4 8 POLE GETDRIVERVERSION since eerste aed eatin ee ania 39 4 9 PCI_GETCONGFIG DDRESSSPACE 0c cccsceceeceeceeeeeeeeeeecaeeceeeecaeeeeeaeeseeeeccaeeessaeeeseeeeaees 40 4 10 PA6R 16 DO Mr tada ea 41 AAT PI6R16 B ra ee einen 41 4 12 PERS DO He iii HR ek E 45 ANO PORO Diana mn ara A ih rl 45 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 2 1 Introduction Model Number Isol
25. r s Manual Ver 2 2 2005 5 5 21 Add New Hardware Wizard What do you want Windows to do Search for the best driver for your device Recommended Figure 4 Select the second item and click Next gt Add New Hardware Wizard Selectthe type of device from the list below then click Next Multifunction adapters Network adapte Other detected devices Other devices MOIA sock Ports COM amp LPT Printer SCSI controllers Sound video and game controllers system devices Universal serial bus controller hd lt Back q D Cancel Figure 5 Select the item Other devices and click Next gt PCI P8R8 PI6R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 22 Add New Hardware Wizard Select the manufacturer and model of your hardware device If you have a disk that contains the updated driver click Have Disk To install the updated driver click Finish Models Unsupported Device lt Back Cancel Figure 6 Click the Have Disk button Install From Disk x Insert the manufacturer s installation disk into the drive selected and then click OK Cancel Copy manufacturer s files from Figure 7 Click Browse to select driver PCI P8R8 PI6R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 23 Open mE m a Cancel af 3 Projs 3 pcip16r16 Network Sa Win95 3 Inf Folders F Projs
26. t Power 3 GND 3 GND 3 Ext Power 4 Ext Power 4 GND 4 GND 4 External Cable Ext Power External Power Input GND External Power Ground OUT Open Collector Output DIA Digital Input Point A DIB Digital Input Point B PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 13 PCI P16POR16 Pin Assignment EEEEEEEEEEEE EEE OONDOUIRwOND OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO OO External Cable DIA Digital Input Point A DIB Digital Input Point B PCI P8R8 P16R16 P16C16 P16POR16 User s Manual Ver 2 2 2005 5 5 14 2 Hardware applications Model Number OUTPUT Input PCI P8R8 PCI P16R16 Relay Output Optical isolation PCI P16C16 Transistor Output Optical isolation Open collector PCI P16POR16 PhotoMos Relay Output Optical isolation 2 1 Relay Output e For PCI P8R8 PCI P16R16 Only Whenever data is written data to the output control register the relays will switch to NC or NO as specified by the control code A 1 in the control register will energize the corresponding relay The relay will switch from COM to NO normally open A 0 in the control register will turn off the corresponding relay and the relay will be switch from COM to NC normally closed The control register powers on in NC mode A hardware reset signal or programmable reset signal will also turn the relay to NC The
27. t channel and the corresponding jumper pi po veo Die 32 on smo De pr pe pis Dna Table 1 2 Jumper assignment The figure below shows how to select the digital input type H 3 Without Filter With AC Filter For DC Signal For AC Signal Default Settling Figure 1 6 Jumper Settings If you are using AC input signals you must short AC FILTER pin2 3 of the corresponding jumpers If you are using DC input signals the AC FILTER is optional If the DC input signal response is less than 20 us set the filter to off If you want a slow response about 5 to 10 ms to reject either noise or contact bouncing short AC FILTER Pin2 3 PCI P8R8 P16R16 P16C16 P16POR16 User s Manual Ver 2 2 2005 5 5 11 1 5 Pin Assignments PCI P8R8 PCI P16R16 Pin Assignment OO DOODDODDDDODDTE nor COT WM 0 YM U amp Wh O O O O O O O O O O O O O O O O O O O 00000000000000000000 O 0 w O a e po Extender Cable NO Normal Open COM Common NC Normal Close DIA Digital Input Point A DIB Digital Input Point B PCI P8R8 P16R16 P16C16 P16POR16 User s Manual Ver 2 2 2005 5 5 12 PCI P16C16 Pin Assignment Ext Power 1 Ext Power 1 GND 1 GND 1 Ext Power 2 Ext Power 2 OMNONARWN Ext Power 3 Ext Power 3 GND 3 GND 3 Ext Power 4 Ext Power 4 GND 4 GND 4 DIB_8 DIB_9 DIB_10 DIB_11 DIB_12 DIB_13 DIB_14 DIB_15 Ext Power 3 Ex
28. ub2 short nA short nB EXPORTS WORD CALLBACK PCI_GetDllVersion void EXPORTS WORD CALLBACK PCI_Driverlnit WORD wTotalBoards EXPORTS void CALLBACK PCI_DriverClose void EXPORTS WORD CALLBACK PCI_GetDriverVersion WORD wVxdVersion PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 34 EXPORTS WORD CALLBACK PCI_GetConfigAddressSpace WORD wBoardNo WORD TypelD WORD wAddress0 WORD wAddress1 WORD wAddress2 WORD wAddress3 WORD wAddress4 WORD wAddress5 EXPORTS WORD CALLBACK PCI_WhichBoardActive void EXPORTS void CALLBACK P16R16_DO WORD BaseAddr WORD OutData EXPORTS WORD CALLBACK P16R16_DI WORD BaseAddr EXPORTS void CALLBACK P8R8_DO WORD BaseAddr WORD OutData EXPORTS BYTE CALLBACK P8R8_DI WORD BaseAddr 4 3 PCI FloatSub2 e Description Performs subtraction like A B for float data types This function is provided for testing DLL linkage O Syntax float PCI_FloatSub2 float fA float fB O Input Parameters fA 4 bytes floating point value fB 4 bytes floating point value e Return Value the value of fA fB PCI P8R8 P16R16 P16C16 P16PORI16 User s Manual Ver 2 2 2005 5 5 35 4 4 PCI_ShortSub2 e Description Performs subtraction as like A B in short data types This function is provided for testing DLL linkage e Syntax float PCI_ShortSub2 short nA short nB O Input Parameters nA 2 bytes short data type value nB 2 bytes short data type value e Return Value the value
29. uipment be in perfect order before delivery However some unconditional damages may occur while unpacking Please read this section before unpacking the card Feel free to contact your carrier and retain your carton in case there is error CAUTION This card contains sensitive electronic components that can be easily damaged by static electricity 1 This card should be packed with an anti static mat 2 The user should wear an anti static wristband grounded at the same point to the anti static mat 3 Inspect the carton for obvious damage Either shipping or handing may cause damages Be sure there are no shipping and handing damages on the card before using 4 After opening the carton place the system board handle on a grounded anti static surface and let the component side up CAUTION Do not apply power to the board if it has been damaged e You are now ready to install your card PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 8 1 4 2 Board Layout PCI P8R8 IN DE eee Figure 1 2 PCI P8R8 Board Layout PCI P16R16 PU anne
30. us Device Function WhichLong VendorlD inport Oxcfc DevicelD inport Oxcfe if VendorIlD 0x1234 84 DevicelD 0x1616 Poo PCI P16R16 ig WhichLong 4 Base Address 0 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr0 WORD dBaseAddress amp Oxfffe wConfigSpace wT otalBoards 0 wBaseAddr0 PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 30 WhichLong 5 Base Address 1 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr1 WORD dBaseAddress amp Oxfffe wConfigSpace wTotalBoards 1 wBaseAddr1 WhichLong 6 Base Address 2 Write Address Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr2 WORD dBaseAddress amp Oxfffe wConfigSpace wT otalBoards 2 wBaseAddr2 WhichLong 7 Base Address 3 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr3 WORD dBaseAddress amp Oxfffe wConfigSpace wT otalBoards 3 wBaseAddr3 WhichLong 8 Base Address 4 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr4 WORD dBaseAddress amp 0xfffe wConfigSpace wT otalBoards 4 wBaseAddr4 WhichLong 9 Base Address 5 WriteAddress Bus Device Function WhichLong dBaseAddress _inpd Oxcfc wBaseAddr5 WORD dBaseAddress amp 0xfffe wConfigSpace wT otalBoards 5 wBaseAddr5 store the type name ID wConfig
31. wer 60VA 24W Operating 0 60 deg C Temperature Common 20 70 deg C Temperature 0 90 183mm X 105 mm PCI P8R8 P16R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 6 Product PCHP16Ct6 PCI PIGPORIG Input Current per 20 mA max 24V 20 mA max 24V channel Input Voltage AC DC 5 24 V AC DC 5 24 V AC 50 1K HZ AC 50 1K HZ 1 2 KQ Input Impedance 1 2 KQ Withstanding Voltage 1KV Response Time Without Filter 20uS Without Filter 20uS With Filter 2 2mS With Filter 2 2mS Output Channels ee PhotoMos Relay Open collector Form A Output Rating per 30Vdc channel 600mA max Peak AC TumOnTime 7 mSeo Turn OFF Time 0 05 mSeo OUTPUT Output On 230 Resistance LED indicators External Power Output status Input status Operating 0 60 deg C Temperature Storage 20 70 deg C Temperature 0 90 Dimensions 183mm X 105 mm PCI P8R8 PI6R16 P16C16 P16PORI6 User s Manual Ver 2 2 2005 5 5 7 1 4 Hardware Configuration This chapter describes how to unpack this I O card and how to install it to your system Both the unpacking information and the jumper settings are described in the following text This manual should be carefully read before installation 1 4 1 Unpacking This I O card was well tested and inspected both mechanically and electrically before shipping It was free of marks and scratches our quality delivery policy requires that all eq

Download Pdf Manuals

image

Related Search

Related Contents

  5 - Tecnica Industriale S.r.l.  Auto Page RF-225 Automobile Electronics User Manual  émergence - Bourgogne Bâtiment Durable  Doc de prueba  Manual - ToolTopia.com      C2N Home Backup Benutzerhandbuch für Apple-Mac  biblio nivillac  

Copyright © All rights reserved.
Failed to retrieve file