Measurement Specialties USB-1616HS-2 manual Representation of rotary shaft quadrature encoder

Page 32

USB-1616HS-2 User's Guide

Functional Details

debounced from 500 ns to 25.5 ms (total of 16 selections) to eliminate extraneous noise or switch induced transients. Encoder input signals must be within -5V to +10V and the switching threshold is TTL (1.3V).

Quadrature encoders generally have three outputs: A, B, and Z. The A and B signals are pulse trains driven by an optical sensor inside the encoder. As the encoder shaft rotates, a laminated optical shield rotates inside the encoder. The shield has three concentric circular patterns of alternating opaque and transparent windows through which an LED shines. There is one LED and one phototransistor for each of the concentric circular patterns. One phototransistor produces the A signal, another phototransistor produces the B signal and the last phototransistor produces the Z signal. The concentric pattern for A has 512 window pairs (or 1024, 4096, etc.)

When using a counter for a trigger source, use a pre-trigger with a value of at least 1. Since all counters start at zero with the initial scan, there is no valid reference in regard to rising or falling edge. Setting a pre-trigger to 1 or more ensures that a valid reference value is present, and that the first trigger is legitimate.

Figure 19. Representation of rotary shaft quadrature encoder

The concentric pattern for B has the same number of window pairs as A—except that the entire pattern is rotated by 1/4 of a window-pair. Thus the B signal is always 90 degrees out of phase from the A signal. The A and B signals pulse 512 times (or 1024, 4096, etc.) per complete rotation of the encoder.

The concentric pattern for the Z signal has only one transparent window and therefore pulses only once per complete rotation. Representative signals are shown in the following figure.

A

B

Z

Figure 20. Representation of quadrature encoder outputs: A, B, and Z

As the encoder rotates, the A (or B) signal indicates the distance the encoder has traveled. The frequency of A (or B) indicates the velocity of rotation of the encoder. If the Z signal is used to zero a counter (that is clocked by A) then that counter will give the number of pulses the encoder has rotated from its reference. The Z signal is a reference marker for the encoder. It should be noted that when the encoder is rotating clockwise (as viewed from the back), A will lead B and when the encoder is rotating counterclockwise, A will lag B. If the counter direction control logic is such that the counter counts upward when A leads B and counts downward when A lags B, then the counter will give direction control as well as distance from the reference.

32

Image 32
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide Where to find more information About this Users GuideWhat you will learn from this users guide Conventions used in this users guideOverview USB-1616HS-2 features Software featuresIntroducing the USB-1616HS-2 ChapterInstalling the USB-1616HS-2 TR-2U power supply and CA-1* line cordWhat comes with your USB-1616HS-2 shipment? HardwareInstalling the software Unpacking the USB-1616HS-2Additional documentation CA-96A expansion cableInstalling the hardware Configuring the hardware Connecting the board for I/O operationsConnectors, cables main I/O connector Information on signal connectionsScrew terminal pin outs USB-1616HS-2 screw terminal pin out single-ended connectionsDSUB25F expansion connector DSUB25 expansion connector pin outCabling CA-96A expansion cableFunctional Details USB-1616HS-2 componentsExternal power connector USB-1616HS-2 components rear viewUSB-1616HS-2 block diagram USB-1616HS-2 functional block diagramAnalog input Analog input scanningSettling time Example Analog channel scanning of voltage inputsExample Analog and digital scanning, once per scan mode Analog and digital scanning, once per scan mode exampleAnalog and digital scanning, once per scan mode example Tips for making accurate temperature measurements Thermocouple inputShielding AveragingAnalog output Digital I/O TriggeringDigital input scanning Digital outputs and pattern generationSoftware-based triggering Hardware analog triggeringDigital triggering Pre-triggering and post-triggering modes Counter inputsStop trigger modes Totalize mode Tips for making high-speed counter measurements 1 MHzMapped channels Counter modesDebounce modes Trigger after stable mode Trigger before stable modeDebounce mode comparisons Debounce module Trigger before stable modeEncoder mode Optimal debounce time for trigger before stable modeRepresentation of rotary shaft quadrature encoder Connecting the USB-1616HS-2 to an encoder Maximizing encoder accuracyTimer output frequency examples Timer outputsExample Timer outputs Using multiple USB-1616HS-2s per PC Detection setpoint overviewCriteria input signal is equal to Action driven by condition Setpoint configuration Using the setpoint status registerDetecting on analog input, DAC, and Firstportc updates Examples of control outputsDetection on an analog input, timer output updates Analog inputs with setpoints update on True and FalseUsing the hysteresis function Timer output update on True and FalseUsing multiple inputs to control one DAC output Detecting setpoints on a totalizing counterDetection setpoint details FIRSTPORTC, DAC, or timer update latencyControlling analog, digital, and timer outputs Firstportc Calibrating the USB-1616HS-2 Specifications Analog input specificationsAnalog input accuracy specifications AccuracyAnalog output specifications Analog outputsThermocouples Thermocouple TC types and accuracy NoteDigital input/output specifications Digital input/outputCounter specifications Input sequencer specificationsCounters Input sequencerPower consumption Frequency/pulse generator specificationsPower consumption specifications Note Frequency/pulse generatorsExternal power USB specificationsSignal I/O connectors and pin out EnvironmentalUSB-1616HS-2 screw terminal pin out single-ended connections USB-1616HS-2 screw terminal pin out differential connections Declaration of Conformity USAMailinfo@mccdaq.com