xPC Target    

PA-1700 Incremental Encoder

The driver block has two block outputs. The first outputs the actual 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 in the case the encoder is turned multiple times. The second output can be used for controlling or switching different Simulink submodels.

Driver Block Parameters

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

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

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

Resolution -- This field 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

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

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

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


  PA-1700 Advantech