background image

16

3.4.2.

 

I/O

#

Brief Description

Name

Arguments (in C Syntax)

Full Description

8

Read the inputs of a chip, the EventFlags of its two encoders, and the Voltage Failure.

ReadInputs

(long 

CardHandle

,

short* 

Inputs

,

short*

EncoderEventFlags

)

Reads 5 or 6 chip's logical inputs, the two flags of its

EncoderEvents, and, in case of Chip #1, the Voltage Failure.

Inputs

:

For Chip #1: Bit #n corresponds to logical input #n+1 (n = 0

,...,4).

                      Bit #5 corresponds to Voltage Failure (1 means that

                      Voltage Failure = true).

For Chip #2: Bit #n corresponds to logical input #n+6. (

n = 0,...,5).

EncoderEventFlags

: Bit #0 corresponds to Encoder1 (A or C).

                                  Bit #1 corresponds to Encoder2 (B or D).

Notes:

1. Chip #1 has 5 logical inputs (marked 1–5).

    Chip #2 has 6 logical 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 ensures that

ReadInputs

 will hold the last encoder event (in

EncoderEventFlags

) even though the event is already over.

9

Write to chip's outputs.

WriteOutputs

(long 

CardHandle

,

 short 

Outputs

)

Meaningful only when the active chip is Chip1, in which case its

three general outputs (marked 1,2,3) are written.

Outputs

:  Bit #n corresponds to general output #n+1 (n=0,1,2).

Notes:

1. Due to hardware limitations, the current status of 

Outputs

 should

be kept in order to be passed as argument in the functions

ResetPositionCounter

 and 

RequestPositionCounter

 (named there

OutputsMirror

, refer to section 3.5.5, functions #25–26).

2. Chip2 has no general outputs.

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

Summary of Contents for EN-EIC-325-PCI

Page 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...

Page 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...

Page 3: ...1 FOUR AXIS ENCODER INTERFACE CARD M M MO O OD D DE E EL L L Version 2 01 Oct 2003...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 26: ...24 define TurnOn 1 define TurnOff 0 EnabledDisabledMode define SetEnabled 1 define SetDisabled 0 Polarity define ActiveOnHigh 1 define ActiveOnLow 0...

Page 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...

Page 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...

Page 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...

Page 30: ...28 APPENDIX B DRAWINGS Connector Wiring for the Inputs...

Page 31: ...29 Connector Wiring for the Outputs...

Page 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...

Page 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...

Page 34: ...32...

Page 35: ...33...

Page 36: ...34...

Page 37: ...35...

Page 38: ...36...

Page 39: ...37...

Page 40: ...38...

Page 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...

Page 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...

Page 43: ...ty Indicators Turbine Paddlewheel Systems Totalizers Batch Controllers pH CONDUCTIVITY pH Electrodes Testers Accessories Benchtop Laboratory Meters Controllers Calibrators Simulators Pumps Industrial...

Reviews: