Omega Engineering EN-EIC-325-PCI manual SetHoldEncoderEvent, Flag, GetHoldEncoderEvent

Page 23

22

Set Hold Mode

SetHoldEncoderEvent

(long CardHandle,

 

Determines the "hold" characteristic of the hardware Event

 

of Hardware

Flag

short EncoderNumber,

 

Signal:

 

Encoder's

 

short OnOffMode)

 

OnOffMode:

 

EventFlag

 

 

 

 

 

 

 

 

 

 

Off: Hardware signal remains "as is" – no holding mechanism.

 

 

 

 

 

On: Hardware signal is held until running an explicit "clear"

 

 

 

 

 

operation by ClearEncoderEventFlag (function #24).

 

 

 

 

 

Note:

 

 

 

 

 

All

functions of sections 3.5.1, 3.5.2 and 3.5.4 also have (as a by-

 

 

 

 

 

product) the same effect as ClearEncoderEventFlag.

23

Get Hold

GetHoldEncoderEvent

(long CardHandle,

 

Gets the current selection of the Hold Mode of Encoder's

 

Mode of

Flag

short EncoderNumber,

 

EventFlag (on or off).

 

Hardware

 

short* OnOffMode)

 

 

 

 

 

Encoder's

 

 

 

 

 

 

 

EventFlag

 

 

 

 

 

 

24

Clear

ClearEncoderEvent

(long CardHandle,

 

Clears the hardware Event Signal.

 

Hardware

Flag

short EncoderNumber)

 

Meaningful only when the Hold Mode of Hardware Encoder's

 

Encoder's

 

 

 

EventFlag is on (refer to function #22).

 

EventFlag

 

 

 

Note:

 

 

 

 

 

All

functions of sections 3.5.1, 3.5.2 and 3.5.4 also have (as a by-

 

 

 

 

 

product) the same effect as ClearEncoderEventFlag.

Note: The description of the common arguments is in section 3.6

 

 

 

21

Image 23
Contents User’s Guide Servicing North America Model Table of Contents Section Each Encoder Interface includes the following elements Encoder InterfaceCards Hardware I/O Software InputsPIN LAY-OUT Encoder InputsFunction Type Pin No Encoders Event Signals and General OutputsLogical Inputs CPP InstallationVB folders Page WinSysPath folder WinSysPath is Page Page Introduction to the Functions Chip Level Functions Card Level FunctionsGetActiveChip Brief Name Arguments in C Syntax Full DescriptionSetActiveChip All the following functions refer to that active chipInputs Brief Description NameShort EncoderNumber BriefArguments in C Syntax Full Description Short EncoderNumber Short ClocksPerCycleCounter SetIndexPulsePolarityShort Polarity GetIndexPulsePolarityGetSetPoint SetSetPointLong SetPoint SetPointPolarity SetEncoderEventFlagSource GetEncoderEventFlagClearEncoderEvent SetHoldEncoderEventFlag GetHoldEncoderEventLong* PositionCounter ResetPositionCounterShort OutputsMirror ReadPositionCounterAvailable only for RequestPositionCounter Polarity Encoder Counters IntroductionGeneral Input Signals from the EncodersSquare wave signal Sine wave signalGeneral SoftwareConnector Wiring for the Inputs Connector Wiring for the Outputs Yes NextFinish WinNTPage Page Page Page Page Page Page Appendix D Product Development WARRANTY/DISCLAIMER Shop online at omega.com