background image

20

3.5.4.  EVENT SIGNAL

#

Brief

Description

Name

Arguments (in C

Syntax)

Full Description

18

Set Source of Encoder's EventFlag

SetEncoderEventFlag

Source

(long 

CardHandle

,

short 

EncoderNumber

,

short 

EventFlagSource

)

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

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

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 Encoder's EventFlag

GetEncoderEventFlag

Source

(long 

CardHandle

,

short 

EncoderNumber

,

short* 

EventFlagSource

)

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

20

Set Polarity of Hardware

Encoder's EventFlag

SetEncoderEventFlag

Polarity

(long 

CardHandle

,

short 

EncoderNumber

,

short 

Polarity

).

Sets the polarity of the hardware Event Signal.

21

Get Polarity of Hardware Encoder's EventFlag

GetEncoderEventFlag

Polarity

(long 

CardHandle

,

short 

EncoderNumber

,

short* 

Polarity

)

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

on high/low).

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

Содержание EN-EIC-325-PCI

Страница 1: ...omega com e mail info omega com For latest product manuals omegamanual info EN EIC 325 PCI Four Axis PCI Encoder Interface Card Shop online at User sGuide...

Страница 2: ...n Germany TEL 49 0 7056 9398 0 FAX 49 0 7056 9398 29 Toll Free in Germany 0800 639 7678 e mail info omega de United Kingdom One Omega Drive River Bend Technology Centre ISO 9002 Certified Northbank Ir...

Страница 3: ...1 FOUR AXIS ENCODER INTERFACE CARD M M MO O OD D DE E EL L L Version 2 01 Oct 2003...

Страница 4: ...RFACE WITH THE CARD 7 3 1 INSTALLATION 7 3 1 1 Windows 9 3 1 2 VB 11 3 1 3 VC 12 3 1 4 CPP 12 3 1 5 More 12 3 2 INTRODUCTION TO THE FUNCTIONS 13 3 3 CARD LEVEL FUNCTIONS 14 3 4 CHIP LEVEL FUNCTIONS 15...

Страница 5: ...cted by the Clock Resolution that may be set to 1 2 or 4 Clocks Cycle 1 1 2 SOFTWARE OUTPUTS a The XPC eXternal Position Counter is a latch counter being equalized to the IPC upon user s request eithe...

Страница 6: ...he following operations are done all at once XPC A IPC A XPC B IPC B XPC C IPC C XPC D IPC D In other words this Data Request is a hardware real time equivalent to the software function RequestPositio...

Страница 7: ...ndex 24 Index 9 Sine Phase A 39 Cosine Phase B 25 Sine Phase A 10 Encoder C Cosine Phase B 40 Vcc 41 Index 27 GND 12 Index 42 Sine Phase A 28 Sine Phase A 13 Cosine Phase B 43 Encoder D Cosine Phase B...

Страница 8: ...6 Input 6 11 Input 8 29 Input 9 44 Input 10 15 GND 30 ENCODERS EVENT SIGNALS AND GENERAL OUTPUTS Function D Type 9 pin No VExt 1 Encoder A 6 Encoder B 2 Encoder C 7 Event Signal Encoder D 3 Output 1 8...

Страница 9: ...325 PCINT4 reg Win2K EIC325_P sys ImsEic325 PCIWDM inf WinXP EIC325_P sys ImsEic325 PCIWDM inf OCX for WinNT 2K XP ImsEncPci ocx VB VC ReadMe txt EncPciConst h EncPciBasicTest DLL for WinNT 2K XP EIC3...

Страница 10: ...mputer then before running the VB produced program EncPciTest exe recommended please verify that 1 Your WinSysPath folder includes the following two files Richtx32 ocx Riched32 dll 2 The Richtx32 ocx...

Страница 11: ...updates the registry The file ImsEncPci ocx is copied to Windows System If the folder Windows System Vmm32 doesn t exist it s created The required WinRT file usually WRTdev0 VxD is copied to Windows...

Страница 12: ...he ocx file from your OCX for WinNT_2K_XP folder to your WinSysPath folder and register it by Start Run regsvr32 WinSysPath ImsEncPci ocx DLL Copy the dll file from your DLL for WinNT_2K_XP folder to...

Страница 13: ...nstruct the programmer code his application However to get some better feeling there s the Loop mode that Clicks cyclically In the Position Counter frame ALL in the Req Request column A B C D in the R...

