background image

PEX/PIO/PISO-DA Series Card 

Analog Output Boards

 

User  Manual/  Ver.  3.1/  Oct.  2013/  PMH-0010-31/  Page:  37 

 

 

3.

 

  Hardware Installation 

 

Note!!   

It

s recommended to install driver first, since some operating system (such as Windows 2000) 

may ask you to restart the computer again after driver installation. This reduces the times to 
restart the computer. 
 

To install your PEX-DAx, PISO-DAxU and PIO-DAxU series card, complete the following steps: 

 

Step 1: Installing DAQ card driver on your computer first. 

 

 

 

 

 

 

 

 

 

 

 

Step 2: Configuring Card ID by the SW1 DIP-Switch. 

 

 

For 

detailed 

information 

about the driver installation, 

please  refer  to 

Chapter  4 

Software Installation.

 

For  detailed  information  about  the  card  ID  (SW1),  please 

refer to 

Sec. 2.7 Car ID Switch. 

 

Note!! The card ID function only supports PEX-DAx, 

PISO-DAxU

 

and PIO-DAxU (ver.1.1 or above)

.

 

ГК

 

Атлант

 

Инжиниринг

 – 

официальный

 

представитель

 

в

 

РФ

 

и

 

СНГ

 

+7(495)109-02-08 [email protected] www.bbrc.ru 

Summary of Contents for PIO-DA16

Page 1: ...nge 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 2013 by ICP DAS All rights are reserved TRADEMARK Names are used for identification only and may be registe...

Page 2: ...rupt Source 18 2 3 5 Multiple Interrupt Source 19 2 4 D I O BLOCK DIAGRAM 21 2 4 1 D I Port Architecture CON2 22 2 4 2 D O Port Architecture CON1 23 2 5 D A ARCHITECTURE 24 2 6 D A CONVERSION OPERATIONS 25 2 6 1 Output Range and Resolution 27 2 6 2 10 V Voltage Output 28 2 6 3 5 V Voltage Output 28 2 6 4 0 10 V Voltage Output 28 2 6 5 0 5 V Voltage Output 28 2 6 6 0 20 mA Current Output 29 2 6 7 4...

Page 3: ...ADDRESS 52 6 1 1 PIO_PISO EXE Utility for Windows 53 6 1 2 PIO_DriverInit 54 6 1 3 PIO_GetConfigAdressSpace 56 6 1 4 Show_PIO_PISO 57 6 2 THE ASSIGNMENT OF I O ADDRESS 58 6 3 THE I O ADDRESS MAP 60 6 3 1 RESET Control Register 61 6 3 2 AUX Control Register 61 6 3 3 Aux Data Register 62 6 3 4 INT Mask Control Register 62 6 3 5 Aux Status Register 63 6 3 6 Interrupt Polarity Register 63 6 3 7 Read W...

Page 4: ... 7 2 DEMO PROGRAM FOR DOS 71 APPENDIX DAUGHTER BOARD 73 A1 DB 37 and DN 37 73 A2 DB 8125 73 A3 DB 16P Isolated Input Board 74 A5 DB 16R Relay Board 75 A6 DB 24PR DB 24POR DB 24C Power Relay Board 76 ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 5: ... Page http www icpdas com root product solutions pc_based_io_board pci pio da4 html Documentation and Software for PIO DA series classic CD NAPDOS PCI PIO DA http ftp icpdas com pub cd iocard pci napdos pci pio da Documentation and Software for UniDAQ SDK CD NAPDOS PCI UniDAQ http ftp icpdas com pub cd iocard pci napdos pci unidaq Note If any of these items is missing or damaged contact the dealer...

Page 6: ...s from 10 V to 10 V and their current output range is from 0 to 20 mA In addition These cards also feature the following advantages by ICP DAS s innovation 1 Accurate and easy to use calibration ICP DAS provides the software calibration instead of the manual calibration so that no jumpers and trim pots are required anymore The calibration information can be saved in EEPROM for long term use 2 Indi...

Page 7: ...onnects directly to DB 16P DB 16R DB 24C DB 24PR and DB 24POR PISO DA16U DA8U DA4U only Built in DC DC converter with 3000 VDC isolation Supports both 5 V and 3 3 V PCI bus 2500 VDC bus type and power isolation protection Digital input port can be set to pull high or pull low Card ID function PIO DA16U DA8U DA4U PEX DA16 DA8 DA4 only Supports both 5 V and 3 3 V PCI bus for PIO DA16U DA8U DA4U Supp...

Page 8: ...N A PIO DA4U PIO DA8U PIO DA16U V1 0 0xE0 E4 E8 EC 0xF0 F4 F8 FC A GND CN3 5 10 15 24 29 N A PIO DA4U PIO DA8U PIO DA16U V1 1 0xE0 E4 E8 EC 0xF0 F4 F8 FC A GND CN3 5 10 15 24 29 Yes PIO DA4U PIO DA8U PIO DA16U V1 2 or above 0xE0 E4 A GND CN3 5 10 15 Yes PISO DA4U PISO DA8U PISO DA16U V1 3 or above 0xE0 E4 A GND CN3 5 10 15 24 29 Yes PEX DA4 PEX DA8 PEX DA16 V1 0 0xE0 E4 A GND CN3 5 10 15 Yes ГК Ат...

Page 9: ...0 1 Ω max Operating Mode Software Digital Input Channels 16 ch Compatibility 5 V TTL Input Voltage Logic 0 0 8 V max Logic 1 2 0 V min Response Speed 200 KHz 1 0 MHz Typical Digital Output Channels 16 ch Compatibility 5 V CMOS 5 V TTL Output Voltage Logic 0 0 1 V max 0 4 V max Logic 1 4 4 V min 2 4 V min Output Capability Sink 6 mA 0 33 V 2 4 mA 0 8 V Source 6 mA 4 77 V 0 8 mA 2 0 V Response Speed...

Page 10: ...Yes 4 bit I O Connector Female DB37 x 1 Male 20 bit ribbon x 2 Dimensions L x W 188 mmx 97 mm 188 mmx 97 mm Version 1 1 or above 180 mmx 97 mm Power Consumption 600 mA 5 V PEX DA4 PIO DA4U 800 mA 5 V PEX DA8 PIO DA8U 1400 mA 5 V PEX DA16 PIO DA16U 2200 mA 5 V PISO DA4U 2400 mA 5 V PISO DA8U 3000 mA 5 V PISO DA16U Operating Temperature 0 60 C Storage Temperature 20 70 C Humidity 5 85 RH non condens...

Page 11: ...ation 2 1 Board Layout PIO DAx Board Layout CON1 CON2 CON3 PCI BUS PIO DA16 PIO DA8 PIO DA4 1 2 19 20 1 2 19 20 DI DO Note CON1 16 channel D O CON2 16 channel D I CON3 4 8 16 channel D A converter voltage current output ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 12: ... 1 9 2 0 DI DO JP1 SW1 ON 1 2 3 4 PEX DA Board Layout CON1 CON2 CON3 PCI Express 1 2 1 9 2 0 1 2 1 9 2 0 DI DO JP1 SW1 ON 1 2 3 4 Note CON1 16 channel D O CON2 16 channel D I CON3 4 8 16 channel D A converter voltage current output SW1 Card ID JP1 Pull high pull low resisters for DI ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 13: ... DA series board and provides two interrupt sources The first is a 16 bit timer output INT0 and the other one is a 32 bit timer output INT1 The block diagram is shown below OUT0 CLK0 GATE0 Counter0 OUT1 CLK1 GATE1 Counter1 OUT2 CLK2 GATE2 Counter2 Vcc INT0 INT1 4MHz 8254 Timer Counter ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 14: ...g manner Refer to DEMO5 C and DEMO6 C 1 Read the new status of all interrupt signal sources 2 Compare the new status with the old status to identify the active signals 3 If INT0 is active service it 4 If INT1 is active service it 5 Save the new status to replace the old status Note If the interrupt signal is too short the new status may be the same as the old status In that situation the interrupt...

Page 15: ...el state normally and a high_pulse generated to interrupt the PC The priority of INT_CHAN_0 1 is the same If both of these signals are active at the same time then INT will only be active once at a time So the interrupt service routine has to read the status of both interrupt channels to per form a multiple channel interrupt Refer to Sec 2 3 for more information DEMO5 C for INT_CHAN_0 INT_CHAN_1 I...

Page 16: ...ated to interrupt the PC EN0 1 can be used to enable disable the INT_CHAN_0 1 in the following manner Refer to Sec 6 3 4 EN0 1 0 INT_CHAN_0 1 disabled EN0 1 1 INT_CHAN_0 1 enabled INV0 1 can be used to invert non invert INT0 1 in the following manner Refer to Sec 6 3 5 INV0 1 0 INT_CHAN_0 1 inverted state for INT0 1 INV0 1 1 INT_CHAN_0 1 non inverted state for INT0 1 As noted above if INT is fixed...

Page 17: ...V0 select the non inverted input b INT_CHAN_0 INT0 LOW INT_CHAN_0 generate a high_pulse now_int_state 0 now INT0 LOW else now_int_state 1 now INT0 HIGH don t have to generate high_pulse else now INT0 is changed to HIGH c INT_CHAN_0 INT0 HIGH now COUNT_H find a HIGH_pulse INT0 If inport wBase 7 1 1 the INT0 is still fixed in HIGH need to generate a high_pulse outportb wBase 0x2a 0 INV0 select the i...

Page 18: ...0 select the non inverted input d INT_CHAN_0 INT0 LOW INT_CHAN_0 generate a high_pulse now_int_state 0 now INT0 LOW else now_int_state 1 now INT0 HIGH don t have to generate high_pulse else now INT0 is changed to HIGH a INT_CHAN_0 INT0 HIGH now COUNT_H find a High_pulse INT0 If inport wBase 7 1 1 the INT0 is still fixed in HIGH need to generate a high_pulse outportb wBase 0x2a 0 INV0 select the in...

Page 19: ...ng edge can be detected using DEMO5 C Note When the interrupt is active the user program has to identify the active signals These signals may all be active at the same time so the interrupt service routine has to service all active signals at the same time INT0 and INT1 are active at the same time INT1 INT0 INT1 returns to normal INT0 and INT1 return to normal at the same time INT1 is active ГК Ат...

Page 20: ...tate int_c new_int_state now_int_state compare new_state to old_state if int_c 0x01 1 INT_CHAN_0 is active if new_int_state 1 0 INT0 change to low now INT0_L else INT0 change to high now INT0_H invert invert 1 generate high_pulse if int_c 0x02 2 INT_CHAN_1 is active if new_int_state 2 0 INT1 change to low now INT1_L else INT1 change to high now INT1_H invert invert 2 generate high_pulse now_int_st...

Page 21: ... diagram and block diagram are as follows Local Data Bus D I port CON2 16 bits 16 bits D O port CON1 16 bits 16 bits The D I Port can be connected to a DB 16P which is a 16 channel isolated digital input daughter board The D O Port can be connected to either a DB 16R or a DB 24PR The DB 16R is a 16 channels relay output board The DB 24PR is a 24 channels power relay output board ГК Атлант Инжинири...

Page 22: ...d status of a DI port is controlled by the RESET signal Refer to Sec 6 3 1 for more information about the RESET signal The RESET signal is in the Low state all DI operations are disabled The RESET signal is in the High state all DI operations are enabled D I buffer CKT Clock input Buffer input Data RESET CON2 disable ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales b...

Page 23: ...ed low The RESET signal is used to clear the DO states Refer to Sec 6 3 1 for more information about the RESET signal The RESET signal is in the Low state all DO channels are cleared to the low state The block diagram of DO is as follows D O buffer CKT Clock input input Latch Data RESET CON1 clear ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 24: ...t Output 12 Current Output 13 Current Output 14 Current Output 15 Voltage Output 15 Voltage Output 14 Voltage Output 13 Voltage Output 12 Voltage Output 11 Voltage Output 10 Voltage Output 9 Voltage Output 7 Voltage Output 6 Voltage Output 5 Voltage Output 4 Voltage Output 3 Voltage Output 2 Voltage Output 1 Voltage Output 0 Voltage Output 8 Amp Amp d0 d13 d14 d15 d0 d13 d14 d15 d0 d13 d14 d15 d0 ...

Page 25: ...utput so the user has to perform some calibration when changing from voltage to current Also if these VRs are changed the user has to re perform the calibration This procedure is complex and creates a heavy workload The PEX DA and PISO PIO DAxU series uses software calibration to replace this complex procedure in the following manner For each voltage output channel find two hex values MaxV n and M...

Page 26: ...95 8175 15965 If the user wants to send Vout volts to Channel n the calibrated hex value DaValue sent to D A converter can be calculated in the following way DeltaV n 20 0 MaxV n MinV n DeltaV n volts per count at channel_n DaValue Vout 10 0 DeltaV n MinV n DaValue Hex value to send to the D A pio_da16_da n DaValue send the DaValue to Channel n If the user wants to send Iout mA to Channel n the ca...

Page 27: ...x Value 0X0000 0X3FFF 0X2FFF 0X0FFF 0X1FFF 0X25D0 10 1V 10 1V 22mA 0V 5 05V 5 05V 5 05V 0V 22mA 0mA 4mA 10 1V Voltage Channel Output Current Channel Output The resolution for each range is as follows Configuration Equivalent Bits Resolution 10 V 10 V 14 bit 1 22 mV 0 V 10 V 13 bit 1 22 mV 5 V 5 V 13 bit 1 22 mV 0 V 5 V 12 bit 1 22 mV 0 mA 20 mA 13 bit 2 70 μA 4 mA 20 mA 13 bit 2 70 μA ГК Атлант Ин...

Page 28: ... will approximately be from 0x0fff to 0x2fff which means that the resolution is about 13 bits 2 6 4 0 10 V Voltage Output The voltage output for PEX DA and PISO PIO DAxU series cards is always in the range of 10 V 1 If the user needs to output a voltage in the range of 0 10 V the software calibration is the same as that described in Sec 2 6 Consequently Vout will be in the range of 0 10 V so the D...

Page 29: ...e software calibration is the same as that described in Sec 2 6 Iout will be in the range of 4 20 mA so the DaValue will approximately be from 0x2600 to 0x3fff which means that the resolution is about 13 bits 2 6 8 No VR and No Jumper Design In a conventional 12 bit D A board for example the A 626 A 628 there are many jumpers that allow the following functions to be performed 1 Selecting the refer...

Page 30: ...n as the A 626 A 628 Configuration Equivalent Bits Resolution 10 V 10 V 14 bit 1 22 mV 0 V 10 V 13 bit 1 22 mV 5 V 5 V 13 bit 1 22 mV 0 V 5 V 12 bit 1 22 mV 0 mA 20 mA 13 bit 2 70 μA 4 mA 20 mA 13 bit 2 70μA All these VRs and jumpers have been removed All calibrations can be performed using software All channel configurations can be selected using software meaning that there is no need to change a...

Page 31: ...quired to calibrate the voltage for channel_n are as follows Step 1 DaValue 0 Step 2 Send the DaValue to channel_n on the PIO PISO card Step 3 Measure the voltage of channel_n on the I 7017 If this value is 10 V then go to Step 5 Step 4 Increase the DaValue then return to Step 2 Step 5 MinV n DaValue 1 Step 6 DaValue 0x3fff Step 7 Send the DaValue to channel_n on the PIO PISO card Step 8 Measure t...

Page 32: ...f this value is 0 mA then go to Step 5 Step 4 Increase the DaValue the return to Step 2 Step 5 MinI n DaValue 1 Step 6 DaValue 0x3fff Step 7 Send the DaValue to channel_n on the PIO PISO card Step 8 Measure the current of channel_n on the I 7017 If this value is 20 mA than go to Step 10 Step 9 Increase the DaValue the return to Step 7 Step 10 MaxI n DaValue Note MinI n and MaxI n are described in ...

Page 33: ...apped to the accurate output value Step 5 Repeat Step 4 for each channel After this procedure the new data for MinV n MaxV n MinI n MaxI n will be stored in the onboard EEPROM DEMO10 EXE can be executed to back up the old calibration data to A DA16 DAT before a new calibration is performed If an error occurs while the new calibration is being performed DEMO11 EXE can be executed to download the da...

Page 34: ...mp AGND Output Current Max 5mA Load Internal External 2 6 11 Voltage Output Connection 2 6 12 Current Output Connection Load 14 bits Data D A Converter D0 D13 Vout Amp AGND Current Loop 0 20mA External Pow er Supply 9 36V Internal External ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 35: ...is 0x0 For detail SW1 Card ID settings please refer to Table 2 7 Table 2 7 Default Settings OFF 1 ON 0 Card ID Hex 1 ID0 2 ID1 3 ID2 4 ID3 0x0 ON ON ON ON 0x1 OFF ON ON ON 0x2 ON OFF ON ON 0x3 OFF OFF ON ON 0x4 ON ON OFF ON 0x5 OFF ON OFF ON 0x6 ON OFF OFF ON 0x7 OFF OFF OFF ON 0x8 ON ON ON OFF 0x9 OFF ON ON OFF 0xA ON OFF ON OFF 0xB OFF OFF ON OFF 0xC ON ON OFF OFF 0xD OFF ON OFF OFF 0xE ON OFF O...

Page 36: ...PISO DA Series Card Analog Output Boards User Manual Ver 3 1 Oct 2013 PMH 0010 31 Page 36 2 8 Pin Assignments ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 37: ...X DAx PISO DAxU and PIO DAxU series card complete the following steps Step 1 Installing DAQ card driver on your computer first Step 2 Configuring Card ID by the SW1 DIP Switch For detailed information about the driver installation please refer to Chapter 4 Software Installation For detailed information about the card ID SW1 please refer to Sec 2 7 Car ID Switch Note The card ID function only suppo...

Page 38: ... 3 1 Oct 2013 PMH 0010 31 Page 38 Step 3 Shut down and power off your computer Step 4 Remove all covers from the computer Step 5 Select an empty PCI PCI Express slot ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 39: ... 31 Page 39 Step 6 Remove the PCI PCI Express slot cover form the PC Step 7 Remove the connector cover form the DAQ card Step 8 Carefully insert your DAQ card into the PCI PCI Express slot ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 40: ...0 Replace the computer cover Step 11 Power on the computer Confirm the PEX DAx PISO DAxU and PIO DAxU series card is mounted on the motherboard Follow the prompt message to finish the Plug Play steps please refer to Chapter 4 Software Installation ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 41: ...he recommended installation procedure for Windows is given in Sec 4 1 4 3 4 1 Driver Installing Procedure Follow these steps Step 1 Run the companion CD Insert the companion CD into the CD ROM driver and wait a few seconds until the installation program starts automatically If it does not start automatically for some reason then please double click the file NAPDOS AUTO32 EXE on the CD Step 2 Click...

Page 42: ...ease install the appropriate driver for your OS 1 Click the item UniDAQ 2 Click the item DLL for Windows 2000 and XP 2003 Vista 32 bit 3 Double Click UniDAQ_Win_Setup_x x x x_xxxx exe file in the Driver folder ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 43: ... link and then click the Next button 10 Select No I will restart my computer later and then click the Finish button For detailed information about the UniDAQ driver installation please refer to UniDAQ DLL Software Manual The user manual is contained in CD NAPDOS PCI UniDAQ Manual http ftp icpdas com pub cd iocard pci napdos pci unidaq manual 4 2 PnP Driver Installation Step 1 Turn off the computer...

Page 44: ... find the new card and then continue to finish the Plug Play steps Note Some Windows OS will load the driver automatically to complete the installation at boot Step 3 Select Install the software automatically Recommended and click the Next button ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 45: ...oards User Manual Ver 3 1 Oct 2013 PMH 0010 31 Page 45 Step 4 Click the Finish button Step 5 Windows pops up Found New Hardware dialog box again ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 46: ...is correct on the computer as follows Step 1 Select the 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 Step 3 Check the PEX DAx PISO DAxU and PIO DAxU series card which listed correctly or not as illustrated below ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www b...

Page 47: ...elf test you must complete the hardware and driver installation For detailed information about the hardware and driver installation please refer to Chapter 3 Hardware Installation and Chapter 4 Software Installation 5 1 Self Test Wiring 5 1 1 DIO Test Wiring 1 Prepare for device One CA 2002 optional cable 2 Use the CA 2002 to connect the CON1 with CON2 on board CA 2002 CON1 CON2 ГК Атлант Инжинири...

Page 48: ...device One DN 37 optional wiring terminal board One CA 3710 optional cable Digital Multi Meter 2 Connect a DN 37 to the CON3 3 Connect the positive probe of Multi meter to VO_0 Pin 0 and then the negative probe of Multi meter to A GND Pin 05 CON3 ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 49: ... path after completing installation Default Path C ICPDAS UniDAQ Driver Double click the UniDAQUtility exe Note The PEX DAx software is fully compatible with the PIO DAxU series software Double Click 1 Confirm the PIO DA series card had successfully installed to PC It starts from 0 2 Click this button to start test 3 ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales b...

Page 50: ... Input Function test result Select the Port 0 Check channel 0 2 4 6 6 5 Click Digital Output item 4 Select the Port 0 8 The corresponding D I becomes red for channel 0 2 4 6 of D O is ON 9 Click Digital Input item 7 PASS ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 51: ... the DA value because of the resolution limit of meter or the measurement error 4 995 Check the value on multi meter they should be identical to the values set in program 19 Click Analog Output item 14 15 16 17 Select the Channel 0 Select the 10V Type the voltage value Click this button 18 PASS ГК Атлант Инжиниринг официальный представитель в РФ и СНГ 7 495 109 02 08 sales bbrc ru www bbrc ru ...

Page 52: ...s Table 6 1 PIO DA4 PIO DA8 PIO DA16 PIO DA4 PIO DA8 PIO DA16 PIO DA4U PIO DA8U PIO DA16U PISO DA4U PISO DA8U PISO DA16U PEX DA4 PEX DA8 PEX DA16 Version 1 0 3 0 4 0 above 1 0 above 1 0 above 1 0 above 1 0 above Vendor ID 0xE159 0xE159 0xE159 0xE159 0xE159 0xE159 Device ID 0x02 0x01 0x01 0x01 0x01 0x01 Sub Vendor ID 0x80 0x4180 0x4180 0x4180 0x4180 0x4180 Sub Device ID 0x04 0x00 0x00 0x00 0x00 0x0...

Page 53: ...ls of how to identify the PEX DAx PISO DAxU and PIO DAxU series card of ICPDAS data acquisition boards based on the Sub vendor Sub device and Sub Aux ID are given in Table 6 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 6 1 ГК Ат...

Page 54: ...he PCI Plug Play mechanism The function locates all PIO PISO series cards installed in this system and save the relevant resource information in the library Sample program 1 Detect all PEX PISO PIO DA series cards installed in this PC Step 1 Detect all PEX PISO PIO DAx series cards installed in this PC wSubVendor 0x80 wSubDevice 4 wSubAux 0x00 For PIO DA4 8 16 series cards wRetVal PIO_DriverInit w...

Page 55: ...d PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 Step 2 Save the resource information for all PIO PISO cards installed in this PC printf n for i 0 i wBoards i PIO_GetConfigAddressSpace i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf nCard_ d wBase x wIrq x subID x x x SlotID x x i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf ShowPioPiso wSubVen...

Page 56: ...s card Detect the configuration address space for your PEX PISO PIO DA series cards Step 1 Detect all PEX PISO PIO DA series cards wSubVendor 0x80 wSubDevice 4 wSubAux 0x00 For PIO_DA4 8 16 series cards wRetVal PIO_DriverInit wBoards wSubVendor wSubDevice wSubAux printf There are d PIO DA16 8 4 Cards in this PC n wBoards Step 2 Save the resource information for all PEX PISO PIO DA cards installed ...

Page 57: ...ed in the PIO H include file The code for the demo program is as follows Detect all PIO_PISO series cards installed in this PC wRetVal PIO_DriverInit wBoards 0xff 0xff 0xff printf nThere are d PIO_PISO Cards in this PC wBoards if wBoards 0 exit 0 printf n for i 0 i wBoards i PIO_GetConfigAddressSpace i wBase wIrq wSubVendor wSubDevice wSubAux wSlotBus wSlotDevice printf nCard_ d wBase x wIrq x sub...

Page 58: ... is difficult to find the card number The easiest way to identify which card is card_0 is to use the wSlotBus and wSlotDevice functions in the following manner Step 1 Remove all PEX PISO PIO DA series cards from the PC Step 2 Install a PEX PISO PIO DA series card into PCI_slot1 on the PC and then run PIO_PISO EXE Record the results shown for wSlotBus1 and wSlotDevice1 Step 3 Remove all PEX PISO PI...

Page 59: ...ord all wSlotBus and wSlotDevice information for all slots in the PC This mapping is fixed for each PC and can then be used to identify a specific PIO PISO card in the following manner Step 1 Record all wSlotBus and wSlotDevice information Step 2 Use the PIO_GetConfigAddressSpace function to retrieve the wSlotBus and wSlotDevice information for the specified card Step 3 The specified PIO PISO card...

Page 60: ...0 Read 8254 Counter0 Write 8254 Counter0 wBase 0xc4 Read 8254 Counter1 Write 8254 Counter1 wBase 0xc8 Read 8254 Counter2 Write 8254 Counter2 wBase 0xcc Read 8254 control word Write 8254 control word wBase 0xd4 Read the Card ID Reserved wBase 0xe0 Read the Low byte of D I DA_0 chip select wBase 0xe4 Read the High byte of D I DA_1 chip select wbase 0xe8 Read the Low byte of D I for PEX PIO DA only D...

Page 61: ... before any DI DO command applications are initiated For example outportb wBase 1 RESET High all D I O are enable now outportb wBase 0 RESET Low all D I O are disable now 6 3 2 AUX Control Register Read Write wBase 2 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Aux7 Aux6 Aux5 Aux4 Aux3 Aux2 Aux1 Aux0 Aux 0 this Aux is used as a D I Aux 1 this Aux is used as a D O When the PC is first turned on ...

Page 62: ... Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 0 0 EN1 EN0 EN0 0 Disable INT0 as an interrupt signal Default EN0 1 Enable INT0 as an interrupt signal EN1 0 Disable INT1 as an interrupt signal Default EN1 1 Enable INT1 as an interrupt signal For example outportb wBase 5 0 Disable all interrupt outportb wBase 5 1 Enable interrupt of INT0 outportb wBase 5 2 Enable interrupt of INT1 outportb wBase 5 3 Enable both i...

Page 63: ... 3 for more information 6 3 6 Interrupt Polarity Register Read Write wBase 0x2A Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 0 0 INV1 INV0 INV0 1 0 select the inverted signal from INT0 1 INV0 1 1 select the non inverted signal from INT0 1 For example outportb wBase 0x2a 0 Select the inverted input from both channels outportb wBase 0x2a 3 Select the non inverted input from both channels ...

Page 64: ...terrupt on terminal count 001 mode1 programmable one shot 010 mode2 rate generator 011 mode3 square wave generator 100 mode4 software triggered pulse 101 mode5 hardware triggered pulse SC1 SC0 00 counter0 01 counter1 10 counter2 11 read back command RL1 RL0 00 counter latch instruction 01 read write low counter byte only 10 read write high counter byte only 11 read write low counter byte first the...

Page 65: ...cLow outportb wBase 0xc4 cHigh return NoError WORD pio_da16_c2 char cConfig char cLow char cHigh COUNTER_2 outportb wBase 0xcc cConfig outportb wBase 0xc8 cLow outportb wBase 0xc8 cHigh return NoError 6 3 8 Read Card ID Register Read wBase 0xd4 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 ID3 ID2 ID1 ID0 For example wCardID inportb wBase 0xd4 read Card ID 0x0 0x15 Note The Card ID funct...

Page 66: ...e4 Read the D I state DI15 DI8 wDiValue wDiHiByte 8 wDiLoByte Refer to the DEMO2 C file for more information 6 3 10 Digital Output Register Write wBase 0xf8 Low byte of the D O port Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 Write wBase 0xfc High byte of the D O port Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 For examp...

Page 67: ...A output channel 6 1 1 D A output channel 7 wbase 0xe8 DA_2 0 0 D A output channel 8 0 1 D A output channel 9 1 0 D A output channel10 1 1 D A output channel11 wbase 0xec DA_3 0 0 D A output channel12 0 1 D A output channel13 1 0 D A output channel14 1 1 D A output channel15 For example outportb wBase 0xf0 wDaValue output the low byte for D A data outportb wBase 0xf4 wDaValue 8 0x02 output the hig...

Page 68: ...ll be buffered 2 Select the D A converter Start the conversion For example outportb wBase 0xf0 wDaValue output low byte of D A data outportb wBase 0xf4 wDaValue 8 0x02 output high byte of D A data and select channel 2 on this converter outportb wBase 0xe0 0 select DA_0 after this procedure wDaValue will be sent to channel_2 pio_da16_da 2 wDaValue send wDaValue to channel_2 void pio_da16_da char cC...

Page 69: ...kage you have selected Win98 Me NT 2K and 32 64 bit winXP 2003 Vista 7 8 Once driver installation is complete the related demo programs and development library and declaration header files for different development environments will be presented as follows Demo Program for PIO DA Series Classic Driver The demo program of PIO DA series is contained in CD NAPDOS PCI PIO DA DLL_OCX Demo http ftp icpd...

Page 70: ...i VB net VC net VB and VC demo programs with source code Analog Input Pacer Analog Input Pacer Continue Analog Input Pacer Scan Analog Input Pacer Scan Continue Analog Input Pacer Scan EXT Analog Input Polling Analog Output Analog Output Current Digital I O Digital I O by Card ID For detailed information about the DLL function and demo program of the UniDAQ please refer to UniDAQ DLL Software Manu...

Page 71: ...del library file MSC LIB Huge PIO H MSC declaration file MSC LIB Huge MSCPIO_H LIB MSC huge model library file BC for BC 3 xx or above BC LIB Large PIO H BC declaration file BC LIB Large BCPIO_L LIB BC large model library file BC LIB Huge PIO H BC declaration file BC LIB Huge BCPIO_H LIB BC huge model library file 7 2 Demo Program for DOS The related DOS software and demos are located on the CD as...

Page 72: ...t source DEMO6 EXE Waveform generator without calibration DEMO7 EXE Waveform generator with calibration DEMO8 EXE D A hex value output without calibration DEMO9 EXE D A hex value output with calibration DEMO10 EXE Save EEPROM data to file DEMO11 EXE Download EEPROM data from file DEMO12 EXE User software calibration DEMO13 EXE Factory calibration Note The calibration demos programs can only be use...

Page 73: ...via pin to pin DN 37 The DN 37 is a general purpose daughter board for DB 37 pins with DIN Rail Mountings They are also designed for easy wire connection via pin to pin A2 DB 8125 The DB 8125 is a general purpose screw terminal board and is designed for easy wiring The DB 8128 uses one DB 37 and two 20 pin flat cable headers DN 37 DN 37 DB 8125 DB 37 ГК Атлант Инжиниринг официальный представитель ...

Page 74: ...nsing 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 DB 16P V V 20 Pin cable D I PEX DA PISO DA PIO DA D I AC or DC Signal 0 V 24 V Opto Isolated DB 16P R PEX DA...

Page 75: ...d by applying 5 voltage signal to the appropriate relay channel on the 20 pin flat connector There are 16 enunciator LEDs for each relay 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 Note Channel 16 Form C Relay Relay Switching up to 0 5 A at 110 VAC 1 A at 24 VDC DB 16R PEX DA PISO DA PIO D...

Page 76: ...in flat cable connector OPTO 22 compatible for the DIO 24 series There are 24 LEDs one for each relay which are illuminated when their associated relay is activated To avoid overloading the power supply of your PC this board requires a 12 VDC or 24 VDC external power supply Note 50 Pin Connector OPTO 22 compatible for DIO 24 48 144 and PIO D96 144 48 24 20 Pin connector for 16 ch D O board A 82x A...

Reviews: