background image

 

2. Setup 

   

 

PIO-16/16B(PCI)H, PI-32B(PCI)H, PO-32B(PCI)H 

23

 

Step 5 Operation Checks 

You must make sure that the board and driver software operate normally.    By taking this step, you can 
make sure that the board has been set up correctly. 

Check Method 

Connect the board to a remote device to test the input/output and check the execution environment. 

Set the board in the default factory. 

To connect an external device, see Chapter 3 “External Connection”. 
 

Starting the Diagnosis Program 
Open the “Properties” page of the device that was used for the software initialization, and press the 
[Diagnosis] button. 

 

 

 

Summary of Contents for PI-32B(PCI)H

Page 1: ...Digital I O Board with Opto Isolation for PCI PIO 16 16B PCI H Digital Input Board with Opto Isolation for PCI PI 32B PCI H Digital Output Board with Opto Isolation for PCI PO 32B PCI H User s Guide CONTEC CO LTD ...

Page 2: ... or missing items contact your retailer Product Configuration List Board One of the followings 1 PIO 16 16B PCI H PI 32B PCI H or PO 32B PCI H First step guide 1 Disk 1 API PAC W32 1 Warranty Certificate 1 Serial Number Label 1 1 The bundled disk contains the driver software and User s Guide this guide PIO 16 16B PCI H Disk API PAC W32 Board First step guide First step guide Serial Number Label Wa...

Page 3: ...ii PIO 16 16B PCI H PI 32B PCI H PO 32B PCI H PI 32B PCI H PO 32B PCI H Disk API PAC W32 Board First step guide First step guide Serial Number Label Warranty Certificate Warranty Certificate ...

Page 4: ...ject to change without notice All relevant issues have been considered in the preparation of this document Should you notice an omission or any questionable item in this document please feel free to notify CONTEC CO LTD Regardless of the foregoing statement CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this...

Page 5: ...autions 6 Environment 7 Inspection 7 Storage 7 Disposal 7 2 SETUP 9 What is Setup 9 Using the Board under Windows Using the Driver Library API PAC W32 9 Using the Board under an OS Other than Windows 9 Step 1 Installing the Software 10 About the driver to be used 10 Select API DIO WDM 12 Step 2 Setting the Hardware 13 Parts of the Board and Factory Defaults 13 Setting the Board ID 16 Selecting the...

Page 6: ...evel Input 36 Connecting the Sink Type Output and Sink Output Support Input 37 4 FUNCTION 39 Data I O Function 39 Data Input 39 Data Output 39 Monitoring Output Data 39 Digital Filter Function 40 Digital Filter Function Principle 40 Set Digital Filter Time 40 Disabling enabling Interrupts 41 Selecting the Edge of input signals at which to generate an iterrupt 41 Clearing the Interrupt Status and I...

Page 7: ...re specifications 49 Block Diagram 53 Differences in board dimensions of PIO 16 16B PCI H 56 Differences between the PIO 16 16B PCI H No 7238x and PIO 16 16B PCI 56 Differences between the PI 32B PCI H and PI 32B PCI 57 Differences between the PO 32B PCI H and PO 32B PCI 57 ...

Page 8: ...nt external power supply can be used for each common pin as it is shared by 16 channels The PCI bus personal computer and the I O interface are isolated from each other by an opto coupler offering good noise immunity You can use all of the input signals as interrupt request signals You can also select the interrupt trigger edge of the input signal PIO 16 16B PCI H PI 32B PCI H The board has a digi...

Page 9: ...ared library and kernel version Various sample programs of gcc are provided For more details on the supported OS applicable language and new information please visit the CONTEC s Web site LabVIEW support data acquisition library DAQfast for LabVIEW Available for downloading free of charge from the CONTEC web site This is a data collection library to use in the LabVIEW by National Instruments With ...

Page 10: ...PCA37P 1 5 1 5m PCA37P 3 3m PCA37P 5 5m Shielded Cable with Two 37 pin D Type Connectors PCA37PS 0 5P 0 5m PCA37PS 1 5P 1 5m PCA37PS 3P 3m PCA37PS 5P 5m Accessories Option Screw Terminal M3 x 37P EPD 37A 1 2 Screw Terminal M3 5 x 37P EPD 37 1 General Purpose Terminal DTP 3A 1 Screw Terminal DTP 4C 1 Signal Monitor for Digital I O CM 32L 1 1 A PCB37P or PCB37PS optional cable is required separately...

Page 11: ...evice is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office from which it was purchased This warranty is not applicable for scratches or normal wear but only for the electronic circuitry and original boards The warranty is not applicable if the device has been tampered with or damaged through abuse mistr...

Page 12: ...death and the destruction of equipment and resources Understand the meanings of these labels to operate the equipment safely DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury WARNING indicates a potentially hazardous situation which if not avoided could result in death or serious injury CAUTION indicates a potentially hazardous situation...

Page 13: ...th industrial alcohol Do not install or remove the board to or from the slot while the computer s power is turned on Otherwise the board may malfunction overheat or cause a failure Doing so could cause trouble Be sure that the personal computer or the I O expansion unit power is turned off Make sure that your PC or expansion unit can supply ample power to all the boards installed Insufficiently en...

Page 14: ...When storing this product keep it in its original packing form 1 Put the board in the storage bag 2 Wrap it in the packing material then put it in the box 3 Store the package at room temperature at a place free from direct sunlight moisture shock vibration magnetism and static electricity Disposal When disposing of the product follow the disposal procedures stipulated under the relevant laws and m...

Page 15: ...1 Before Using the Product 8 PIO 16 16B PCI H PI 32B PCI H PO 32B PCI H ...

Page 16: ...ng the bundled disk Driver Library API PAC W32 Taking the following steps sets up the software and hardware You can use the diagnosis program later to check whether the software and hardware function normally Step 1 Installing the Software Step 2 Setting the Hardware Step 3 Installing the Hardware Step 4 Initializing the Software Step 5 Operation Checks If Setup fails to be performed normally see ...

Page 17: ...digital I O driver API DIO WDM The following information is focused on setting up API DIO WDM If API DIO 98 PC using existing systems continue to use API DIO 98 PC Please note that the API DIO 98 PC does not support Windows 8 or later and the 64 bit OS Use the API DIO 98 PC If you are installing from disk attachments select all from the Installer later in this chapter and starts the execution envi...

Page 18: ... PAC W32 on your PC 2 The API PAC W32 Installer window appears automatically If the panel does not appear run drive letter AUTORUN exe 3 Click on the Install Development or Execution Environment button Before installing the software in Windows 2000 or later log in as a user with administrator privileges CAUTION ...

Page 19: ...ll option Usage of driver library 2 Select the Advanced Digital I O driver 3 Click on the Install button Clicking the API DIO button under the Detail displays detailed information about API DIO WDM and API DIO 98 PC Run the installation 1 Complete the installation by following the instructions on the screen 2 The Readme file appears when the installation is complete ...

Page 20: ...up even with the factory defaults untouched You can change board settings later Parts of the Board and Factory Defaults Figure 2 1 to Figure 2 3 shows the names of major parts on the board Note that the switch setting shown below is the factory default Figure 2 1 Component Locations PIO 16 16B PCI H Board No 8756x PIO PI PO xx PCI H SW1 BOARD ID Interface connector CN1 37 20 19 1 36 18 21 2 SW1 BO...

Page 21: ...Component Locations PIO 16 16B PCI H Board No 7238 No 7238A No 7238B Interface connector CN1 PIO PI PO xx PCI H SW1 BOARD ID 37 20 19 1 36 18 21 2 Supply power setting jumper JP1 JP4 1 2 3 JP1 to 4 SW1 Board ID setting switch BOARD ID 0 1 2 3 4 5 6 7 9 A B C D E F 8 ...

Page 22: ... Figure 2 3 Component Locations PI 32B PCI H PO 32B PCI H Interface connector CN1 PIO PI PO xx PCI H SW1 BOARD ID 37 20 19 1 36 18 21 2 Supply power setting jumper JP1 JP4 1 2 3 JP1 to 4 SW1 Board ID setting switch BOARD ID 0 1 2 3 4 5 6 7 9 A B C D E F 8 ...

Page 23: ...inguish them The board IDs can be set from 0 Fh to identify up to sixteen boards If only one board is used the original factory setting Board ID 0 should be used Setting Procedure To set the board ID use the rotary switch on the board Turn the SW1 knob to set the board ID as shown below Figure 2 4 Board ID Settings SW1 BOARD ID Board ID 0 Factory setting SW1 0 1 2 3 4 5 6 7 9 A B C D E F 8 ...

Page 24: ...8 mA PI 32B PCI H 156 mA PO 32B PCI H 200 mA Do not use both of the internal and external power supplies as doing so may cause their faults Setting procedure Use the on board jumpers JP1 to JP4 to select the internal or external power supply Figure 2 5 Setting the Opto coupler Driving Power Supply CAUTION Use internal power supply Use external power supply 0port input output 1port input output 2po...

Page 25: ...nector with your hands Otherwise the board may malfunction overheat or cause a failure If the terminals are touched by someone s hands clean the terminals with industrial alcohol Do not install or remove the board to or from the slot while the computer s power is turned on Otherwise the board may malfunction overheat or cause a failure Doing so could cause trouble Be sure that the personal compute...

Page 26: ...your PC The board cannot be properly installed unless the resources I O addresses and interrupt level for the board can be allocated Before attempting to install the board first determine what PC resources are free to use The resources used by each board do not depend on the location of the PCI bus slot or the board itself If you remove two or more boards that have already been installed and then ...

Page 27: ...ing the methods to follow in performing installations on different Windows operating systems are included on the bundled disk so refer to the files in the following folder Help Hwinst Eng ApiTool chm 1 The Found New Hardware Wizard will be started Select No not this time and then click the Next button 2 When the model name of hardware is displayed select Install the software automatically Recommen...

Page 28: ...in Step 4 To change the device name follow the setting procedure shown below Setting the device name 1 Run Device Manager From My Computer Control Panel select System and then select the Device Manager tab You can also open Device Manager by right clicking on My Computer and selecting Properties 2 The installed hardware appears under the CONTEC Devices node Open the CONTEC Devices node and select ...

Page 29: ... name you set here is used later when programming The initial device name that appears is a default value You can use this default name if you wish Make sure that you do not use the same name for more than one device You have now finished installing the initial setting of Software The name of the board you have just added is displayed PIO 16 16B PCI H PI 32B PCI H PO 32B PCI H ...

Page 30: ...the board has been set up correctly Check Method Connect the board to a remote device to test the input output and check the execution environment Set the board in the default factory To connect an external device see Chapter 3 External Connection Starting the Diagnosis Program Open the Properties page of the device that was used for the software initialization and press the Diagnosis button ...

Page 31: ...me intervals Output Port Mouse operation allows the data to output or display Interrupt Displays the number of interrupts detected bit by bit To use the function execution time measurement feature click on the Measurement Time button Enter the I O start port and the number of ports then press the measurement button The time for each execution of a function will be measured The name of the board yo...

Page 32: ...the diagnosis results while saving them in text format The Diagnosis Program performs board presence absence check driver file test board setting test and so on Before executing diagnosis report output unplug the cable from the board CAUTION Click on Show Diagnosis Report The name of the board you have just added is displayed PIO 16 16B PCI H PI 32B PCI H PO 32B PCI H ...

Page 33: ...gram has been created using the driver API functions If the board works with the Diagnosis Program it will work with other applications Review the program paying attention to the following points Check the return values of functions Refer to the source code of sample program Refer to the Troubleshooting in API TOOL WDM HELP APITOOL chm The name of the board you have just added is displayed PIO 16 ...

Page 34: ...ernal device to this board plug the cable from the device into the interface connector shown below Please refer to chapter 1 for more information on the supported cable and accessories Figure 3 1 Interface Connector and Applicable Cable Connector CN1 37 20 19 1 36 18 21 2 Interface connector CN1 Connector used 37 pin D SUB female connector DCLC J37SAF 20L9 mfd by JAE equivalent Thumb screw UNC 4 4...

Page 35: ...its negative side is connected to this pin When the internal power supply is selected this pin serves as the ground These pins are common to 16 input signal pins N1 When the external power supply is selected its negative side is connected to this pin When the internal power supply is selected this pin serves as the ground These pins are common to 16 output signal pins N C This pin is left unconnec...

Page 36: ...ernal power supply is selected this pin serves as the ground These pins are common to 16 input signal pins N C This pin is left unconnected Figure 3 3 Pin Assignments of Interface Connector PI 32B PCI H 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 N0 I 00 I 01 I 02 I 03 I 04 I 05 I 06 I 07 I 10 I 11 I 12 I 13 I 14 I 15 I 16 I 17 P0 N C 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 N1 I ...

Page 37: ...this pin When the internal power supply is selected this pin serves as the ground These pins are common to 16 input signal pins N C This pin is left unconnected Figure 3 4 Pin Assignments of Interface Connector PO 32B PCI H 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 N0 O 00 O 01 O 02 O 03 O 04 O 05 O 06 O 07 O 10 O 11 O 12 O 13 O 14 O 15 O 16 O 17 P0 N C 20 21 22 23 24 25 26 27 28 29 30 31 32...

Page 38: ...D5 D4 D3 D2 D1 D0 Output logical port 0 O 27 7 O 26 6 O 25 5 O 24 4 O 23 3 O 22 2 O 21 1 O 20 0 Output logical port 1 O 37 15 O 36 14 O 35 13 O 34 12 O 33 11 O 32 10 O 31 9 O 30 8 Note I xx and O xx represent input and output signals respectively where xx indicates a logical bit PI 32B PCI H Table 3 2 Relationships between Logical Ports Bits and Connector Signal Pins PI 32B PCI H D7 D6 D5 D4 D3 D2...

Page 39: ...4 O 15 13 O 14 12 O 13 11 O 12 10 O 11 9 O 10 8 Output logical port 2 O 27 23 O 26 22 O 25 21 O 24 20 O 23 19 O 22 18 O 21 17 O 20 16 Output logical port 3 O 37 31 O 36 30 O 35 29 O 34 28 O 33 27 O 32 26 O 31 25 O 30 24 Note O xx represent output signals respectively where xx indicates a logical bit The logical port and logical bit numbers are virtual port and bit numbers that enable programming i...

Page 40: ...couplers ready to accept current sinking output signals To drive the input section of the board therefore the on board internal power supply must be used or an external power supply is required The power requirement for each input pin is about 5 1 mA at 24 VDC about 2 6 mA at 12 VDC See the Selecting the internal or external power supply section to connect the jumpers depending on the power supply...

Page 41: ...PCI H Connecting a Switch Figure 3 6 An Example to use Input I00 PIO 16 16B PCI H PI 32B PCI H I 00 CN1 2pin Board side When the switch is ON the corresponding bit contains 1 When the switch is OFF by contrast the bit contains 0 Switch Input minus common CN1 1pin ...

Page 42: ...ximum The output section can also be connected to a TTL level input as it uses a low saturated transistor for output The residual voltage low level voltage between the collector and emitter with the output on is 0 5 V or less at an output current within 50 mA or at most 1 0 V at an output current within 100 mA To protect against surge voltage a Zener diode is connected to the output transistor Als...

Page 43: ...Input Figure 3 9 Connection Example of Output and TTL level Input Signal PIO 16 16B PCI H PO 32B PCI H Output plus common CN1 37pin Board When 1 is output to a relevant bit the corresponding LED comes on When 0 is output to the bit in contrast the LED goes out O 20 CN1 21pin 5 1kΩ Output plus common Output Output minus common TTL level input VCC Input board GND 2kΩ External power supply 12 24VDC ...

Page 44: ...e output output board and a sink output support input input board Refer to this connection example when you connect such boards to each other Figure 3 10 Example of Connecting the Sink Type Output and Sink Output Support Input External power supply 12 24VDC Output board Output plus common Output sink type Output minus common Input Compatible with sink output Input plus common Input board ...

Page 45: ...3 External Connection 38 PIO 16 16B PCI H PI 32B PCI H PO 32B PCI H ...

Page 46: ...put data is ON 1 is input to the relevant bit When the input data is OFF in contrast 0 is input to the relevant bit Data Output When 1 is output to the relevant bit the corresponding transistor is set to ON When 0 is output to the relevant bit in contrast the corresponding transistor is set to OFF When the PC is turned on all output are reset to 0 OFF Monitoring Output Data The PIO 16 16B PCI H an...

Page 47: ...ering It is set to 0 when the power is turned on Figure 4 2 shows the relationships between the digital filter time and the setting data Digital Filter Time sec 2n 8 x 106 n setting data 0 20 Setting Data n Digital Filter Time Setting Data n Digital Filter Time Setting Data n Digital Filter Time 0 00h The filter function is not used 7 07h 16µsec 14 0Eh 2 048msec 1 01h 0 25µsec 8 08h 32µsec 15 0Fh ...

Page 48: ...generate an iterrupt The input signal edge selection bit can be used to set the input logic for interruption bit by bit If you set an input signal edge selection bit to 0 an interrupt occurs when the input value to the corresponding bit changes from 0 to 1 at the fall of the input signal from High to Low If you set an input signal edge selection bit to 1 an interrupt occurs when the input value to...

Page 49: ...4 Function 42 PIO 16 16B PCI H PI 32B PCI H PO 32B PCI H ...

Page 50: ...ognition of input signals from being affected by noise or chattering For details refer to the help file Accessing the Help File The method to use in accessing the help file varies slightly depending on the version of the driver the development environment that is installed From the Start menu click CONTEC API PAC W32 API TOOL WDM HELP When this link does not exist From the Start menu click CONTEC ...

Page 51: ... sample program Monitoring rising falling trigger through a specified board Interrupt sample program Services interrupts of a specified board API DIO 98 PC sample program Sample program 1 Inputs digital data through a specified port Sample program 2 Outputs digital data through a specified port Sample program 3 Inputs outputs digital data from to a programmable board Sample program 4 Inputs digita...

Page 52: ... Manager by right clicking on My Computer and selecting Properties Select Windows Driver Package CONTEC and then click Change Remove contains the driver category name caio ccnt cdio csmc etc Uninstall the development environment Use My Computer Control Panel Programs and Features to uninstall the development environment In case of API WDM select CONTEC API WDM VerX XX Develop and then click Uninst...

Page 53: ...supplied as a compressed file linux dio cdioXXX tgz on the bundled disk Note XXX represents the driver version Mount the bundled disk as shown below copy the file to an arbitrary directory and decompress the file to install the driver For details on using the driver refer to readme txt and the help file in HTML format extracted by installation To install the driver log in as a superuser Decompress...

Page 54: ...grams have been prepared for specific basic applications Sample programs for each language are contained in the contec cdio samples directory For compiling them refer to the manual for the desired language Uninstalling the Driver To uninstall the driver use the uninstall shell script contained in the contec cdio directory For details check the contents of the script ...

Page 55: ...5 About Software 48 PIO 16 16B PCI H PI 32B PCI H PO 32B PCI H ...

Page 56: ...ative logic 1 Number of output signal channels 16 channels 1 common Output rating Output voltage 35VDC Max Output current 100mA par channel Max Residual voltage with output on 0 5V or less Output current 50mA 1 0V or less Output current 100mA Surge protector Zener diode RD47FM NEC or equivalent Response time 200µsec within Common I O address Any 32 byte boundary Interruption level 1 level use Max ...

Page 57: ... an expansion slot it does not work on a machine with a 3 3 V power supply alone 4 The size of board No 7238 No 7238A and No 7238B is 176 41 L x 105 68 H mm 5 The size of board No 8756x is 121 69 L x 105 68 H mm Board Dimensions Board No 8756x Board No 7238 No 7238A and No 7238B The standard outside dimension L is the distance from the end of the board to the outer surface of the slot cover mm 121...

Page 58: ...d Dielectric strength 500Vrms External circuit power supply 12 24VDC 10 Internal power 12VDC 240mA 2 Power consumption 5VDC 1200mA Max Using the internal power 5VDC 300mA Max Using the External power Operating condition 0 50 C 10 90 RH No condensation Allowable distance of signal extension Approx 50m depending on wiring environment Bus specification PCI 32bit 33MHz Universal key shapes supported 3...

Page 59: ...pply 12 24VDC 10 Internal power 12VDC 240mA 2 Power consumption 5VDC 1200mA Max Using the internal power 5VDC 300mA Max Using the External power Operating condition 0 50 C 10 90 RH No condensation Allowable distance of signal extension Approx 50m depending on wiring environment Bus specification PCI 32bit 33MHz Universal key shapes supported 3 Dimension mm 176 41 L x 105 68 H Weight 150g Standard ...

Page 60: ... Block Diagram PIO 16 16B PCI H Input Port 0 8 channels Group 0 Input Port 1 8 channels Group 1 Output Port 0 8 channels Group 2 Output Port 1 8 channels Group 3 Interrupt Control Circuit Control Circuits PIO 16 16B PCI H PCI BUS Opto coupler Transistors Opto coupler Opto coupler Opto coupler Transistors ...

Page 61: ...gure 6 2 Block Diagram PI 32B PCI H Interrupt Control Circuit Control Circuits PI 32B PCI H PCI BUS Input Port 0 8 channels Group 0 Opto coupler Input Port 1 8 channels Group 1 Input Port 2 8 channels Group 2 Input Port 3 8 channels Group 3 Opto coupler Opto coupler Opto coupler ...

Page 62: ...k Diagram PO 32B PCI H Output Port 0 8 channels Group 0 Output Port 1 8 channels Group 1 Output Port 2 8 channels Group 2 Output Port 3 8 channels Group 3 Control Circuits PO 32B PCI H PCI BUS Opto coupler Transistors Opto coupler Transistors Opto coupler Transistors Opto coupler Transistors ...

Page 63: ... the following differences from it 1 Different in the number of input signals available to interrupt requests PIO 16 16B PCI H All of 16 channels PIO 16 16B PCI 4 channels 2 Different in the expression to calculate the digital filter time n setting value PIO 16 16B PCI H 2n 8 x 106 PIO 16 16B PCI 2n 16 x 106 3 Protective elements provided for outputs PIO 16 16B PCI H Surge protector Zener diode PI...

Page 64: ...PCI 2n 16 x 106 3 Different in interrupt level resource allocation PI 32B PCI H Automatically allocates on interrupt level PI 32B PCI Uses a jumper switch to select whether to allocate interrupt levels 4 Different in board dimensions PI 32B PCI H 176 41 L x 105 68 H mm PI 32B PCI 176 41 L x 106 68 H mm Differences between the PO 32B PCI H and PO 32B PCI The PO 32B PCI H is connector pin compatible...

Page 65: ...18 Edition 3 9 31 Himesato Nishiyodogawa ku Osaka 555 0025 Japan https www contec com No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO LTD 11152018 11142003 Management No A 46 722 11152018_rev6 Parts No LYCH415 ...

Reviews: