Measurement Specialties USB-1616HS-2 manual Maximizing encoder accuracy

Page 33

USB-1616HS-2 User's Guide

Functional Details

Maximizing encoder accuracy

If there are 512 pulses on A, then the encoder position is accurate to within 360°/512.

You can get even greater accuracy by counting not only rising edges on A but also falling edges on A, giving position accuracy to 360 degrees/1024.

You get maximum accuracy counting rising and falling edges on A and on B (since B also has 512 pulses.) This gives a position accuracy of 360°/2048. These different modes are known as X1, X2, and X4.

Connecting the USB-1616HS-2 to an encoder

You can use up to two encoders with each USB-1616HS-2 in your acquisition system. Each A and B signal can be made as a single-ended connection with respect to common ground.

Differential applications are not supported.

For single-ended applications:

ƒConnect signals A, B, and Z to the counter inputs on the USB-1616HS-2.

ƒConnect each encoder ground to GND.

You can also connect external pull-up resistors to the USB-1616HS-2 counter input terminal blocks by placing a pull-up resistor between any input channel and the encoder power supply. Choose a pull-up resistor value based on the encoder's output drive capability and the input impedance of the USB-1616HS-2. Lower values of pull-up resistors cause less distortion, but also cause the encoder's output driver to pull down with more current.

Wiring to one encoder: Figure 21 shows the connections for one encoder to a USB-1616HS-2 module.

To external power

Ground (to Digital Common1)To ground2

Counter 0 (CNT0) – To Encoder “A”

Counter 1 (CNT1) – To Encoder “B”

Counter 2 (CNT2) – To Encoder “Z”

1The ground depicted at the left is associated with Digital Common on the USB-1616HS-4.

2The ground depicted at the right is associated with the external power source.

Figure 21. Connections from single encoder to screw terminals on the USB-1616HS-2

The "A" signal must be connected to an even-numbered channel and the associated "B" signal must be connected to the next higher odd-numbered channel. For example, if "A" were connected to counter 0, then "B" would be connected to counter 1.

Connect each signal (A, B, Z) as a single-ended connection with respect to the common ground. The encoder needs power from an external power output (typically +5 VDC). Connect the encoder's power input to the power source and connect the return to the digital common of that source.

Wiring for two encoders: The following figure illustrates single-ended connections for two encoders. Differential connections are not applicable.

33

Image 33
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide About this Users Guide Where to find more informationWhat you will learn from this users guide Conventions used in this users guideSoftware features Overview USB-1616HS-2 featuresIntroducing the USB-1616HS-2 ChapterTR-2U power supply and CA-1* line cord Installing the USB-1616HS-2What comes with your USB-1616HS-2 shipment? HardwareUnpacking the USB-1616HS-2 Installing the softwareAdditional documentation CA-96A expansion cableInstalling the hardware Connecting the board for I/O operations Configuring the hardwareConnectors, cables main I/O connector Information on signal connectionsUSB-1616HS-2 screw terminal pin out single-ended connections Screw terminal pin outsDSUB25 expansion connector pin out DSUB25F expansion connectorCA-96A expansion cable CablingUSB-1616HS-2 components Functional DetailsUSB-1616HS-2 components rear view External power connectorUSB-1616HS-2 functional block diagram USB-1616HS-2 block diagramAnalog input scanning Analog inputSettling time Example Analog channel scanning of voltage inputsAnalog and digital scanning, once per scan mode example Example Analog and digital scanning, once per scan modeAnalog and digital scanning, once per scan mode example Thermocouple input Tips for making accurate temperature measurementsShielding AveragingAnalog output Triggering Digital I/ODigital input scanning Digital outputs and pattern generationHardware analog triggering Digital triggeringSoftware-based triggering Counter inputs Stop trigger modesPre-triggering and post-triggering modes Tips for making high-speed counter measurements 1 MHz Totalize modeMapped channels Counter modesDebounce modes Trigger before stable mode Trigger after stable modeDebounce module Trigger before stable mode Debounce mode comparisonsOptimal debounce time for trigger before stable mode Encoder modeRepresentation of rotary shaft quadrature encoder Maximizing encoder accuracy Connecting the USB-1616HS-2 to an encoderTimer outputs Example Timer outputsTimer output frequency examples Detection setpoint overview Using multiple USB-1616HS-2s per PCCriteria input signal is equal to Action driven by condition Using the setpoint status register Setpoint configurationExamples of control outputs Detecting on analog input, DAC, and Firstportc updatesAnalog inputs with setpoints update on True and False Detection on an analog input, timer output updatesTimer output update on True and False Using the hysteresis functionDetecting setpoints on a totalizing counter Using multiple inputs to control one DAC outputFIRSTPORTC, DAC, or timer update latency Controlling analog, digital, and timer outputsDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Analog input specifications SpecificationsAnalog input accuracy specifications AccuracyAnalog outputs Analog output specificationsThermocouples Thermocouple TC types and accuracy NoteDigital input/output Digital input/output specificationsInput sequencer specifications Counter specificationsCounters Input sequencerFrequency/pulse generator specifications Power consumptionPower consumption specifications Note Frequency/pulse generatorsUSB specifications External powerSignal 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 USA Declaration of ConformityMailinfo@mccdaq.com