Manuel d'utilisation / d'entretien du produit EN-EIC-325-PCI du fabricant Omega Engineering
Aller à la page of 43
omega.com e-mail: info@omega.com For latest product manuals: omegamanual.info EN-EIC-325-PCI Four Axis PCI Encoder Inter face Card Shop online at U ser ’ s Guide.
Servicing Nor th America: U.S.A.: One Omega Drive, P.O. Box 4047 ISO 9001 Certified Stamford, CT 06907-0047 TEL: (203) 359-1660 FAX: (203) 359-7700 e-mail: info@omega.com Canada: 976 Bergar Laval (Quebec) H7L 5A1, Canada TEL: (514) 856-6928 FAX: (514) 856-6886 e-mail: info@omega.
1 FOUR AXIS ENCODER INTERFACE CARD M M M O O O D D D E E E L L L Version 2.01, Oct. 2003.
2 TABLE of CONTENTS Section Page 1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1 ENCODER INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.1.1 IPC . . . . . . . . . . . . . . . . . . . . . . . . . .
3 1. GENERAL DESCRIPTION • The EN-EIC-325-PCI handles four axes of user's encoders. Each user's encoder is directly attached to the Encoder Interface on the card. • The EN-EIC-325-PCI includes eleven logical inputs, and three general outputs.
4 1.1.3. SOFTWARE INPUTS a. Data Request to request an XPC update. For example, upon Data Request on the A axis, the following operation is done: XPC A ⇐ IPC A Notes: 1. Data Request may be applied on a single axis, or (all at once) on: axes pair (A+B or C+D), or all four axes.
5 2.2. PIN LAY-OUT The drawings of the input/output connections are in Appendix B. Encoder Inputs Function D-Type 44 pin No. Vcc 31 Index+ 17 GND 2 Index– 32 Sine– / Phase A– 18 Sine+ / Phase A+.
6 Logical Inputs Function D-Type 44 pin No. Input #2 16 Input #1 1 Input #3 19 Input #4 34 Input #5 37 Input #11 8 Input #7 26 Input #6 11 Input #8 29 Input #9 44 Input #10 15 GND 30 ENCODERS' EVENT SIGNALS AND GENERAL OUTPUTS Function D-Type 9 pin No.
7 3. SOFTWARE INTERFACE WITH THE CARD 3.1. INSTALLATION The main files and folders of the software package are as follows: Win95_98 Install.exe WRTdevN.VxD (Ten files: N=0,...,9) ImsEncPci.ocx VB VC WinNT WinRT.sys ImsEic325-PCINT4.reg Win2K EIC325_P.
8 The VB folders The VB folders include an illustration program, which is essential for any user, not only the VB programmer. For any environment you are using – refer to the relevant VB folder. Note: If Visual Basic is NOT installed on your computer, then before running the (VB produced) program EncPciTest.
9 3.1.1. Windows The various Windows folders supply the files required for the driver installation. The Win95/98 driver includes an ActiveX control. The WinNT/2K/XP drivers include two options: an ActiveX control and a DLL. The DLL uses the popular ‘stdcall’ calling convention recognizable by VB, VC, Delphi etc.
10 WinNT/2K/XP • ActiveX Control Copy the .ocx file from your ‘OCX for WinNT_2K_XP’ folder to your WinSysPath folder and register it by Start, Run, 'regsvr32 WinSysPath ImsEncPci.ocx'. • DLL Copy the .dll file from your ‘DLL for WinNT_2K_XP’ folder to your WinSysPath folder.
11 3.1.2. VB Select the ‘VB’ folder that corresponds to your driver installation (section 3.1.1). You'll find here a full illustration in VB 5.0 (named "EncPciTest") that demonstrates how to use the various functions to communicate with the card.
12 • The display of the Hardware EventFlags Output reflects what SHOULD be in these outputs analyzing the Software EventFlags Outputs as well as user's operations that may affect the Hardware EventFlags Output, as described in section 3.5.4, functions #22 and #24.
13 3.2. INTRODUCTION TO THE FUNCTIONS Each encoders pair is handled by a "chip": Chip #1 includes Encoder Interfaces A and B. Chip #2 includes Encoder Interfaces C and D. The following functions serve the DOS C/C++ programmer as well as the Windows programmer.
14 3.3. CARD LEVEL FUNCTIONS # Brief Description Name Arguments (in C Syntax) Full Description 1 Supply a ‘Card Handle’ to the n-th EN- EIC-325-PCI card (if exists). (First n is 0.) GetCardHandle (long* CardHandle , short CardIndex ) Call this function in loop in your initialization.
15 # Brief Description Name Arguments (in C Syntax) Full Description 5 Set Active Chip SetActiveChip (long CardHandle , short ChipNumber ) Makes the specified chip active. All the following functions refer to that active chip. 6 Get Active Chip GetActiveChip (long CardHandle , short* ChipNumber ) Gets the current active chip (Chip1 or Chip2).
16 3.4.2. I/O # Brief Description Name Arguments (in C Syntax) Full Description 8 Read the inputs of a chip, the EventFlags of its two encoders, and the Voltage Failure.
17 3.5. ENCODER LEVEL FUNCTIONS 3.5.1. RESOLUTION # Brief Description Name Arguments (in C Syntax) Full Description 10 Set Encoder Resolution SetEncoderResolution (long CardHandle , short EncoderNumber , short ClocksPerCycle ) Selects the appropriate resolution that fits user's encoder.
18 3.5.2. INDEX # Brief Description Name Arguments (in C Syntax) Full Description 12 Set Index Pulse Polarity SetIndexPulsePolarity (long CardHandle , short EncoderNumber , short Polarity ) Selects the polarity of the index (marker) pulse coming from user's encoder.
19 3.5.3. SETPOINT # Brief Description Name Arguments (in C Syntax) Full Description 16 Set Set Point SetSetPoint (long CardHandle , short EncoderNumber , long SetPoint ) Defines the Set Point Register (SPR). Reaching the SPR (i.e., meeting the condition IPC = SPR) may become the trigger of the Event Signal.
20 3.5.4. EVENT SIGNAL # Brief Description Name Arguments (in C Syntax) Full Description 18 Set Source of Encoder's EventFlag SetEncoderEventFlag Source (long CardHandle , short EncoderNumber , short EventFlagSource ) Selects a condition that becomes the trigger of the Event Signal.
21 22 Set Hold Mode of Hardware Encoder's EventFlag SetHoldEncoderEvent Flag (long CardHandle , short EncoderNumber , short OnOffMode ) Determines the "hold" characteristic of the hardware Event Signal: OnOffMode : Off: Hardware signal remains "as is" – no holding mechanism.
22 3.5.5. POSITION COUNTER # Brief Description Name Arguments (in C Syntax) Full Description 25 Reset (=clear) Position Counter ResetPositionCounter (long CardHandle , short EncoderNumber , short OutputsMirror ) Clears the Internal Position Counter (IPC) of one or two axes.
23 3.6. ARGUMENTS The constants of the arguments are available as follows: * In VB they are included in the example source file. * In VC they are in the EncPciConst.h file in the VC folder; refer to the ReadMe.txt file. * For DOS C/C++, the arguments, along with the headers of the functions, are in the file CPPEncPci.
24 #define TurnOn 1 #define TurnOff 0 // EnabledDisabledMode : #define SetEnabled 1 #define SetDisabled 0 // Polarity: #define ActiveOnHigh 1 #define ActiveOnLow 0.
25 APPENDIX A: SPECIFICATION Introduction A half-size PC card. Supports four optical encoders with either Square-wave or Sine output, both linear and rotary types. Directly connected to the encoders and also provides the excitation. Single / Multiple encoder pulses: Interpolation = 1, 2 or 4 (software selectable).
26 I/O Index input per each axis (indicating Marker/Home/Zero). The user may instruct the card to reset its counter and/or generate an "Event Signal" output upon recognizing the index input. 11 Logical Inputs. The inputs are TTL/CMOS compatible Schmidt trigger single ended.
27 Software Method of communication with PCI bus: I/O ports. Software included: An ActiveX control to communicate with the card in Win95/98/NT/2K/XP. For WinNT/2K/XP thereʼs also a DLL option instead of the ActiveX control. A basic example in Visual C and a detailed example in VB.
28 APPENDIX B: DRAWINGS Connector Wiring for the Inputs.
29 Connector Wiring for the Outputs.
30 APPENDIX C: CARD INSTALLATION ? ? Install your card only after driver installation (section 3.1.1). Win95/98 1. Shut down your PC (i.e., power off).
31 9. Click: Next 10. Wizard displays: Unsupported Device. Windows has not installed a driver for this device. This is normal either. Click: Finish WinNT 1. Shut down your PC (i.e., power off). 2. Insert the new card into a free PCI slot. 3. Turn on your PC.
32.
33.
34.
35.
36.
37.
38.
39 APPENDIX D: PRODUCT DEVELOPMENT Main Milestones in Product Development: • Dec. ʼ01: V1.00: Product launching. • Apr. ʼ02: V1.02: Support under WinNT/2K/XP (refer to section 3.1.1 & appendix C). • May ʼ02: V1.03: In addition to the OCX, a DLL is supplied too (WinNT/2K/XP only).
W ARRANTY / DISCLAIMER OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for a period of 13 months from date of purchase. OMEGA ’ s W ARRANTY adds an additional one (1) month grace period to the normal one (1) year product warranty to cover handling and shipping time.
M4272/0106 Where Do I Find Ever ything I Need for Pr ocess Measurement and Contr ol? OM EGA…Of Course! Shop online at omega.com TEMPERA TURE 䡺 ⻬ Thermocouple, RTD & Thermistor Probes, Connec.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Omega Engineering EN-EIC-325-PCI c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Omega Engineering EN-EIC-325-PCI - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Omega Engineering EN-EIC-325-PCI, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Omega Engineering EN-EIC-325-PCI va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Omega Engineering EN-EIC-325-PCI, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Omega Engineering EN-EIC-325-PCI.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Omega Engineering EN-EIC-325-PCI. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Omega Engineering EN-EIC-325-PCI ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.