Home

Manual

image

Contents

1. 126 1 3 Product Check List The shipping package includes the following items e One PCI M512 PCI M512U board e One companion CD for software driver e One Quick Start Guide It is recommended to read the Quick Start Guide first All the necessary and essential information are given in the Quick Start Guide as follows e Where to get the software driver demo programs and other resources e How to install the software e How to test the card Attention If any of these items are missing or damaged contact the dealer from whom you purchased the product Save the shipping materials and carton in case you want to ship or store the product in the future PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 6 1 4 Installation Quick Start The PCI M512 software supports Windows 98 NT 2000 XP 2003 Vista 7 2008 32 64 bit 1 4 1 Software Installation Step 1 insert the companion CD into the CD ROM driver It will auto run as follows ICP DAS_PCIZ0070125 Pile xi ICP BAS Development Toolkits aie PCI Bus DAQ Card bi DASYLab Driver Motion Control Card Linux Driver Watchdog WDT Card A Daughter Board Multi port Serial Card a af Acrobat Reader 6 0 CD Contents Readme txt Contact Us EXIT Step 2 click the first item PCI Bus DAQ Card Step 3 click the item PCI M512 PCI 180X o PCI P16R16 PCI P8R8 Pci Tmc12A PCI M512 User Manual
2. e Vendor ID 10B5 e Device ID 9050 e Sub vendor ID 2129 e Sub device ID 0512 The plug amp play BIOS will assign proper resources to every PCI M512 card in the power on stage The software driver of the PCI M512 will use these resources to access the hardware Users must use PCIM512_DetectBoards to detect all PCI M512 boards first Then user can use the following commands to access SRAM or DIO of detected board Read Function Write Function SRAM R W Byte PCIM512 ReadSramByte PCIM512_WriteSramByte SRAM R W Word PCIM512 ReadSramWord PCIM512 WriteSramWora SRAM R W DWord PCIM512_ReadSramDword PCIM512 WriteSramDword DIO R W Word PCIM512_ReadFrom Du PCIM512_WriteToDo PCIM512_ReadIBoardid dwBoardNo dwVendorld dwDeviceld dwSubVendorld dwSubDeviceld is designed to read back the IDs of detected PCI M512 M512U boards PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 16 2 3 Block Diagram of DIO The PCI M512 M512U provides 16 channels of digital input and 16 channels of digital output All levels are TTL compatible The connections diagram and block diagram are given as follows BT1 Low BT1 Bad BT2 Low BT2 Bad D I read signal Local Data Bus DO D15 D O write signal The D O port can be connected to the DB 16R or DB 24PR The DB 16R is a 16 channel relay output board The DB 24R is a 24 channel power relay output board Note
3. Syntax DWORD PCIM512_CloseBoard DWORD dwBoardNo Parameter dwBoardNo Input PCI M512 M512U board number Return PCI_NoError OK PCl_BoardlsNotOpen This board is not opened PCI_BoardNoExceedFindBoards Not fined the board 3 3 7 PCIM512_ CloseAll Description This subroutine will close all of PCI M512 M512U kernel driver and release the resource for the device Syntax DWORD PCIM512_CloseAll Parameter None Return PCI_NoError OK PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 36 3 4 Functions of Sram Read Write 3 4 1 PCIM512_WriteSramByte e Description Write one byte 8 bit data to SRAM of PCI M512 M512U e Syntax DWORD PCIM512_WriteSramByte dwBoardNo dwOffset Data e Parameter dwBoardNo Input board number from 1 to N dwOffset Input offset address of SRAM from 0 to Ox7ffff Data Input one byte of data 8 bit e Return O Write OK PCI_DriverNoOpen Kernel driver not found PCI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N e Note 1 Call PCIM512_DetectBoards before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 37 3 4 2 PCIM512 WriteSramWord Description Write one word 16 bit of data to SRAM of PCI M512 M512U Synta
4. 27 1 4 5 Multi Board Diagnostic Step 1 Run TestId2 of Delphi demo program to read amp show IDs of two PCI M512s as follows Fo 1085 9050 0128 Step 2 Run TestDIO2 of Delphi demo program to read write D I O of two PCI M512s as follows Fo Step 3 Run TestSram2 of Delphi demo program to read write SRAM of two PCI M512s as follows Forml 12345678 PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 14 2 Hardware configuration 2 1 Note ONY AS Board Layout LED LED2 LED3 LED4 DU DD D LED1 BT1 Low Green LED2 BT1 Bad Red LED3 BT2 Low Green LED4 BT2 Bad Red PCI M512 M512U If BT1 amp BT2 are both OK LED1 LED4 will be OFF If BT1 is lower than 2 3 V the green LED1 will be ON If BT1 is lower than 2 1 V the green LED1 amp red LED2 will be ON If BT2 is lower than 2 3 V the green LED3 will be ON If BT2 is lower than 2 1 V the green LED3 amp red LED4 will be ON If the PC power is off the power control circuit will select the battery with the higher voltage to backup SRAM If both BT1 amp BT2 are bad the data stored in SRAM may be lost SRAM can keep all stored data if either BT1 or BT2 is higher then 2 V If either BT1 or BT2 is bad it is recommended to replace both BT1 amp BT2 with new batteries PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 15 2 2 IDs of PCI M512 The IDs of the PCI M512 M512U are given as follows
5. Offset Address byte word dword read write is given in Mode gt Byte Word Dword e Click Sram Read to read data from SRAM offset address of SRAM is given in R W Offset Address byte word dword read write is given in Mode gt Byte Word Dword O Key in new dwBoardNo to read write to other PCI M512 M512U Refer to Sec 3 1 for more information O Write 0x12345678 to offset address O of SRAM as follows J Forml E x Sram Write PCIM512_Driverlnit fo dwBoardNo 1 2 3 fi PCIM512_DetectCards fi RAW Offset Address O Mode gt Byte Word Dword 3 RAW Sram Data 1 2345678 Sram Read PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 12 Read one byte of SRAM at offset address 0 as follows A Forml iof x Sram Write fo dwBoardNo 1 2 3 fi fi RAW Offset Address 0 PCIM512_Driverlnit PCIM512_DetectCards Mode gt Byte Word Dword fi RAW Sram Data 0078 O Read one word of SRAM at offset address O as follows J Foml Iof x Sram Write jo dwBoardNo 1 2 37 fi PCIM512_Driverlnit PCIM512_DetectCards fi RAW Offset Address 0 Mode gt Byte Word Dword E RAW Sram Data 35678 O Read one dword of SRAM at offset address O as follows AM iof x PCIM512_Driverlnit jo dwBoardNo 1 2 34 fi PCIM512_DetectCards fi RAW Offset Address O Mode gt Byte Word Dword fa RAW Sram Data D 2345678 Sram Read PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017
6. Voc or 24 Voc external power supply Normal Open Form A Relay com LI L L 20Pin cable To 20pin connector l DB 24PR PCI M512 M512U Note 50 Pin connector OPTO 22 compatible for DIO 24 DIO 48 DIO 144 20 Pin connector for 16 channel digital output A 82X A 62X DIO 64 ISO DA16 DA8 Channel 16 From A Relay 8 From C Relay Relay switching up to 5 A at 110 Vac 5 A at 30 Voc PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 23 2 7 Pin Assignment CN2 pin assignment of digital input connector HA A PE ESE a Malo a 5 Digitalimpur 6 Jain 17 Digital input 6 8 Digital input 7 Digital input 8 1 Digital input 9 0 Cat Digital input 10 12 Digital input 11 13 Digital input 12 14 Digital input 13 15 Digital input 14 16 Digital input 15 17 PCB ground 1g PCB ground w kenn 2 pcasrrv Note The DI 0 3 are reserved for internal batteries status CN1 pin assignment of the digital output connector 5 Digital oupurd 6 Digital outputs 17 Digitalouiput 8 Digital output7 9 Pigitalowtputs 10 Digitalouput9 5 i 6 i 1 1 17 PCB ground 18 PCB ground PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 3 DLL Driver The included software is a collection of subroutines for PCI M512 M512U cards for Windows 95 98 NT 2000 XP applications These subroutines are written with C language and perform a variet
7. bytes short data type value nB Input 2 bytes short data type value Return The value of nA nB PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 30 3 2 3 PCIM512_IntSub e Description To perform the subtraction as iA iB in int data type This function is provided for testing DLL linkage purpose e Syntax short PCIM512_IntSub int iA int iB eo Parameter iA Input 4 bytes int data type value iB Input 4 bytes int data type value e Return The value of A iB 3 2 4 PCIM512 GetDliVersion e Description To get the version number of PCIM512 DLL e Syntax DWORD PCIM512_GetDllVersion void eo Parameter None e Return Return the DLL s version number For example 102 hex for version 1 02 PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 31 3 3Functions of Driver Initialization 3 3 1 PCIM512 Driverlnit Description This subroutine will allocate resources for the WinDriver This function must be called before using the DLL functions given in Sec 3 3 Sec 3 5 Syntax DWORD PCIM512_Driverlnit Parameter None Return PCI_NO0Error OK PCI_DriverOpenError WinDriver kernel not find refer to Sec 1 2 1 for more information 3 3 2 PCIM512_OpenBoard Description This subroutine will open the PCI M512 kernel driver and allocate resource for the device This function must be called before using other I O functions Syntax void
8. 000 XP Kernel mode User mode same for 95 98 NT 2000XP Refer to Calling DLL functions in VB_VC_Delphi_BCB pdf in the companion CD NAPDOS PCI Manual for more information about how to call the DLL functions with VC 5 VB5 Delphi3 and Borland C Builder 3 PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 45 4 1 Problems Report Technical support is available at no charge as described below The best way to report problems is to send electronic mail to Service icpdas com When reporting problems please include the following information 1 Is the problem reproducible If so how 2 What kind and version of platform that you using For example Windows 3 1 Windows 95 or Windows NT 4 0 etc 3 What kinds of our products are you using Please see the product s manual 4 If a dialog box with an error message was displayed please include the full text of the dialog box including the text in the title bar 5 If the problem involves other programs or hardware devices what devices or version of the failing programs are you using 6 Other comments relative to this problem or any suggestions will be welcomed After we had received your comments we will take about two business days to test the problems that you reported Then will reply as soon as possible to you Please keep in contact with us ICP DAS E mail Service icpdas com Web Site http www icpdas com PCI M512 User Manual Ver 2 7 Ju
9. 2010 PMH 017 27 41 3 4 6 PCIM512_ReadSramDword Description Read one dword 32 bit data from SRAM of PCI M512 M512U Syntax DWORD PCIM512_ReadSramDword dwBoardNo dwOffset Data Parameter dwBoardNo Input Board number from 1 to N dwOffset Input Offset address of SRAM from 0 to Ox7fffc Data output One dword of data 32 bit Return O Write OK PCI_DriverNoOpen Kernel driver not found PCI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N Note 1 Call PCIM512_DetectBoards before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 42 3 5 Functions of D I O Read Write 3 5 1 PCIM512 WriteToDo e Description Write one word 16 bit of data to D O of PCI M512 M512U e Syntax DWORD PCIM512_WriteToDo dwBoardNo Data e Parameter dwBoardNo_ Input Board number from 1 to N Data Input One word of data 16 bit e Return 0 Write OK PCI_DriverNoOpen Kernel driver no found PCI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N e Note 1 Call PCIM512_DetectBoards before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more informati
10. BT2 will preserve their battery for later usage If PC s power is off the battery with higher voltage will supply power to SRAM The stored data of SRAM will remain if the power is larger than 2 0 V So either BT1 or BT2 must higher than 2 0 V to keep the SRAM data There is one low battery indicator amp one bad battery indicator for both BT1 amp BT2 Refer to Sec 2 3 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 20 2 6 Daughter Boards 2 6 1 DB 16P Isolated Input Board The DB 16P is a 16 channel isolated digital input daughter board The optically isolated inputs of the DB 16P consist of a bi directional optocoupler with a resistor for current sensing You can use the DB 16P to sense DC signal from TTL levels up to 24 V or use the DB 16P to sense a wide range of AC signals You can use this board to isolate the computer from large common mode voltage ground loops and transient voltage spike that often occur in industrial environments Note The lowest nibbles bit_0 to bit_3 are used by PCI M512 so only the highest 12 bits but A to bit_15 are available D I 4 15 of PCI M512 Opto Isolated 20Pin cable AC or DC Signal 0 V to24V PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 21 2 6 2 DB 16R Relay Board The DB 16R 16 channel relay output board consists of 16 Form C relays for efficient switching of loads by programmed control It is a connector and f
11. CK PCIM512_CloseBoard DWORD dwBoardNo DWORD CALLBACK PCIM512_DetectBoards void DWORD CALLBACK PCIM512_OpenBoard DWORD dwBoardNo DWORD dwIntEnable DWORD CALLBACK PCIM512_ReadBoardStatu DWORD dwBoardNo DWORD CALLBACK PCIM512_CloseAll void Functions of SRAM Read Write Refer to Sec 3 4 DWORD CALLBACK PCIM512_WriteSramByte DWORD dwBoardNo DWORD dwOffset BYTE Data DWORD CALLBACK PCIM512_WriteSramWord DWORD dwBoardNo DWORD dwOffset WORD Data DWORD CALLBACK PCIM512_WriteSramDword DWORD dwBoardNo DWORD dwoOffset DWORD Data DWORD CALLBACK PCIM512_ReadSramByte DWORD dwBoardNo DWORD dwOffset BYTE Data DWORD CALLBACK PCIM512_ReadSramWord DWORD dwBoardNo DWORD dwoOffset WORD Data DWORD CALLBACK PCIM512_ReadSramDword DWORD dwBoardNo DWORD dwoOffset DWORD Data Functions of DIO Read Write Refer to Sec 3 5 DWORD CALLBACK PCIM512_WriteToDo DWORD dwBoardNo WORD Data DWORD CALLBACK PCIM512_ ReadFromDi DWORD dwBoardNo WORD Data PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 28 3 1 Find the Board Number The plug amp play BIOS will assign the proper base address to PCI M512 M512U If there is only one PCI M512 users can identify this board as board_1 If there are two PCI M512 boards in the system it will be very difficult to identify which board is board_1 Our software driver can support 20 boards max Therefore user can install 20 boards of PCI M512 in one PC system
12. D3 ON LED4 ON Bit2 1 Bit3 1 You can call PCIM512_ReadFromDi DWORD dwBoardNo WORD Data to read the 16 bit data Refer to Sec 3 6 for more information The lowest 4 bits BitO Bit3 are battery status bits The other 12 bits Bit4 Bit15 are external D I signals You can connect a DB 16P to CN2 for sensor input Refer to Sec 2 5 1 for more information If you find that either BT1 or BT2 is in low battery state it is recommended to replace both BT1 amp BT2 as follows 1 Prepare 2 new batteries for new BT1 amp new BT2 2 Power on PC not power off 3 Replace the old BT1 with the new BT1 4 Replace the old BT2 with the new BT2 Note it is recommended to replace both BT1 amp BT2 at the same time one by one The two battery design also makes it safe to replace new batteries without losing data when one battery is taken out for replacing a new one the other continues to provide power to the SRAM PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 19 2 5 Block Diagram of SRAM Comparator Enable Chip Enable Comparator Select the most higher SRAM IC The power supply of SRAM is selected from the highest voltage of PC VCC BT1 amp BT2 The initial voltage of BT1 amp BT2 is about 3 V If the PC is power on the PC VCC will be about 5 V If the PC is off the PC VCC will be about 0 V So when the PC is power on the PC VCC will supply power to SRAM In this condition BT1 amp
13. Only 16 channels of these 24 channels are valid The D I port can be connected to the DB 16P The DB 16P is a 16 channel isolated digital input daughter board Note starting 4 channels are used by battery status bits as the above diagram shown All DI amp DO are TTL compatible PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 17 2 4 Battery Status Indicators LEDI LED2 LED3 LED4 Green Red Green Red BT1 Low Gv BT1 Bad Comparator Om BT2 Low Comparator 16 Channels CY ero E BT2 Bad Comparator CN2 12 Channels gt External Digital PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 18 The initial voltage of BT1 will be larger then 3 0 V If this voltage drops to 2 3 V BT1 can still keep the stored data in SRAM for months It is recommended to replace both BT1 amp BT2 when either BT1 or BT2 drops to 2 3 V If this voltage drops to 2 1 V the BT1 can still keep the stored data in SRAM for weeks You should replace both BT1 amp BT2 a s a p if either BT1 or BT2 drops to 2 1 V The action table is given as follows Battery voltage status LED status D I port status BT1 gt 2 3V LED1 OFF LED2 OFF Bit0 0 Bitl 0 2 3 V gt BT1 gt 2 1 V LED1 ON LED2 OFF Bit0 1 Bitl 0 2 1 V gt BT1 LED1 ON LED2 ON Bit0 1 Bitl 1 BT2 gt 2 3V LED3 OFF LED4 OFF Bit2 0 Bit3 0 2 3 V gt BT2 gt 2 1 V LED3 ON LED4 OFF _ Bit2 1 Bit3 0 2 1 V gt BT2 LE
14. PCI M512 M512U User 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 or for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2002 by ICP DAS All rights reserved Trademark The names used for identification only may be registered trademarks of their respective companies PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 1 Tables of Contents 1 INTRODUCTION ea ed 4 d 1 FEAT RES A ee 4 1 2 EEN 5 1 3 PRODUCT CHECK LIST island lla n RG EENS 6 1 4 INSTALLATION QUICK START EE 7 EAL Software Instala di tii 7 EEN 8 1 4 3 Hardware Installation a a e ee AE A A E Ea E ERE AAS 9 TRA Hardware Eeer 9 1 4 5 Multi Board RE 14 HARDWARE CONFIGURATION sccssssssssscssccssscseccsscsescscsssccsessscssessoess 15 2 BOARD LAYOUT EE TEE EE 15 le DR Re E e EE 16 2 3 BLOCK DIAGRAM OF DIJO sesion nato as 17 24 BATTERY STATUS INDICATORS yon Gehlen 18 2 5 BLOCK DIAGRAM OF SRAM RE 20 2 6 DAUGHTER BOARDS oec ia E TaESA 21 2 6 1 DB 16P Isolate
15. PCIM512_OpenBoard DWORD dwBoardNo DWORD dwIntEnable Parameter dwBoardNo Input PCI M512 board number dwintEnable Inout PCI M512 board interrupt enable disable 1 0 Return PCI NoError OK PCI_BoardOpenError Board open kernel driver error PCI_BoardNoExceedFindBoards Not find the Board PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 32 3 3 3 PCIM512 DetectBoards Description This subroutine will detect all installed PCI M512 M512U boards This function must be called before using other I O functions given in Sec 3 4 amp Sec 3 5 Syntax DWORD PCIM512_DetectBoards Parameter None Return 0 No PCI M512 is installed in this PC 1 Only one PCI M512 M512U is installed in this PC board no 1 2 There are 2 PCI M512 M512U installed in this PC board no 1 2 N Number of PCI M512 installed in this PC Note 1 Call PCIM512_Driverlnit before calling this function 2 Call PCIM512_OpenBoard before calling this function 3 Call PCIM512_ DetectBoards to detect all PCI M512 boards 4 Call PCIM512_ReadBoardld to identify the detected PCI M512 boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 33 3 3 4 PCIM512_ ReadBoardld e Description This subroutine will show the IDs of detected PCI M512 M512U boards It is designed to identify PCI M512 M512U e Syntax DWORD PCIM512_ReadBoardld dwBoardNo dwVendorld d
16. The simplest way to find the board number is to use DioTest in Delphi4 demo program This demo program will send a value to D O and read back from D L The low 4 bits of D I are battery status bits they can be used as an indicator as follows Insert one piece of paper to BT 1 of one PCI M512 Install all PCI M512 cards into this PC system Power on PC You will find only one PCI M512 s LED1 amp LED2 are ON Run DioTest of Delphi4 Key in board number to 1 Click Digital Output 0xDD Check the value in Digital Input if the LSB is 1 we find the target PCI M512 DioTest J Formal Digital Output DDDD Digital Output 5555 Need to call PCIM512_OpenBoard dwBoardNo 1 2 37 DO O E PCIMS12_Driverlnit H Digital Output Data DDDD saasa PCIM512_DetectBoards Digial Input PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 29 3 2 Functions of Test 3 2 1 PCIM512 FloatSub Description To perform the subtraction as fA fB in float data type This function is provided for testing DLL linkage purpose Syntax float PCIM512_FloatSub float fA float fB Parameter fA Input 4 bytes floating point value fB Input 4 bytes floating point value Return The value of fA fB 3 2 2 PCIM512 ShortSub Description To perform the subtraction as nA nB in short data type This function is provided for testing DLL linkage purpose Syntax short PCIM512_ShortSub short nA short nB Parameter nA Input 2
17. Ver 2 7 Jun 2010 PMH 017 27 7 1 4 2 get demo software and manual Now you had installed the driver and rebooted your PC The Plug and Play had run automatically and you see the PCI M512 installation information in Device Manager You also got the demo programs already For example after running self extracting archive dll_Delphi4_yymmdd exe the demo programs will show as follows Sit ja CADAQPro PCI M512 demoVelphi4 CH a a a a a Pa a a DioSingle2 DioTest DilTest SramTest TestDio2 Testld2 TestSram2 delphi4 AAA BRR EAE DioSingle gt Test DIO of the PCI M512 only one program can access this board DioSingle2 gt Test DIO of the PCI M512 DioTest gt Test DIO of the PCI M512 DilTest gt Test DLL driver amp detect the PCI M512 M512U SramTest gt Test NVSRAM of the PCI M512 TestDio2 gt Write DO then read DI of two PCI M512 boards TestId2 gt Show IDs of two PCI M512 boards TestSram2 gt Show SRAM of two PCI M512 boards Get the PCI M512 hardware manual The hardware manual pcim512 pdf is in the companion CD CD NAPDOS PCI PCI M5 12 Manual da Back 0 search CE Folders A History CS Address SicoiMaPDOSiPCHPCEMS12IManual Ey le Edit View Favorites Tools Help pcim512 pdf 1 263 KB PDF File 4 5 PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 8 Get the FAQ documentation If you have any problem about install hardware driver and s
18. d E EE 21 2 6 2 IBOR Relay E 22 2 6 3 DB 24PR DB 24POR DB 24C iii tdi bic 23 2 7 EE ENT E E 24 DEL DRIVER 5 0 daa 25 320 PROGRAM ARCHITECTURE Ee 26 3 1 FIND THE BOARD NUMBER ss tant Sedan ENNER EREN 29 3 2 F NCTIONS OR TES Tiaoa i e E O E 30 EE 30 32 25 EE 30 32 3 EE 31 3 2 4 PCIMS12_GetDIIVersion occcccccccccccccsscsscccececeseessssecesececssesssssecaeeesecsesenessaaees 31 3 3FUNCTIONS OF DRIVER INITIALIZATION i nica 32 E GEERT 32 3 3 2 PCIMS 12 Open Boar ET 32 3 3 3 PCIMS 12 DeisctBooarde nono noononnnn o non a 33 3 3 4 PCIM512_ReadBoardld oooooononnconnnnnonocnonnnnano nono no cnononnnnn rn nono rrononnnnn nn nono 34 3 3 5 PCIMS 12 Readbooard rome no nnnnonononaanananoss 35 373 0 PCIMS 12 ClosebBo dd aia 36 PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 2 EE COS Cd 36 3 4 FUNCTIONS OF SRAM READ WRITE coimas 37 AL PCIM5SI2 WriteSramByte nta diia 37 IRALA CIMILZ SIVIES aim E 38 3 43 PCIMILZ Write Sra midword o con 39 3 4 4 EE 40 D4 CIMD I ROCAS EE 4 3 4 6 PCIMILZ ReddStamDWOTA sli ia a A a A ze 42 3 5 FUNCTIONS OF D 1 O READ W RITE csccioiii siii iaccacdad 43 3 3 PCIM5S12 WED A aaa mand Sa caeslaeleatvants 43 EE EE 44 4 DEMO PROGRAM incas coi dia idos 45 4 PROBLEMS REPO a lo de e 46 PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 3 1 Introduction The PCI M512 PCI M512U provides battery backup 512 KB SRAM 12 bit DI and 16 bit DO In addition the PCI M512U sup
19. ion Read one byte 8 bit data from SRAM of PCI M512 M512U Syntax DWORD PCIM512_ReadSramByte dwBoardNo dwOffset Data Parameter dwBoardNo Input Board number from 1 to N dwOffset Input Offset address of SRAM from 0 to Ox7ffff Data output One byte of data 8 bit Return 0 Write OK PCI_DriverNoOpen Kernel driver not found PCI_BoardNolsZero dwBoardNo is O it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N Note 1 Call PCIM512_DetectBoard before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 40 3 4 5 PCIM512_ReadSramWord Description Read one word 16 bit data from SRAM of PCI M512 M512U Syntax DWORD PCIM512_ReadSramWord dwBoardNo dwOffset Data Parameter dwBoardNo Input Board number from 1 to N dwOffset Input Offset address of SRAM from 0 to 0x7fffe Data output One word of data 16 bit Return 0 Write OK PCI_DriverNoOpen Kernel driver not found PCI_BoardNolsZero dwBoardNo is O it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N Note 1 Call PCIM512_DetectBoards before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun
20. iversal PCI card supports both 5 V and 3 3 V PCI bus PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 4 1 2 Specifications Model Name PCI M512 PCI M512U Digital Input Channels 12 Compatibility 5 V TTL Input Voltage Logic 0 0 8 V max Logic 1 2 0 V min Response Speed 1 4 MHz Typical Digital Output Channels 16 Compatibility 5 V TTL Output Voltage Logic 0 0 4 V max Logic 1 2 4 V min Output Capability Sink 2 4 mA O 0 8 V Source 0 8 mA 2 0 V Response Speed 1 4 MHz Typical Special SRAM Size 512 KB Li Battery BT1 8 BT2 Battery Status bits BT1 Low BT1 Bad BT2 Low BT2 Bad low voltage 2 3 V bad voltage 2 1 V LED Indicators BT1 Low Green BT1 Bad Red BT2 Low Green BT2 Bad Red General Bus Type 5 V PCI 32 bit 33 MHz 3 3 V 5 V Universal PCI 32 bit 33 MHz Data Bus 16 bit DI DO 32 bit Memory IO Connector Male 20 bit ribbon x 2 Dimensions L x W x H 140 mm x 90 mm x 22 mm Power Consumption 420 mA O 5 V Operating Temperature 20 60 C Storage Temperature 40 85 C Humidity 0 90 RH non condensing PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 5 BR2032 Cell Model Name BR2032 mm Max Voltage V 3 0 I Max Current mA 195 0 Type Lithium Coin Cells Dimensions D x H 7 87 mm x 1 26 mm Y
21. n 2010 PMH 017 27 46
22. oftware please refer to the companion CD NAPDOS PCI Manual Those documentations include Software Installation Guide Trouble Shooting in Win32 Resource Conflict and solutions of frequently asked software questions 1 4 3 Hardware Installation Step 1 Install your PCI M512 M512U to PC Step 2 Power on your PC Step 3 Now Windows 98 2000 XP will find a PCI M512 M512U card amp ask you to provide a software driver Refer to PCLISA_PnP Driver Installation in Win9x 2K XP pdf for more information You can find the documentation in the companion CD NAPDOS PCI Manual 1 4 4 Hardware Diagnostic Step 1 run Dill Test of Delphi demo program as follows Sec 1 4 2 J Form Ol x Initial steps PCIM12 ShotSub f2 PCIM512_GetDIMersion 90102 PCIMSI2 Bescht O 00000 PCIM512_Driverlnit fo du endorld s105 PCIM512_DetectCards fi dwDeviceld s3050 dwSubVendorld s2123 OOO dwSubDeviceld be e Click Initial Steps first to check the kernel driver DLL PCIM512 DetectBoards O Check that the value of PCIM512_DriverInit is 0 e Click ReadBoardId to show the IDs of selected PCI M512 in this PC PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 9 O Key in new dwBoardNo to show IDs of another PCI M512 as follows J Form Refer to Sec 2 2 for more information about IDs of PCI M512 as follows O Vendor ID 10B5 O Device ID 9050 O Sub vendorID 2129 O Sub deviceID 0512 PCI M512 Use
23. on PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 43 3 5 2 PCIM512_ReadFromDi Description Read one word 16 bit of data from D l battery status bits of PCI M512 M512U Syntax DWORD PCIM512_ReadFromDi dwBoardNo Data Parameter dwBoardNo Input Board number from 1 to N Data output One word of data 16 bit Bito Bit3 are battery status bits and Bit4 Bit15 are external D I bits as follows Bit0 1 gt BT1 is low battery Bitl 1 gt BT1 is bad battery Bit2 1 gt BT2 is low battery Bit3 1 gt BT3 is bad battery refer to Sec S 4 for more information Return O Write OK PCI_DriverNoOpen Kernel driver not found PCI_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N Note 1 Call PCIM512_DetectBoards before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 44 4 Demo Program There are many demo program written in VC VB Delphi and BCB given in the companion CD These demo programs will call the DLL PCIM512 DLL to access the hardware of PCI M512 M512U The PCIM512 DLL will call the kernel driver Windrvr vxd or Windrvr sys as follows VB demo program Delphi demo program BCB demo program PCIM512 DLL Windrvr vxd Windrvr sys for 95 98 for NT 2
24. ports both 5 V and 3 3 V PCI bus while the PCI M512 supports 5 V PCI bus only The PCI M512U Universal PCI version is designed as a drop in replacement for the PCI M512 PCI version so users can replace a PCI M512 by a PCI M512U directly without any software or driver modification Users can use the DB 16P to connect the input ports CN2 for isolation purpose or use DB 16R to interface to the output ports CN1 for relay control The PCI M512 PCI M512U is equipped with two Li batteries to maintain the content of the 512 KB SRAM when PC power loss occurs The two Li batteries can continue supplying power to the SRAM to retain the important data for 10 years The two battery design also makes it safe to replace new batteries without losing data when one battery is taken out for replacing a new one the other continues to provide power to the SRAM 4 LED indicators on the board are provided for giving clear understanding of the battery states such as normal low voltage or fault The PCI M512 PCI M512U is an ideal solution for improving system reliability 1 1 Features On board 512 KB SRAM Two Li batteries BT1 amp BT2 for battery backup the data of SRAM LED indicators for Li batteries states normal low voltage fault 16 bit general purpose TTL compatible D O 12 bit general propose TTL compatible D I DIA 15 4 bit battery status read back DIO 3 PCI M512 only e PCI card supports 5 V PCI bus PCI M512U only e Un
25. r Manual Ver 2 7 Jun 2010 PMH 017 27 __ 10 Step 2 run DioTest of Delphi demo program as follows Sec 1 4 2 J Form A x Digital Output oon Digital Output e dwBoardNo 1 2 37 EI PCIM512_Driverlnit D Digital Output Data DDDD saasa PCIM512_DetectCards fi Digial Input e Click Digital Output 0xDDDD to write to D O amp Read DI as follows write data is given in Digital Output Data 0xDDDD J Form JIL x Digital Output e dwBoardNo 1 2 3 fi PCIM512_Driverlnit jo Digital Output Data DDDD saasa PCIM512_DetectCards fi Digial Input saaan O Check that lowest 4 bits are equal 0 These 4 bits are battery status bits Refer to Sec 2 4 for more information e Click Digital Output 5555 to write 0x5555 to D O amp Read D I as follows J Forml O x Digital Output el dwBoardNo 1 2 3 fi PCIM512_Driverlnit jo Digital Output Data DDDD sanan PCIM512_DetectCards DA 5550 O Key in new dwBoardNo to read write to other PCI M512 Refer to Sec 3 1 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 Step 3 run SramTest of Delphi demo program as follows Sec 1 4 2 J Form Ol x Sram Write PCIM512_Driverlnit m dwBoardNo 1 2 37 fi PCIM512_DetectCards fi RAW Offset Address 0 Mode gt Byte Word Dword fi R W Sram Data 355 Sram Read e Click Sram Write to write data to SRAM offset address of SRAM is given in R W
26. the attribute of Parameters Get the data value from this Set parameter by user Keyword parameter after calling this before calling this function function Input Yes No Output No Yes Input Output Yes Yes Note All space of the parameters needs to be allocated first by user s program The return codes of DLL are defined as follows return code define PCI_NoError define PCI_DriverOpenError define PCI_DriverNoOpen define PCI_GetDriverVersionError define PCL_InstallIrqError define PCI_ClearIntCountError define PCI_GetIntCountError define PCI_RegisterApcError define PCI_RemovelrqError define PCI_FindBoardError define PCI_ExceedBoardNumber define PCI_ResetError define PCI_IrqMaskError define PCI_ActiveModeError define PCI_GetActiveFlagError define PCI_ActiveFlagEndOfQueue define PCI_BoardNolsZero define PCI_BoardNoExceedFindBoards VD o JA NN FP WN ra CH bet e e 2 bet Feat ND fF WN ra O PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 27 The defined DLL functions are given as follows Functions of test Refer to Sec 3 2 float CALLBACK PCIM512_FloatSub float fA float fB short CALLBACK PCIM512_ShortSub short nA short nB int CALLBACK PCIM512_IntSub int iA int iB DWORD CALLBACK PCIM512_GetDllVersion void Functions of Driver Initialization Refer to Sec 3 3 DWORD CALLBACK PCIM512_Driverlnit void DWORD CALLBA
27. unctionally compatible with 785 series boards with industrial type terminal blocks The relays are energized by applying a 5 volt signal to the appropriate relay channel on the 20 pin flat connector There are 16 enunciator LEDs for each relay they light when their associated relay is activated To avoid overloading your PC s power supply this board provides a screw terminal for external power supply Form C Relay Normally Open Normally Closed Com 20Pin cable 2 Note Channel 16 Form C Relay Relay Switching up to 0 5 A at 110 Vac or 1 A at 24 Voc PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 22 2 6 3 DB 24PR DB 24POR DB 24C DB 24PR 24 power relay 5 A 250 V DB 24POR 24 photo MOS relay 0 1 A 350 Vac DB 24C 24 open collector 100 mA per channel 30 V max The DB 24PR 24 channel power relay output board consists of 8 Form C and 16 Form A electromechanical relays for efficient switching of loads by programmed control The contact of each relay can control a 5 A load at 250 Vac 30 Voc The relay is energized by applying a 5 volt signal to the appropriate relay channel on the 20 pin flat cable connector just uses 16 relays or 50 pin flat cable connector OPTO 22 compatible for DIO 24 series Twenty four enunciator LEDs one for each relay light when their associated relay is activated To avoid overloading your PC s power supply this board needs a 12
28. wDeviceld dwSubVendorld dwSubdeviceld eo Parameter dwBoardNo Input PCI M512 M512U board number start from 1 dwVendorlD output vendor ID of this board dwDevicelD output device ID of this board dwSubVendorlD output sub vendor ID of this board dwSubDevicelD output sub device ID of this board e Return 0 This is a valid board no gt All return IDs are valid Others This is not a valid board no gt All return IDs are invalid e Note 1 Call PCIM512_Driverlnit before calling this function 2 Call PCIM512_OpenBoard before calling this function 3 Call PCIM512_DetectBoards to detect all PCI M512 boards 4 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 34 3 3 5 PCIM512_ReadBoardStatus Description This subroutine will detect the DLL open status of PCI M512 M512U boards Syntax DWORD PCIM512_ReadBoardStatus DWORD dwBoardNo Parameter dwBoardNo Input PCI M512 M512U board number Return 0 The DLL of the board dwBoardNo is not opened 1 The DLL of the board dwBoardNo is opened Note 1 Call PCIM512_Driverlnit before calling this function PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 35 3 3 6 PCIM512 CloseBoard Description This subroutine will close the PCI M512 M512U kernel driver and release the resource for the device
29. x DWORD PCIM512_WriteSramWord dwBoardNo dwOffset Data Parameter dwBoardNo Input Board number from 1 to N dwOffset Input Offset address of SRAM from 0 to Ox7fffe Data Input One word of data 16 bit Return 0 Write OK PCI_DriverNoOpen Kernel driver not found PCI_BoardNolsZero dwBoardNo is O it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N Note 1 Call PCIM512_DetectBoards before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 38 3 4 3 PCIM512 WriteSramDword Description Write one dword 32 bit data to SRAM of PCI M512 M512U Syntax DWORD PCIM512_WriteSramDword dwBoardNo dwOffset Data Parameter dwBoardNo Input Board number from 1 to N dwOffset Input Offset address of SRAM from 0 to Ox7fffc Data Input One dword of data 32 bit Return 0 Write OK PCI_DriverNoOpen Kernel driver not found PCl_BoardNolsZero dwBoardNo is 0 it must be in the range of 1 N PCI BoardNoExceedFindBoards dwBoardNo gt N Note 1 Call PCIM512_DetectBoards before calling this function 2 Call PCIM512_ReadBoardld to identify the detected PCI M512 M512U boards Refer to Sec 2 2 for more information PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 39 3 4 4 PCIM512_ReadSramByte Descript
30. y of digital I O operations The subroutines in PCIM512 DLL are easy to understand as its name suggests for It provides powerful easy to use subroutines for developing your data acquisition application Your program can easily call these DLL functions by VC VB Delphi and BORLAND C Builder To speed up your developing process some demonstration source programs are provided Please refer to the following user manuals you could fine them in the companion CD NAPDOS PCI Manual e PCI_ISA_PnP_Driver_Installation_in_Win9x_2K_XP pdf Install the PnP Plug and Play driver for PCI card under Windows 95 98 e Software_Installation_Guide_in_Win32 pdf Install the software package under Windows 95 98 NT XP e Calling DLL functions _in_VB_VC_Delphi_BCB pdf Call the DLL functions with VC 6 VB6 Delphi3 and Borland C Builder 3 e TroubleShooting_PCLISA_in_Win32_Resource_Conflict pdf Check the resources I O Port address IRQ number and DMA number for add on cards under Windows 95 98 NT PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 __ 25 3 0 Program Architecture PCIM512_Driverlnit PCIM512_DetectCards PCIM512_ReadSramDword PCIM512_WriteSramDword PCIM512_DriverClose Function Call into DLLs Development Toolkit Services Call into Kernel Mode Device Control PCI M512 User Manual Ver 2 7 Jun 2010 PMH 017 27 26 In this chapter we use some keywords to indicate

Download Pdf Manuals

image

Related Search

Manual manual manualslib manual car manuale digitale manually meaning manual timesheet manual transmission manual wheelchair manually update your device drivers windows manual arts high school manual for courts martial manual definition manual labor manual lawn mower manual muscle testing manually register devices with autopilot manual muscle testing grades manualidades manual transfer switch manual therapy cpt code manual blood pressure cuff manual transmission cars for sale manual handling manual digital manual autopilot enrollment

Related Contents

Įrenginio ar sistemos  MultiGene Mini user's manual - 06-05-09  Carrier 19XL Refrigerator User Manual  Tripp Lite B136-004 video splitter  Télécharger le guide interrégional rétrocessions 2010    brp 取扱説明書  MAXI CURE 01-06-13  USE+MAINTENANCE BOOK  RCA DRC630N User's Manual  

Copyright © All rights reserved.
Failed to retrieve file