Страница 14: ...your driver installation section 3 1 1 This folder includes four elements The file ReadMe txt The file EncPciConst h The file EncPciFunctions h The subfolder EncPciBasicTest The first item ReadMe txt...

Страница 15: ...VC Using either the ActiveX control or the DLL it will look like SetActive 1 SetActive 0 Notes Active Chip The functions in sections 3 4 and 3 5 operate on the active chip as selected by SetActiveChip...

Страница 16: ...or 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 Revision ID of current card GetRevisionID l...

Страница 17: ...kes the specified chip active All the following functions refer to that active chip 6 Get Active Chip GetActiveChip long CardHandle short ChipNumber Gets the current active chip Chip1 or Chip2 7 Test...

Страница 18: ...al inputs marked 6 11 2 When an encoder event occurs its software signal is held until ReadInputs is called Afterwards the software signal is cleared unless the signal still lasts This mechanism ensur...

Страница 19: ...ong CardHandle short EncoderNumber short ClocksPerCycle Selects the appropriate resolution that fits user s encoder 11 Get Encoder Resolution GetEncoderResolution long CardHandle short EncoderNumber s...

Страница 20: ...Position Counter long CardHandle short EncoderNumber short EnabledDisabledMode Defines whether a reset clear of the Internal Position Counter IPC should take place upon index marker pulse coming from...

Страница 21: ...me the trigger of the Event Signal SetPoint The desirable SPR Should conform to an unsigned 24 bit number ranging from 0 to 16777215 If SetPoint exceeds this range a failure return code is responded a...

Страница 22: ...nal 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 Encoder s EventFla...

Страница 23: ...same effect as ClearEncoderEventFlag 23 Get Hold Mode of Hardware Encoder s EventFlag GetHoldEncoderEvent Flag long CardHandle short EncoderNumber short OnOffMode Gets the current selection of the Hol...

Страница 24: ...Counter to read the XPC 26 Request an updated reading of Position Counter RequestPositionCounter long CardHandle short EncoderNumber short OutputsMirror Updates the eXternal Position Counter XPC accor...

Страница 25: ...ype 1 codes one encoder Available for all the functions using EncoderNumber Type 2 codes pair of encoders Available only for ResetPositionCounter and RequestPositionCounter Type 3 code all four encode...

Страница 26: ...24 define TurnOn 1 define TurnOff 0 EnabledDisabledMode define SetEnabled 1 define SetDisabled 0 Polarity define ActiveOnHigh 1 define ActiveOnLow 0...

Страница 27: ...Max input pulse rate 500 kpps Software included Drivers for Win95 98 NT 2K XP and how to communicate under DOS Useful utility that allows immediate read test of the encoders Detailed example in VB an...

Страница 28: ...le fuse in the card will resume normal operation after the short is ended Input Signals from the Encoders Square wave signal Square wave Phase A and Phase B Sine and Cosine shifted by 90 Max input pul...

Страница 29: ...A basic example in Visual C and a detailed example in VB Example and source code on how to communicate with the board under DOS General Board dimensions Half size PC card PCI bus for PC Power all sup...

Страница 30: ...28 APPENDIX B DRAWINGS Connector Wiring for the Inputs...

Страница 31: ...29 Connector Wiring for the Outputs...

Страница 32: ...t makes a hardware device work Click Next 5 Select the following option Display a list of all the drivers in a specific location so you can select the driver you want and click Next 6 In the Devices L...

Страница 33: ...ce Windows has not installed a driver for this device This is normal either Click Finish WinNT 1 Shut down your PC i e power off 2 Insert the new card into a free PCI slot 3 Turn on your PC For Win2K...

Страница 34: ...32...

Страница 35: ...33...

Страница 36: ...34...

Страница 37: ...35...

Страница 38: ...36...

Страница 39: ...37...

Страница 40: ...38...

Страница 41: ...ion to request a snapshot of the position counters in real time using a hardware input in addition to the veteran software function for this operation The new feature uses the last input input 11 henc...

Страница 42: ...therwise shall not exceed the purchase price of the component upon which liability is based In no event shall OMEGA be liable for consequential incidental or special damages CONDITIONS Equipment sold...

Страница 43: ...ty Indicators Turbine Paddlewheel Systems Totalizers Batch Controllers pH CONDUCTIVITY pH Electrodes Testers Accessories Benchtop Laboratory Meters Controllers Calibrators Simulators Pumps Industrial...

Отзывы: