Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
5 ratings:
 3.79 out of 5     Rate this Document

Connecting an Encoder to a Counter

Hardware: Counter/Timers (TIO)

Problem:
How do I connect my encoder to a counter?

Solution:
The encoder has five outputs: Channel A Out , Channel B Out, Channel A Inverse Out, Channel B Inverse Out and Z-Index.

Connecting the encoder to a single counter:
  1. Choose Channel A and Channel B or Channel A Inverse and Channel B Inverse. Do not connect a non-inversed and an inversed channel to the same counter. For example, Channel A Out and Channel A Inverse Out should not be connected to the same counter.
  2. After selecting a valid pair of inversed or non-inversed channels, make one of the following connections configurations depending on the channel pair selected:
    • Configuration 1
      • Channel A to Source
      • Channel B to AUX
      • Z-Index to Gate
    • Configuration 2
      • Channel A Inverse to Source
      • Channel B Inverse to AUX
      • Z-Index to Gate

An easy way to find the pin connections to these counters is to right click the device in Measurement and Automation Explorer (MAX) and select Device Pinout.

Connecting the encoder to two counters:

In some critical applications, a single encoder is connected to two counters to keep track of precise counting. To do this, make the following connections:
  1. Connect the non-inversed pair of channels and the Z-Index to Counter 1 in Configuration 1 above.
  2. Connect the inversed pair of channels and the Z-Index to Counter 2 in Configuration 2 above. The Z-Index is connected to both counters.


Related Links:
Product Manuals: PCI-660x User Manual (December 2006)
Developer Zone Tutorial: Quadrature Encoder Measurements: How-To Guide

Attachments:





Report Date: 08/21/2004
Last Updated: 11/13/2008
Document ID: 3CKGJQ9T

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit