Omega Engineering EN-EIC-325-PCI SetIndexPulsePolarity, Short Polarity, GetIndexPulsePolarity

Page 20

3.5.2. INDEX

#

Brief

Description

Name

Arguments (in C Syntax)

Full Description

12

Set Index

SetIndexPulsePolarity

(long CardHandle,

 

Selects the polarity of the index (marker) pulse coming from

 

Pulse Polarity

 

short EncoderNumber,

 

user's encoder.

 

 

 

short Polarity)

 

 

 

13

Get Index

GetIndexPulsePolarity

(long CardHandle,

 

Gets the current status of the Index Pulse Polarity (active on

 

Pulse Polarity

 

short EncoderNumber,

 

high/low).

 

 

 

short* Polarity)

 

 

 

14

Set "reset upon

SetIndexResetsPosition

(long CardHandle,

 

Defines whether a reset (=clear) of the Internal Position

 

index"

Counter

short EncoderNumber,

 

Counter (IPC) should take place upon index (marker) pulse

 

 

 

short EnabledDisabledMode)

 

coming from user's encoder.

 

 

 

 

 

Note:

 

 

 

 

 

The

eXternal Position Counter (XPC) is NOT affected

 

 

 

 

 

immediately.

 

 

 

 

 

Run RequestPositionCounter to apply the effect on the

 

 

 

 

 

XPC, and ReadPositionCounter to read the XPC (refer to

 

 

 

 

 

section 3.5.5, functions #26-27).

15

Get "reset

GetIndexResetsPosition

(long CardHandle,

 

Gets the current status of "reset upon index" (enabled or

 

upon index"

Counter

short EncoderNumber,

 

disabled).

 

 

 

short*EnabledDisabledMode)

 

 

 

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

18

Image 20
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 Functions Brief Name Arguments in C Syntax Full Description SetActiveChip All the following functions refer to that active chip GetActiveChipBrief Description Name InputsBrief Arguments in C Syntax Full DescriptionShort EncoderNumber Short ClocksPerCycle Short EncoderNumberSetIndexPulsePolarity Short PolarityGetIndexPulsePolarity CounterSetSetPoint Long SetPointSetPoint GetSetPointSetEncoderEventFlag SourceGetEncoderEventFlag PolaritySetHoldEncoderEvent FlagGetHoldEncoderEvent ClearEncoderEventResetPositionCounter Short OutputsMirrorReadPositionCounter Long* PositionCounterAvailable only for RequestPositionCounter Polarity Introduction Encoder CountersInput Signals from the Encoders Square wave signalSine 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