background image

5. About Software

                                                                                                                                                   

42

PIO-16/16L(CB)H

Sample Programs - Examples

-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 PC card.

-Sample program 4

:

Inputs digital data from a specified port in the background.

-Sample program 5

:

Inputs/outputs digital data from/to a specified bit.

-Sample program 6

:

Services interrupts of a specified PC card.

-Sample program 7

:

Provides process control of a specified PC card.

-Sample program 8

:

Performs trigger monitoring of a specified PC card.

-Sample program 9

:

Inputs digital data through a specified port using BCD data.

-Sample program 10

:

Executes digital input (simple functions) at specified bits through a
specified port.

-Sample program 11

:

Services interrupts of a specified PC card (using an extended function).

-Sample program (Console):

Inputs/outputs digital data through a specified port.

[Sample program 1] 

[Sample program 2]

[Sample program 5]

[Sample program 9]

Содержание PIO-16/16L(CB)H

Страница 1: ...PC HELPER Digital I O Card with Opto Isolation for CardBus PIO 16 16L CB H User s Guide CONTEC CO LTD...

Страница 2: ...e is complete If you discover damaged or missing items contact your retailer Product Configuration List PC Card PIO 16 16L CB H 1 Cable with isolation unit PIO 16 16L CB H BOX and CB PM68 37 1 First s...

Страница 3: ...nge 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 CONTE...

Страница 4: ...Environment 7 Inspection 7 Storage 7 Disposal 7 2 SETUP 9 What is Setup 9 Using the PC card under Windows Using the Driver Library API PAC W32 9 Using the PC card under Windows Using Software other t...

Страница 5: ...cting a Device to a Connector 27 Connector Pin Assignment 28 Relationships between API PAC W32 Logical Ports Bits and Connector Signal Pins 29 Connecting Input Signals 30 Input Circuit 30 Connecting a...

Страница 6: ...Accessing the Help File 40 Using Sample Programs 41 Uninstalling the Driver Libraries 43 About Software for Linux 44 Driver Software Install Procedure 44 Accessing the Help File 45 Using Sample Progr...

Страница 7: ...vi PIO 16 16L CB H...

Страница 8: ...nment for the connector is compatible with the PIO 16 16L PCI H PIO 16 16L PCI and PIO 16 16L PM The response time has been improved to 200 sec or better Individual external power supplies can be used...

Страница 9: ...g the shared library used by gcc and Kylix the device driver module for each kernel version and the board PC card configuration program config CONTEC provides download services to supply the updated d...

Страница 10: ...5m Shielded cable with a 37 pin D SUB connectors on 2 Ends PCB37PS 0 5P 0 5m PCB37PS 1 5P 1 5m PCB37PS 3P 3m PCB37PS 5P 5m Flat Cable with a 37 pin D SUB Connector PCA37P 1 5 1 5m PCA37P 3 3m PCA37P...

Страница 11: ...rge only when this device 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 purchas...

Страница 12: ...estruction of equipment and resources Understand the meanings of these labels to operate the equipment safely DANGER DANGER indicates an imminently hazardous situation which if not avoided will result...

Страница 13: ...C card without pressing the locking spring as this may prevent the cable from being securely connected When you use the PC card in a noisy environment or are nervous about noise attach ferrite cores t...

Страница 14: ...cally as follows to use it safely Check that the bus connector and its cable have been plugged correctly The bus connector have no stain or corrosion Storage When storing this product keep it in its o...

Страница 15: ...1 Before Using the Product 8 PIO 16 16L CB H...

Страница 16: ...tware 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...

Страница 17: ...of this manual This chapter Step 2 Setting the Hardware Chapter 3 External Connection Chapter 5 About Software Chapter 6 About Hardware For using the PC card under an OS other than Windows and Linux s...

Страница 18: ...ng system as Windows XP Although some user interfaces are different depending on the OS used the basic procedure is the same Starting the Install Program 1 Load the CD ROM API PAC W32 on your PC 2 The...

Страница 19: ...PIO 16 16L CB H Selecting the Digital I O Driver 1 The following dialog box appears to select Driver Type and Install Type 2 Select Digital I O 3 Select Driver Help etc Full install 4 Click on the Ins...

Страница 20: ...how readme file check boxes are displayed When you are installing the software or hardware for the first time 1 Uncheck the Perform a hardware setup now 2 Click on the Finish button Go to Step 2 to se...

Страница 21: ...owing explains how to insert the PC card into the PC Part Names Figure 2 1 shows the names of each part of the PC card 1m PIO 16 16L CB H BOX PIO 16 16L CB H Connection cable PC card Vcc display LED I...

Страница 22: ...p face of the PC card as shown in Figure 2 2 CAUTION When plugging in the cable align the cable connector with the PC card socket and push firmly into place Do not apply any excessive force to the soc...

Страница 23: ...ented so that PC cards is inserted with the topside facing down Refer to the manual for your PC for instructions on how to remove the PC card Figure 2 3 Insert the PC Card CAUTION Take note of the fol...

Страница 24: ...rds in both slots at the same time This is because of the shape of the cable connector However you can use the PIO 16 16L CB H together with another PC card that does not require an external connector...

Страница 25: ...sses and interrupt level for the PC card can be allocated Before attempting to install the PC card first determine what PC resources are free to use The resources used by each PC card do not depend on...

Страница 26: ...Source folder The setup information INF file is contained in the following folder on the bundled CD ROM Windows XP 2000 INF Win2000 Dio PCCard Windows Me 98 INF Win95 Dio PCCard Example of specifying...

Страница 27: ...ialog box appears only indicating that the relevant driver has not passed Windows Logo testing and it can be ignored without developing any problem with the operation of the PC card In this case click...

Страница 28: ...of the Driver library Invoking API TOOL Configuration 1 Open the Start Menu then select Programs CONTEC API PAC W32 API TOOL Configuration 2 API TOOL Configuration detects the hardware automatically...

Страница 29: ...r settings the presence or absence of the PC card I O status and interrupt status Check Method Connect the PC card to a remote device to test the input output and check the execution environment For t...

Страница 30: ...e Diagnosis Program Select the PC card in the API TOOL Configuration windows then run the Diagnosis Program Run as the following screen The name of the PC card you have just added is displayed The nam...

Страница 31: ...pt Displays the number of interrupts detected bit by bit To use the wait time control feature click on the Wait Configuration button Use the feature when the wait time based on the DioWait or DioWaitE...

Страница 32: ...install folder Program Files CONTEC API PAC W32 The Diagnosis Program performs PC card presence absence check driver file test PC card setting test and so on CAUTION Before executing diagnosis report...

Страница 33: ...n to the following points Check the arguments to functions and their return values When the PC card is an isolated type it has a time lag for its response between the output by a function and the actu...

Страница 34: ...ice to a Connector To connect an external device to this PC card plug the cable from the device into the interface connector 37pin D SUB female shown below 37 36 21 20 19 18 2 1 Interface connector Co...

Страница 35: ...36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 P1 O 37 O 36 O 35 O 34 O 33 O 32 O 31 O 30 O 27 O 26 O 25 O 24 O 23 O 22 O 21 O 20 N1 I 00 to I 17 16 input signal pins Connect output signals from...

Страница 36: ...4 4 I 03 3 I 02 2 I 01 1 I 00 0 Input logical port 1 I 17 15 I 16 14 I 15 13 I 14 12 I 13 11 I 12 10 I 11 9 I 10 8 D7 D6 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...

Страница 37: ...er supply 12V to 24VDC Switch Disconnection Figure 3 3 Input Circuit The input circuits of interface blocks of the PIO 16 16L CB H is illustrated in Figure 3 3 The signal inputs are isolated by opto c...

Страница 38: ...ector output current sink type Driving the output section requires an external power supply The rated output current per channel is 100 mA at maximum The output section can also be connected to a TTL...

Страница 39: ...24VDC 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 Figure 3 6 An Example to use Output O 20 Example of Connection to TTL...

Страница 40: ...PC card and a sink output support input input PC card Refer to this connection example when you connect such PC cards to each other Output board Output plus common Output sink type Output minus commo...

Страница 41: ...3 External Connection 34 PIO 16 16L CB H...

Страница 42: ...nput 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 se...

Страница 43: ...to 20 14h Setting the digital filter time to 0 disables digital filtering It is set to 0 when the power is turned on Figure 4 2 shows the relationships between digital filter time settings and the act...

Страница 44: ...the input logic for interruption bit by bit If you set an interrupt edge select 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...

Страница 45: ...4 Function 38 PIO 16 16L CB H...

Страница 46: ...OL Japanese Readmeu html Version information on each API TOOL English APIPAC Each installer AIO DISK1 DISK2 DISKN AioWdm CNT DIO HELP HELP file Aio Cnt INF Each INF file for OS WDM Win2000 Win95 linux...

Страница 47: ...of specified bits Hardware digital filtering that prevents chattering For details refer to the help file The help file provides various items of information such as Function Reference Sample Programs...

Страница 48: ...t by API TOOL Configuration in the DrvNo and GrpNo fields Use these sample programs as references for program development and operation check The sample programs are stored in Program Files CONTEC API...

Страница 49: ...it Sample program 6 Services interrupts of a specified PC card Sample program 7 Provides process control of a specified PC card Sample program 8 Performs trigger monitoring of a specified PC card Samp...

Страница 50: ...k on the Start button on the Windows taskbar From the Start Menu select Settings Control Panel 2 Double click on Add Remove Programs in the Control Panel 3 Select CONTEC API DIO 98 PC xx from the appl...

Страница 51: ...iver API DIO LNX is supplied as a compressed file linux dio cdioXXX tgz on the bundled API PAC W32 CD ROM Note XXX represents the driver version Mount the CD ROM as shown below copy the file to an arb...

Страница 52: ...le Programs Sample programs 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 manu...

Страница 53: ...6 About Hardware 46 PIO 16 16L CB H...

Страница 54: ...common Output voltage 35 VDC Max Output rating Output current 100 mA par channel Max Residual voltage with output on 0 5V or less Output current 50 mA 1 0V or less Output current 100 mA Surge protect...

Страница 55: ...6 About Hardware 48 PIO 16 16L CB H PC card Dimensions 85 6mm 1 0m 54 0mm 5 0mm 9 0mm 24 0mm Connection cable Isolation circuit box PC card 77 0mm 87 0mm...

Страница 56: ...Port 0 8 points Group 0 External Ditigal Input Port 1 8 points Group 1 External Digital Output Port 0 8 points Group 2 External Digital Output Port 1 8 points Group 3 Interrupt Control Control Circuit...

Страница 57: ...Osaka 555 0025 Japan Japanese http www contec co jp English http www contec com Chinese http www contec com cn No part of this document may be copied or reproduced in any form by any means without pr...

Отзывы: