background image

12

|

ni.com

|

BNC-2120 Installation Guide

Using the Quadrature Encoder

The BNC-2120 contains a mechanical quadrature encoder circuit that produces 96 pulses per 
encoder revolution. Two outputs, PULSES and UP/DN, are at the screw terminals located below 
the quadrature encoder knob.

PULSES outputs a pulse train generated by rotating the encoder shaft. It provides four pulses per 
one mechanical click of the encoder. UP/DN outputs a high or a low signal indicating rotation 
direction. When the direction is counterclockwise, UP/DN is low. When the direction is 
clockwise, UP/DN is high.

To use the quadrature encoder with counter 0 of the DAQ device, connect the PULSES terminal 
to PFI 8 and connect the UP/DN terminal to the P0.6 digital I/O terminal, the up/down pin of 
counter 0. To use the quadrature encoder with counter 1, connect the PULSES terminal to PFI 3 
and connect the UP/DN terminal to the P0.7 digital I/O terminal, the up/down pin of counter 1. 
Refer to Table 2 for more information about PFI 3 and PFI 8. Refer to the 

Connecting Digital 

I/O Signals

 section for more information about the digital I/O terminals and LEDs.

You can use the Count Digital Events VI from the LabVIEW Example Finder (

Hardware Input 

and Output»DAQmx»Counter Measurements»Count Digital Events

) with the BNC-2120 

quadrature encoder. After opening the VI, select 

Externally Controlled

 in the Count Direction 

control. The VI retrieves the count from the counter. You can convert the count into total degrees 
rotated using the following formula:

Total Degrees Rotated

 = 

PULSES 

×

 3.75°/

pulse

where

3.75°/

pulse

 = 360°/96 

pulses

Calculate the number of revolutions and remaining degrees by dividing the total degrees rotated 
by 360

°

. The calculated quotient is equal to the number of revolutions and the remainder is equal 

to the remaining degrees.

Содержание BNC-2120

Страница 1: ...ing I O TIO connection Two user defined BNC connectors A function generator with the following outputs Frequency adjustable TTL compatible square wave Frequency and amplitude adjustable sine wave or t...

Страница 2: ...Series User Manual the M Series User Manual the S Series User Manual or the X Series User Manual BNC cables 28 16 AWG wire Wire strippers Flathead screwdriver Installing the BNC 2120 Caution When this...

Страница 3: ...BNC Connector 24 Power Indicator LED E L R T T S N I NA M U N O I A S T N _ Floating Source FS _ Ground Ref Source GS AO ANALOG OUTPUTS ANALOG INPUTS DIGITAL I O FUNCTION GENERATOR Frequency Selectio...

Страница 4: ...damage the BNC 2120 all devices connected to it and the host computer Overvoltage can also cause an electric shock hazard for the operator National Instruments is not liable for damage or injury resu...

Страница 5: ...revised its terminal names so they are easier to understand and more consistent among NI hardware and software products The revised terminal names used in this document are usually similar to the nam...

Страница 6: ...Move the FS GS switch to the applicable position depending on whether you are measuring a floating source FS or ground referenced source GS analog input signal Refer to the Measuring Floating Signals...

Страница 7: ...the temperature reference and thermocouple connector To use the integrated circuit IC temperature reference on the BNC 2120 move the BNC Temp Ref switch above the AI 0 BNC to Temp Ref The integrated c...

Страница 8: ...renced single ended RSE mode 3 Connect the resistor to the RES and RES screw terminals You can measure resistors with values ranging from 100 to 1 M 4 Measure VCC on AI 3 and the voltage drop across t...

Страница 9: ...onnecting signals to the screw terminals use 28 16 AWG wire with the insulation stripped to 0 28 in Table 2 describes the timing I O BNC and terminal signals on the BNC 2120 Table 2 BNC 2120 Timing I...

Страница 10: ...to the general purpose counter 1 PFI 5 P1 5 Programmable Function Interface channel 5 or Port 1 Digital Input Output channel 5 AO SAMP CLK AO Sample Clock Signal As an output this pin is the ao Sample...

Страница 11: ...pin can be used to route signals directly to the RTSI bus As an output this pin emits the Ctr0InternalOutput signal PFI 13 P2 5 Programmable Function Interface channel 13 or Port 2 Digital Input Outp...

Страница 12: ...with counter 1 connect the PULSES terminal to PFI 3 and connect the UP DN terminal to the P0 7 digital I O terminal the up down pin of counter 1 Refer to Table 2 for more information about PFI 3 and P...

Страница 13: ...6 shows an example of how to use the USER 1 and USER 2 BNCs To access the PFI 8 P2 0 CTR 0 SOURCE signal from a BNC connect USER 1 on the screw terminal block to PFI 8 P2 0 with a 28 16 AWG wire Figu...

Страница 14: ...each digital line as listed in Table 3 Specifications This section lists the specifications of the BNC 2120 These specifications are typical at 25 C unless otherwise specified Note Refer to your DAQ...

Страница 15: ...tions 28 16 AWG wire LED state indicators 8 1 each for lines P0 0 7 Protection DC max V Powered off 5 5 V Powered on 10 5 V Drive Vol 0 6 V 8 mA 1 6 V 24 mA Voh 4 4 V 8 mA 4 V 13 mA Function Generator...

Страница 16: ...terminals 2 Output signals PULSES 96 pulses revolution UP DN High for clockwise rotation low for counterclockwise rotation Pulse width 1 s Power Requirement 5 VDC 5 200 mA sourced from the multifuncti...

Страница 17: ...is used in a manner not described in this document Electromagnetic Compatibility This product meets the requirements of the following EMC standards for electrical equipment for measurement control an...

Страница 18: ...NI recognizes that eliminating certain hazardous substances from our products is beneficial to the environment and to NI customers For additional environmental information refer to the Minimize Our En...

Страница 19: ...t and company names mentioned herein are trademarks or trade names of their respective companies For patents covering National Instruments products technology refer to the appropriate location Help Pa...

Отзывы: