Measurement Specialties USB-1616HS-2 manual Encoder mode

Page 31

USB-1616HS-2 User's Guide

Functional Details

Use trigger before stable mode when the input signal has groups of glitches and each group is to be counted as one. The trigger before stable mode recognizes and counts the first glitch within a group but rejects the subsequent glitches within the group if the debounce time is set accordingly. The debounce time should be set to encompass one entire group of glitches as shown in the following diagram.

Figure 17. Optimal debounce time for trigger before stable mode

Trigger after stable mode behaves more like a traditional debounce function: rejecting glitches and only passing state transitions after a required period of stability. Trigger after stable mode is used with electro-mechanical devices like encoders and mechanical switches to reject switch bounce and disturbances due to a vibrating encoder that is not otherwise moving. The debounce time should be set short enough to accept the desired input pulse but longer than the period of the undesired disturbance as shown in Figure 18.

Figure 18. Optimal debounce time for trigger after stable mode

Encoder mode

Rotary shaft encoders are frequently used with CNC equipment, metal-working machines, packaging equipment, elevators, valve control systems, and in a multitude of other applications in which rotary shafts are involved.

The USB-1616HS-2 supports quadrature encoders with up to 2 billion pulses per revolution, 20 MHz input frequencies, and x1, x2, x4 count modes.

The encoder mode allows the USB-1616HS-2 to make use of data from optical incremental quadrature encoders. In encoder mode, the USB-1616HS-2 accepts single-endedinputs. When reading phase A, phase B, and index Z signals, the USB-1616HS-2 provides positioning, direction, and velocity data.

The USB-1616HS-2 can receive input from up to two encoders.

The USB-1616HS-2 supports quadrature encoders with a 16-bit (counter low) or a 32-bit (counter high) counter, 20 MHz frequency, and X1, X2, and X4 count modes. With only phase A and phase B signals, two channels are supported; with phase A, phase B, and index Z signals, 1 channel is supported. Each input can be

31

Image 31
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide Conventions used in this users guide Where to find more informationAbout this Users Guide What you will learn from this users guideChapter Overview USB-1616HS-2 featuresSoftware features Introducing the USB-1616HS-2Hardware Installing the USB-1616HS-2TR-2U power supply and CA-1* line cord What comes with your USB-1616HS-2 shipment?CA-96A expansion cable Installing the softwareUnpacking the USB-1616HS-2 Additional documentationInstalling the hardware Information on signal connections Configuring the hardwareConnecting the board for I/O operations Connectors, cables main I/O connectorUSB-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 diagramExample Analog channel scanning of voltage inputs Analog inputAnalog input scanning Settling timeAnalog 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 Averaging Tips for making accurate temperature measurementsThermocouple input ShieldingAnalog output Digital outputs and pattern generation Digital I/OTriggering Digital input scanningDigital triggering Hardware analog triggeringSoftware-based triggering Stop trigger modes Counter inputsPre-triggering and post-triggering modes Counter modes Totalize modeTips for making high-speed counter measurements 1 MHz Mapped channels Debounce 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 encoderExample Timer outputs 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 outputControlling analog, digital, and timer outputs FIRSTPORTC, DAC, or timer update latencyDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Accuracy SpecificationsAnalog input specifications Analog input accuracy specificationsThermocouple TC types and accuracy Note Analog output specificationsAnalog outputs ThermocouplesDigital input/output Digital input/output specificationsInput sequencer Counter specificationsInput sequencer specifications CountersFrequency/pulse generators Power consumptionFrequency/pulse generator specifications Power consumption specifications NoteEnvironmental External powerUSB specifications Signal I/O connectors and pin outUSB-1616HS-2 screw terminal pin out single-ended connections USB-1616HS-2 screw terminal pin out differential connections USA Declaration of ConformityMailinfo@mccdaq.com