Encoders

NI-Motion VI

Encoders

Encoder resources are primarily used for position feedback on servo and closed-loop stepper axes. When encoder resources are not mapped to an axis for use as axis feedback, you can use them for any number of other functions including position or velocity monitoring, as digital potentiometer encoder inputs, or as master encoders for master/slave and gearing applications. The following table lists the resource IDs for encoders:

Resource Name    Resource ID
Encoder Control 0x20 (32)
Encoder 1 0x21 (33)
Encoder 2 0x22 (34)
Encoder 3 0x23 (35)
Encoder 4 0x24 (36)
Encoder 5 0x25 (37)
Encoder 6 0x26 (38)
Encoder 7 0x27 (39)
Encoder 8 0x28 (40)
Encoder 9 0x29 (41)
Encoder 10 0x2A (42)
Encoder 11 0x2B (43)
Encoder 12 0x2C (44)
Encoder 13 0x2D (45)
Encoder 14 0x2E (46)
Encoder 15 0x2F (47)

VIs that can operate on multiple encoders simultaneously (for example, Read High-Speed Capture Status) can take the encoder control (0x20) as their resource parameter.

All encoders feature high-speed capture inputs and breakpoint outputs. These features are implemented in the encoder processor FPGA and are fully functional when an encoder is used as an independent resource or as feedback for an axis.

Using Encoders Nine Through Fifteen

Complete the following steps to use encoders nine through fifteen:

  1. Open the desired VI in LabVIEW.
  2. View the block diagram.
  3. Right-click the appropriate terminal and select Create»Constant.
  4. Click the drop-down arrow on the constant and select Other.
  5. Type the selected encoder number (in decimal) for encoders nine through fifteen.