Advance Technologies; Automate the World.Manual Rev. 2.00Revision Date: April 27, 2009Part No: 50-11162-1000PCI-8124-CAdvanced 4-CH Encoder Card wi
vi List of Figures
90 Function Library_8124_get_linear_next_compare:This function is used to get the next linear compare data. This function is only for debug used. It d
Function Library 91I16 Enable: 0: Disable (Default) 1: Enable I16 *DetectStatus: Status in bit format. bit 0: Noise occurred form EA, the signal
92 Function Library6.15 Return ErrorsThe following table provides a list of possible return value in ourlibrary. If the return value is not zero, it m
Introduction 11 IntroductionThe PCI-8124-C is an advanced quadrature encoder counterboard with position compare and high speed trigger pulse outputca
2Introduction ADLINK provides a Windows WDM driver for users. Users canuse DLL function library to build up the application. The block dia-gram of PCI
Introduction 31.1 Features PCI Rev 2.2, 32-bit/33Mhz Compliment Support both PCI-X (3.3V) and PCI (5V) slots Support 4-bit board ID for multiple
4Introduction1.2 SpecificationsMain Chip Chip Vendor: ACTEL Model No: A3P1000 Power usage: 3.3V and 1.5V Reference clock: 40MhzEncoder Counters:
Introduction 5Trigger Output: Number of channels: 4 Maximum output frequency: 5Mhz Output types: Open collector or TTL Open collector Isolated ph
6IntroductionTTL Input Number of input pins: 4 Photo-coupler Isolated: No TTL input mode: General purpose or timer synchronous start signalTTL outp
Introduction 71.3 Supported Software 1.3.1 Programming Library ADLINK provides Windows WDM driver and DLL function libraryfor the PCI-8124-C. These f
8Introduction
Installation 92 InstallationThis chapter describes how to install the PCI-8124-C. Please fol-low these steps below: Check what you have (Section 2.
Copyright 2009 ADLINK TECHNOLOGY INC.All Rights Reserved. The information in this document is subject to change without priornotice in order to improv
10 Installation2.2 PCI-8124-C Outline Drawing Figure 2-1: PCI-8124-C PCB Layout CN1: SCSI 50 pins ConnectorCN2: TTL outputSW1: Board ID switch (ID: 0
Installation 112.3 PCI-8124-C Hardware Installation2.3.1 Hardware ConfigurationThe PCI-8124-C is fully Plug and Play compliant. Hence memoryallocatio
12 InstallationCheck the control panel of the Windows system if the card is listedby the system. If not, check the PCI settings in the BIOS or useano
Installation 132.5 CN1 Pin AssignmentsCN1 is the 50-pin SCSI type connector for I/O signals.No. Name I/O Function No. Name I/O Function1 INCOM1 - Lat
14 Installation2.6 CN2 Pin Assignments: TTL OutputCN2 is a 6-pin header as follows:Note: +5V and DGND pins are provided by the PCI-Bus. There-fore, t
Signal Connections 153 Signal ConnectionsSignal connections of all I/O’s are described in this chapter. Referto the contents of this chapter before w
16 Signal Connections3.1 Connector (CN1) Pin Definition There are 4 Isolated Latch Inputs, 4 A-B-Z Encoder Inputs, 4 TTLlevel Inputs, 4 TTL level outp
Signal Connections 1729 LTC4 I Latch input30 EGND - Latch input reference31 TRG3 O Trigger output32 EGND - Trigger output reference33 TRG4 O Trigger
18 Signal Connections3.2 Isolated Input Ports (LTC, INCOM)There are 4 pairs of isolated input ports on PCI-8124-C. Each pairhas two terminals. One is
Signal Connections 193.3 Isolated Encoder Differential InputThere are 4 pairs of A-B-Z encoder signal inputs on PCI-8124-C.The pin assignment of thes
Getting Service from ADLINKContact us should you require any service or assistance. ADLINK Technology Inc. Address: 9F, No.166 Jian Yi Road, Chungho
20 Signal Connections3.4 Isolated Output Ports (TRG, EGND)There are 4 independent isolated output ports on PCI-8124-C.Because the use of photo coupler
Signal Connections 21 Outside PCI-8124inside PCI-8124TRGx220Ω
22 Signal Connections3.5 TTL Input PortsThere are 4 single ended TTL-level input ports on PCI-8124-C.The following table shows the pin assignment of t
Signal Connections 233.6 TTL Output PortsThere are 4 single ended TTL-level output ports on PCI-8124-C.The following table shows the pin assignment o
24 Signal Connections
Operation Theory 254 Operation TheoryThis chapter describes the detail operation of the PCI-8124-Cboard. Contents of the following sections are as fo
26 Operation Theory4.1 Trigger Board OverviewThe input and output relationships are shown as follows:Inside the PCI-8124-C, all the position compariso
Operation Theory 27and FIFO individually. Due to the mapping mechanism, severalcombinations are provided for users to continuously send out thetrigge
28 Operation Theory4.1.1 Encoder ChannelThe PCI-8124-C has four 32-bit binary up/down counters to keepthe present feedback position from each encoder
Operation Theory 29Dual Pulse Mode (CW/CCW Mode)In this mode, EA is dedicated to count the pulses from externalsource and view it as clockwise direct
ADLINK Technology Inc. (German Liaison Office) Address: Nord Carree 3, 40477 Duesseldorf, Germany Tel: +49-211-495-5552 Fax: +49-211-495-5557 Em
30 Operation Theory90° phase shifted signals (AB phase Mode)In this mode, EA signal is a 90° phase leading or lagging to EBsignal. “Lead” or “lag” of
Operation Theory 314.1.3 Homing with EZ SignalThe PCI-8124-C can clear the counter value as zero according tothe edge of EZ signal. Homing by edge ca
32 Operation Theory4.1.6 FIFOFIFO is first-in-first-out storage. It is used for storing some presetposition data for comparing. Every time the positio
Operation Theory 33such as a missing encoder signal, a cable becoming discon-nected, abnormal trigger levels, etc. One method to reduce main-tenance
34 Operation Theory4.2 Trigger Board OperationThis section describes the operation theory for users to knowmore about PCI-8124-C.4.2.1 Position Compar
Operation Theory 354.2.2 Position LatchThe position latch function is fulfilled by LTC signal. Once the LTCsignal is active, the counter value of its
36 Operation Theory4.2.4 FIFO ModeContinuous triggering is fulfilled by linear function and FIFO.These two modes have their own comparators and can be
Operation Theory 374.3 Multiple Boards Operation The maximum installation in one PC system is up to 16 pieces.This means user can have 64 channels fo
38 Operation Theory4.4 Interrupt Control The PCI-8124-C can generate an INT signal to the host PC. Usershave to enable the interrupt service with this
Operation Theory 39* (-) : reserved bit (set to 0)Use wait function we provided to wait interrupts under Win-dowsTo detect an interrupt signal from t
Table of Contents iTable of ContentsTable of Contents... iList of Tables...
40 Operation TheorySteps:1. Enable the interrupt factors that you want to be wait.“_8124_get_int_factor”2. Using wait function to wait the specified i
TriggerMaster Utility 415 TriggerMaster UtilityAfter installing the hardware (Chapters 2 and 3), it is necessary tocorrectly configure all cards and
42 TriggerMaster Utility5.3 TriggerMaster Form Introduction5.3.1 Assign ID Type Dialog Automatically assign the CardIDManually assign the CardID
TriggerMaster Utility 435.3.2 Main Form1. Card Selected: Choose the card to operate. Note: thecard must be selected first.2. Show Channel Status: CN
44 TriggerMaster Utility5. Set Sources: TRG_# and TTL_# Source: Display the Set_TRG_&_TTL_Out form to set source, logic and mode for TRG output a
TriggerMaster Utility 455.3.3 Display _Status_LinearCMP FormDisplay the status of linear comparatorSelect the card you want to observe
46 TriggerMaster Utility5.3.4 Sketch_of_setting FormThis Sketch_of_setting form allows you to conveniently observethe all settings. When changing any
TriggerMaster Utility 475.3.5 Set_TRG_&_TTL_Out FormIn this form, you can set operation logic, operation mode, source,and En/Disable options for
48 TriggerMaster Utility5.3.6 Choose_PWM_Source FormIn this form, you can choose the source for PWM. Note: themanual_Trigger is always selected. The r
TriggerMaster Utility 495.3.7 Set_Linear_Comparator FormIn this form, you can set the En/Disable, choose source, and setparameters for each linear co
ii Table of ContentsHoming with EZ Signal ...31Trigger Pulse Width ...
50 TriggerMaster Utility5.3.8 Set_CNT_Source FormIn this form, you can set the source for the encoder counter. Thereare total eight kinds of input sou
TriggerMaster Utility 515.3.9 Encoder_# ModeEnter Set mode and logic tab by clicking the Set mode and logictag as show below:1. Encoder_# Mode: Set t
52 TriggerMaster Utility5.3.10 Set_Interrupt_Source FormIn this form, you can set the various interrupt events for eachchannel and linear comparator i
TriggerMaster Utility 53 FIFO_# Empty: Set the FIFO_# empty event to the inter-rupt factor. This interrupt event occurs when the FIFO is empty. FIF
54 TriggerMaster Utility5.3.11 Set_Interrupt_Source formEnter Operation tab by clicking the Operation tag show as below:1. Interrupt parameters: Time
TriggerMaster Utility 555. Buttons: Start Timer_#: Start the interval timer. Reset CNT_#: Reset the counter value. Reset Trir CNT_#: Reset the tr
56 TriggerMaster Utility
Function Library 576 Function LibraryThis chapter describes the supporting software for PCI-8124-C.User can use these functions to develop programs i
58 Function LibrarySystem: Section 5.2Encoder & Counter: Section 5.3PWM Configuration: Section 5.4TRG-OUT & TTL-OUT Configuration: Section 5.5
Function Library 59FIFO Comparing: Section 5.7Linear Comparing: Section 5.8Manual Trigger: Section 5.9Digital input: Section 5.10Latch: Section 5.11T
Table of Contents iii6.8 Linear Comparing ... 776.9 Manual Trigger...
60 Function LibraryInterrupt Control: Section 5.13Filtering & Monitoring: Section 5.14_8124_start_timer Start the timer manuallyFunction Name Desc
Function Library 616.2 System & Initialization@ Name@ Description_8124_initialSw:This function is used to initialize the PCI-8124-C cards in your
62 Function Library@ SyntaxC/C++ (Windows 2000/XP)I16 _8124_initialSw( I16 *CardIdInBit, I16 ManualId, I16 DefaultSw ); I16 _8124_close();I16 _8124_ge
Function Library 636.3 Encoder & Counter@ Name@ Description_8124_set_encoder_input_mode:There are 5 types of pulse input mode(EA/EB) including OU
64 Function Library_8124_set_counter_source:This function is used to set the counter source. The sourcecould be one of the EA/EB input channels or tim
Function Library 65B_8124_set_counter_source (ByVal CardId As Integer, ByVal Channel As Integer, ByVal CtnSrc As Integer) As Integer@ Argument I16 Ca
66 Function Library6.4 PWM Configuration@ Name@ Description_8124_set_pwm_source:This function is used to set the PWM source (trigger source). APWM has
Function Library 67I16 _8124_set_pwm_mode( I16 CardId, I16 Channel, I16 PulseOrToggle );I16 _8124_set_pwm_pulse_width( I16 CardId, I16 Channel, I16
68 Function LibraryI16 ToggleDir: Toggled condition select 0: Directionless 1: Count up 2: Count down
Function Library 696.5 TRG-OUT & TTL-OUT Configuration@ Name@ Description_8124_set_trigger_source:There are two kinds of TGR sources. One is from
iv List of TablesList of TablesTable 2-1: CN1 Pin Assignments ... 13Table 2-2: CN2 Pin Assignments: TTL O
70 Function Library@ SyntaxC/C++ (Windows 2000/XP)I16 _8124_set_trigger_source( I16 CardId, I16 Channel, I16 GroupSel, I16 PwmInBit, I16 TtlInInBit, I
Function Library 71I16 EzInBit: The source of EZ channel in bit format. Ex: EzInBit = 0x1, means EZ_0I16 TtlOutSrc: The TTL-OUT output source 0: us
72 Function Library6.6 Comparator@ Name@ Description_8124_set_comparator_data:This function is used to override the current comparing data tothe compa
Function Library 736.7 FIFO Comparing@ Name@ Description_8124_reset_fifo:This function is used to reset (clear) the FIFO. The FIFO statusis return “E
74 Function Library_8124_set_fifo_data:This function is used to set the specified comparing data to theFIFO. The capacity of FIFO is 1023. When the st
Function Library 75Visual Basic (Windows 2000/XP)B_8124_reset_fifo (ByVal CardId As Integer, ByVal Channel As Integer) As IntegerB_8124_get_fifo_sts
76 Function LibraryI16 Level: The FIFO low level setting.(remaining data numbersin FIFO) 0: Low level = 0 (Empty) 1: Low level = 256 ( 1/4 FIFO size
Function Library 776.8 Linear Comparing@ Name@ Description_8124_set_linear_compare:This function is used to configure the linear comparing triggerfun
78 Function Library_8124_enable_linear_set:The PCI-8124-C has 10 linear sets. Before using these linearsets, enable the linear set by this function. W
Function Library 79I16 Enable: Enable/Disable linear set 0: disable, 1: enable
List of Figures vList of FiguresFigure 1-1: PCI-8124-C Block Diagram ... 2Figure 2-1: PCI-8124-C PCB Layout ...
80 Function Library6.9 Manual Trigger@ Name@ Description_8124_manual_trigger:This function is used to generate one pulse manually. @ SyntaxC/C++ (Wind
Function Library 816.10 Digital Input@ Name@ Description_8124_get_di_sts:This function is used to get the status of digital inputs. The digi-tal inpu
82 Function Library6.11 Latch@ Name@ Description_8124_set_latch:This function is used to enable or disable the high-speed posi-tion capture (latch) fu
Function Library 83Visual Basic (Windows 2000/XP)B_8124_set_latch (ByVal CardId As Integer, ByVal Channel As Integer, ByVal Enable As Integer, ByVal
84 Function Library6.12 Timer@ Name@ Description_8124_set_Timer:This function is used to configure the timer. The timer can bestart by external signal
Function Library 85I16 WaitTtlIn: Enable TTL-IN start timer (0: Disable, 1:Enable)I16 TtlTrigLogic: TTL-IN start timer condition 0: Falling edge of
86 Function Library6.13 Interrupt@ Name@ Description_8124_set_int_factor:This function is used to enable/disable the interrupt source.Users can use th
Function Library 87function was time out. This function returns when one of the fol-lowing occurs:1. The specified interrupt factor is in the signale
88 Function Library@ Argument I16 IntFactorsInBit: Interrupt event factor setting in bit for-mat.I16 FactorBitNum: Specified the bit number of the Int
Function Library 896.14 Filtering & Monitoring@ Name@ Description_8124_set_input_filter_enable:This function is used to enable the digital filter
Comentários a estes Manuais