Omega Engineering EN-EIC-325-PCI manual

Page 14

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. Actually, the EncPciTest program simulates card's response and concludes what Hardware EventFlags Output the card should supply.

The card reflects in its Hardware General Outputs the status of its software INPUTS.

Clicking "Write" writes into card's software inputs the desired status of card's Hardware General Outputs.

The desired status of card's Hardware General Outputs may be set by clicking a specific output (1, 2 or 3). However, the output is NOT passed immediately to the card. Click "Write" to validate the new status, or "Undo" to leave out the last change(s).

3.1.3.VC

Select the ʻVCʼ folder that corresponds to your driver installation (section 3.1.1). This folder includes four elements:

The file ReadMe.txt

The file EncPciConst.h

The file EncPciFunctions.h

The subfolder EncPciBasicTest

The first item (ReadMe.txt) includes detailed instructions how to use the ActiveX control or the DLL in Visual C. In order to follow these instructions, you'll need the second and third items (EncPciConst.h and EncPciFunctions.h). The fourth (last) item (the subfolder EncPciBasicTest) includes a sample basic project that was created according to the instructions of ReadMe.txt.

3.1.4.CPP

Here you'll find the required files for the DOS C/C++ programmer.

The programmer should include EncPci.h in his source file, and EncPci.obj in his project.

A simple demo program is supplied. It reads continuously the four axes and displays their values.

3.1.5.More

This folder supplies more information for environments other than the above. The files EncPci.cpp and EncPci.h include the source code (in C++) of driver's functions in DOS. You may utilize this code in order to produce your own driver for your environment.

12

Image 14
Contents User’s Guide Servicing North America Model Table of Contents Section Encoder Interface Each Encoder Interface includes the following elementsSoftware Inputs Cards Hardware I/OEncoder Inputs PIN LAY-OUTFunction Type Pin No Encoders Event Signals and General OutputsLogical Inputs Installation CPPVB folders Page WinSysPath folder WinSysPath is Page Page Introduction to the Functions Card Level Functions Chip Level FunctionsAll the following functions refer to that active chip Brief Name Arguments in C Syntax Full DescriptionSetActiveChip GetActiveChipBrief Description Name InputsShort EncoderNumber Short ClocksPerCycle BriefArguments in C Syntax Full Description Short EncoderNumberGetIndexPulsePolarity SetIndexPulsePolarityShort Polarity CounterSetPoint SetSetPointLong SetPoint GetSetPointGetEncoderEventFlag SetEncoderEventFlagSource PolarityGetHoldEncoderEvent SetHoldEncoderEventFlag ClearEncoderEventReadPositionCounter ResetPositionCounterShort OutputsMirror Long* PositionCounterAvailable only for RequestPositionCounter Polarity Introduction Encoder CountersSine wave signal Input Signals from the EncodersSquare wave signal GeneralSoftware GeneralConnector Wiring for the Inputs Connector Wiring for the Outputs Next YesWinNT FinishPage Page Page Page Page Page Page Appendix D Product Development WARRANTY/DISCLAIMER Shop online at omega.com