Skip to Main Content Skip to Search
Product Documentation

ADDI-DATA PA-1700 Incremental Encoder - PA-1700 Incremental Encoder block

Library

xPC Target Library for ADDI-DATA

Note

The driver block has two block outputs. The first outputs the absolute angle in radians. The second output is zero as long as the index or the reference point was not reached by rotating the encoder. If it is reached for the first time, and only for the first time, the corresponding counter is reset to zero and this output goes to 1. From then on the output 1 outputs an absolute angle even if the encoder is turned multiple times. The second output can be used for controlling or switching different Simulink submodels.

Block Parameters

Counter

From the list select 1, 2, or 3. This parameter specifies the counter used for this block. Two blocks for the same board (same base address) cannot have the same counter (channel) specified.

Mode

From the list select single, double, or quadruple. This parameter specifies the phase detection mode, that is, how many phase changes of the specified counter are detected (see the PA1700 manual).

Hysteresis

From the list choose either off or on. The Hysteresis parameter specifies whether a counter should skip a tick if the direction changes (see the PA1700 manual).

Resolution

Specifies the resolution of the connected incremental encoder for one revolution.

Sample time

Model base sample time or a multiple of the base sample time.

Base Address

Enter the base address of the board. It is important that this entry corresponds to the DIP switch settings on the board. For example, if the base address is 300 (hexadecimal), enter

0x300

The following jumpers must be set according to the parameters entered above:

  • Jumper J16, 17, and 18 must be set to position 1-2.

  • Jumper J13, 14, and 15 must be set to position 1-2.

  • Jumper J1, 5, and 9 must be set according to the connected encoders.

  • Jumper J2, 6, and 10 must be set according to the connected encoders.

  • Jumper J3, 7, and 11 must be set according to the connected encoders.

  • Jumper J4, 8, and 12 must be set according to the connected encoders.

For information on how to connect the encoders to the board, see the PA1700 manual.

If you want to use the 5 V power supply from the board (PIN20), you must insert Fuse 1 on the board. Refer to the PA1700 manual.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS