Omega Engineering EN-EIC-325-PCI ResetPositionCounter, Short OutputsMirror, ReadPositionCounter

Page 24

3.5.5.POSITION COUNTER

#

Brief

Description

Name

Arguments (in C

Syntax)

Full Description

25

Reset (=clear)

ResetPositionCounter

(long CardHandle,

 

Clears the Internal Position Counter (IPC) of one or two axes.

 

Position Counter

 

short EncoderNumber,

 

OutputsMirror: This argument is described within the function

 

 

 

short OutputsMirror)

 

 

 

 

 

 

 

WriteOutputs (section 3.4.2, function #9).

 

 

 

 

 

Note:

 

 

 

 

 

The

eXternal Position Counter (XPC) is NOT affected directly.

 

 

 

 

 

Run RequestPositionCounter to apply the effect on the XPC,

 

 

 

 

 

and ReadPositionCounter to read the XPC.

26

Request an

RequestPositionCounter

(long CardHandle,

 

 

 

Updates the eXternal Position Counter (XPC) according to the

 

updated reading

 

short EncoderNumber,

 

 

Internal Position Counter (IPC):

 

of Position

 

short OutputsMirror)

 

 

XPC ‹ IPC.

 

Counter

 

 

 

 

 

OutputsMirror: This argument is described within the function

 

 

 

 

 

 

 

WriteOutputs (section 3.4.2, function #9).

 

 

 

 

 

 

 

Note:

 

 

 

 

 

 

 

Run

ReadPositionCounter (function #27) to read the XPC.

27

Read Position

ReadPositionCounter

(long CardHandle,

 

 

Reads the eXternal Position Counter (XPC):

 

Counter

 

short EncoderNumber,

 

 

PositionCounter ‹ XPC.

 

 

 

long* PositionCounter)

 

 

Note:

 

 

 

 

 

 

 

To

update the XPC, call RequestPositionCounter (function

 

 

 

 

 

 

#26).

 

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

 

 

 

 

 

 

 

22

Image 24
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-OUTEncoders Event Signals and General Outputs Logical InputsFunction Type Pin No Installation CPPVB folders Page WinSysPath folder WinSysPath is Page Page Introduction to the Functions Card Level Functions Chip Level FunctionsBrief Name Arguments in C Syntax Full Description SetActiveChipAll 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