Omega Engineering EN-EIC-325-PCI manual SetEncoderEventFlag, Source, GetEncoderEventFlag, Polarity

Page 22

3.5.4. EVENT SIGNAL

#

Brief

Description

Name

Arguments (in C

Syntax)

Full Description

18

Set Source of

SetEncoderEventFlag

(long CardHandle,

 

Selects a condition that becomes the trigger of the Event Signal.

 

Encoder's

Source

short EncoderNumber,

 

Upon meeting this condition, an Event Signal is supplied, both in

 

EventFlag

 

short EventFlagSource)

 

hardware and in software.

 

 

 

 

 

Note:

 

 

 

 

 

The

characteristics of the signal are different in software and in

 

 

 

 

 

hardware:

 

 

 

 

 

* The polarity and the "hold mode" of the hardware signal are

 

 

 

 

 

programmable (see functions #20–23).

 

 

 

 

 

* The polarity of the software signal is constant.

 

 

 

 

 

* The software signal is always held until activating the function

 

 

 

 

 

ReadInputs (refer to section 3.4.2, function #8), which reads

 

 

 

 

 

the current signal status and then automatically clears it.

19

Get Source of

GetEncoderEventFlag

(long CardHandle,

 

Gets the current selection of the Source of Encoder's EventFlag.

 

Encoder's

Source

short EncoderNumber,

 

 

 

 

EventFlag

 

short* EventFlagSource)

 

 

 

20

Set Polarity of

SetEncoderEventFlag

(long CardHandle,

 

Sets the polarity of the hardware Event Signal.

 

Hardware

Polarity

short EncoderNumber,

 

 

 

 

Encoder's

 

short Polarity).

 

 

 

 

EventFlag

 

 

 

 

 

21

Get Polarity of

GetEncoderEventFlag

(long CardHandle,

 

Gets the current status of the Encoder's EventFlag Polarity (active

 

Hardware

Polarity

short EncoderNumber,

 

on high/low).

 

Encoder's

 

short* Polarity)

 

 

 

 

EventFlag

 

 

 

 

 

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

20

Image 22
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-OUTLogical Inputs Encoders Event Signals and General OutputsFunction Type Pin No 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