background image

USB-1616HS-BNC User's Guide 

Functional Details 

27  

 

 

Figure 15. 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-BNC 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-BNC to make use of data from optical incremental quadrature 

encoders. In encoder mode, the USB-1616HS-BNC accepts 

single-ended 

inputs. When reading phase A, phase 

B, and index Z signals, the USB-1616HS-BNC provides positioning, direction, and velocity data.  

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

The USB-1616HS-BNC 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 
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. 

Summary of Contents for USB-1616HS-BNC

Page 1: ......

Page 2: ...USB 1616HS BNC User s Guide Document Revision 1 May 2008 Copyright 2008 Measurement Computing Corporation...

Page 3: ...aced with same or similar device or refunded at MCC s discretion For specific information please refer to the terms and conditions of sale Harsh Environment Warranty Program Any Measurement Computing...

Page 4: ...from its use No license is granted by implication or otherwise under any patent or copyrights of Measurement Computing Corporation All rights reserved No part of this publication may be reproduced sto...

Page 5: ...les main I O connector 12 DSUB37F connector 12 Cabling 13 Field wiring and signal termination accessories 13 Chapter 3 Functional Details 14 USB 1616HS BNC components 14 USB 1616HS BNC block diagram 1...

Page 6: ...ts 34 Detection setpoint details 38 DAC or timer update latency 38 Chapter 4 Calibrating the USB 1616HS BNC 40 Chapter 5 Specifications 41 Analog input 41 Accuracy 42 Analog outputs 42 Digital input o...

Page 7: ...e names of manuals and help topic titles and to emphasize a word or phrase For example The InstaCal installation procedure is explained in the Quick Start Guide Never touch the exposed pins or circuit...

Page 8: ...Hz analog output channels with an output range of 10 V to 10 V 16 high speed lines of digital I O two timer outputs four 32 bit counters The USB 1616HS BNC provides up to 4 MHz scanning on all digital...

Page 9: ...that the following components are included Hardware USB 1616HS BNC USB cable 2 meter length TR 2U power supply and CA 1 line cord AC to DC conversion power supply and cord plugs into the external powe...

Page 10: ...let completely before installing any software or hardware Unpacking the USB 1616HS BNC As with any electronic device you should take care while handling to avoid damage from static electricity Before...

Page 11: ...USB bus while the computer is communicating with the USB 1616HS BNC or you may lose data and or your ability to communicate with the USB 1616HS BNC Configuring the hardware All hardware configuration...

Page 12: ...Analog common 4 TMR1 Timer output 1 16 bit frequency pulse generator output 5 DGND Digital common 6 TMR0 Timer output 0 16 bit frequency pulse generator output 7 TTLTRG TTL trigger input 8 CTR2 Count...

Page 13: ...e available on our web site at www mccdaq com cbicatalog cbiproduct asp dept_id 102 pf_id 255 CIO MINI37 VERT 37 pin screw terminal board with vertical 37 pin male D connector Details on this product...

Page 14: ...USB 1616HS BNC components are shown in Figure 2 and Figure 3 16 BNC connectors for voltage measurement One 37 pin DSUB connector for digital I O counter encoder inputs timer output and analog output...

Page 15: ...the full 1 MHz A D rate along with digital and counter input channels Each analog channel can have a different gain and counter and digital channels do not need additional scanning bandwidth as long a...

Page 16: ...han 6 s for this example The scan period can be made much longer than 6 s up to 1 s The maximum scan frequency is one divided by 6 s or 166 666 Hz Figure 5 Analog channel scan of voltage inputs exampl...

Page 17: ...for every analog sample in a scan group The scan is programmed pre acquisition and is made up of six analog channels Ch0 Ch2 Ch5 Ch11 Ch13 Ch15 and four digital channels 16 bits of digital input thre...

Page 18: ...cantly may require many samples Thus averaging is suited to low speed applications that can provide many samples Only random noise is reduced or eliminated by averaging Averaging does not reduce or el...

Page 19: ...nally applied Digital I O Sixteen TTL level digital I O lines are included in each USB 1616HS BNC You can program digital I O in 8 bit groups as either inputs or outputs and scan them in several modes...

Page 20: ...d hysteresis A note on the hardware analog level trigger and comparator change state When analog input voltage starts near the trigger level and you are performing a rising or falling hardware analog...

Page 21: ...ects the trigger condition which may be thousands of readings after the actual occurrence of the signal the USB 1616HS BNC driver automatically looks back to the location in memory where the actual tr...

Page 22: ...art of an analog or digital scan group When reading synchronously all counters are set to zero at the start of an acquisition When reading asynchronously counters may be cleared on each read count up...

Page 23: ...counter counts up and does not clear on every new sample However it does clear at the start of a new scan command The counter rolls over on the 16 bit counter low boundary or on the 32 bit counter hig...

Page 24: ...lly associated with electro mechanical devices including relays proximity switches and encoders There are two debounce modes as well as a debounce bypass as shown in Figure 10 In addition the signal f...

Page 25: ...he output of the debounce module immediately changes state but will not change state again until a period of stability has passed For this reason the mode can be used to detect glitches Figure 12 Debo...

Page 26: ...with the counter output This can be done by connecting the source to an analog input Use trigger before stable mode when the input signal has groups of glitches and each group is to be counted as one...

Page 27: ...phase A phase B and index Z signals 1 channel is supported Each input can be debounced from 500 ns to 25 5 ms total of 16 selections to eliminate extraneous noise or switch induced transients Encoder...

Page 28: ...e 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...

Page 29: ...o a USB 1616HS BNC module DGND pin 5 CTR0 pin 9 To Encoder A CTR1 pin 27 To Encoder B CTR2 pin 8 To Encoder Z Other DGND pins pins 14 25 28 or 33 can also be used 5VDC pin 23 Figure 18 Connections fro...

Page 30: ...igure 20 Typical USB 1616HS BNC timer channel Example Timer outputs Timer outputs are programmable square waves The period of the square wave can be as short as 1 s or as long as 65535 s Refer to the...

Page 31: ...thus allowing real time data analysis during an acquisition The detection module looks at the 16 bit data being returned on a channel and generates another signal for each channel with a setpoint appl...

Page 32: ...Example diagram of detection signals for channels 1 2 and 3 Each channel in the scan group can have one detection setpoint There can be no more than 16 total setpoints total applied to channels withi...

Page 33: ...rue only Update on True and False Set values for output 16 bit DAC value or timer value when input meets criteria 16 bit DAC value or timer value when does not meet criteria When using setpoints with...

Page 34: ...t A and limit B for channel 4 True When Channel 4 s analog input voltage is within the window update DAC1 with the Output Value of 1 0 V False When the above stated condition is False channel 4 analog...

Page 35: ...e and False with a criteria of inside the window where the signal value is inside the window when simultaneously less than Limit A but greater than Limit B Whenever the channel 15 analog input voltage...

Page 36: ...n effect until the analog input signal falls below limit B At that time we are again outside the limit low and the update process repeats itself Hysteresis mode can also be done with a timer output in...

Page 37: ...ly met Detecting setpoints on a totalizing counter In the following figure Channel 1 is a counter in totalize mode Two setpoints define a point of change for Detect 1 as the counter counts upward The...

Page 38: ...e example the setpoint for analog input Channel 2 s DAC update would occur 5 s after the ADC conversion for Channel 2 or 6 s after the start of the scan When using setpoints to control any of the DAC...

Page 39: ...eam at the scan rate This data is acquired according to the pre acquisition setup scan group scan period etc and returned to the PC Counters are latched into the acquisition stream at the beginning of...

Page 40: ...tion and the other which is available for field calibration You can perform field calibration automatically in seconds with InstaCal and without the use of external hardware or instruments Field calib...

Page 41: ...quisition data buffer 1 MSample Configuration memory Programmable I O Maximum usable input voltage common mode voltage CMV Vin Range 10 V 5 V 2 V 1 V 0 5 V 10 5 V maximum Range 0 2 V 0 1 V 2 1 V maxim...

Page 42: ...MHz typical differential short Analog outputs Analog output channels can be updated synchronously relative to scanned inputs and clocked from either an internal onboard clock or an external clock sou...

Page 43: ...modes See Table 7 Digital output trigger sources Start of input scan Sampling update rate 4 MHz maximum rates up to 12 MHz are sustainable on some platforms Pattern generation output Both 8 bit ports...

Page 44: ...Analog 1 0 MHz Digital 4 MHz if no analog channels are enabled 1 MHz with analog channels enabled Clock signal range Logical zero 0 V to 0 8 V Logical one 2 4 V to 5 0 V Minimum pulse width 50 ns hig...

Page 45: ...n period maximum Digital pattern triggering 8 bit or 16 bit pattern triggering on any of the digital ports Programmable for trigger on equal not equal above or below a value Individual bits can be mas...

Page 46: ...nge 40 C to 80 C Relative humidity 0 to 95 non condensing Mechanical Table 13 Mechanical specifications Vibration MIL STD 810E category 1 and 10 Dimensions 280 mm W x 216 mm D x 45 mm H 11 0 x 8 5 x 1...

Page 47: ...4 DGND Digital common 15 Port A A0 Digital I O digital port A bit 0 16 Port A A2 Digital I O digital port A bit 2 17 Port A A4 Digital I O digital port A bit 4 18 Port A A6 Digital I O digital port A...

Page 48: ...requency Common Mode immunity Criteria B IEC 61000 4 11 1994 Voltage Dips Interruption immunity Criteria B To maintain the safety emission and immunity standards of this declaration the following cond...

Page 49: ...Measurement Computing Corporation 10 Commerce Way Suite 1008 Norton Massachusetts 02766 508 946 5100 Fax 508 946 9500 E mail info mccdaq com www mccdaq com...

Reviews: