Omega Engineering EN-EIC-325-PCI manual Card Level Functions, Chip Level Functions

Page 16

3.3. CARD LEVEL FUNCTIONS

#

Brief

Description

Name

Arguments (in C Syntax)

Full Description

1

Supply a

GetCardHandle

(long* CardHandle,

Call this function in loop in your initialization.

 

‘Card Handle’

 

short CardIndex)

Start with CardIndex=0 and increment it each iteration.

 

to the n-th EN-

 

 

Stop the loop upon receiving a ‘failure’ (0) return code from the

 

EIC-325-PCI

 

 

function.

 

card (if exists).

 

 

For each iteration (denoting CardIndex by ‘n’):

 

(First n is 0.)

 

 

If the n-th EN-EIC-325-PCI card is detected:

 

 

 

 

* CardHandle is set to a handle to current card, to be used by you

 

 

 

 

as card’s identifier in all other functions. Save this CardHandle.

 

 

 

 

In case you have more than one EN-EIC-325-PCI card, use an

 

 

 

 

array

 

 

 

 

for the ‘save’ operation.

 

 

 

 

* Return Code is set to 1 (‘success’).

 

 

 

 

Otherwise (no ‘fresh’ card detected):

 

 

 

 

* CardHandle is irrelevant.

 

 

 

 

* Return Code is set to 0 (‘failure’).

2

Supply the

GetRevisionID

(long CardHandle,

Sets RevisionID to the Revision ID of current EN-EIC-325-PCI

 

Revision ID of

 

short* RevisionID)

card.

 

current card.

 

 

 

3

Set a LED

SetLed

(long CardHandle,

Turns the specified LED on or off. Useful to check primary

 

 

 

short LedNumber,

communication with the card. Except when turning both LEDs on,

 

 

 

short OnOffMode)

has no functional significance. Turning both LEDs on has same

 

 

 

 

effect as RequestPositionCounter (CardHandle, Encoder4, 0),

 

 

 

 

i.e., simultaneous request for all four axes.

4

Get a LED

GetLed

(long CardHandle,

Gets the current status (on or off) of the specified LED.

 

 

 

short LedNumber,

 

 

 

 

short* OnOffMode)

 

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

3.4. CHIP LEVEL FUNCTIONS

3.4.1. ACTIVE CHIP

14

Image 16
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 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