
1–4
Overview of the Incremental Encoder Module
Publication 1794-6.5.15 – December 1998
The counter module handles up/down counting and detection of
selectable number of edges (X1, X2, X4) for incremental encoders
with 2 pulse trains, nominal 90
o
out of phase. The minimum stable
input condition is 2
µ
s.The following paragraphs detail operation of
the incremental encoder module.
Each of the 2 counters has a 16–bit counter register, a preset register
and a latch register.
Variables
Communication between the counter module and the control system
uses variables accessible in the control system program. These
variables include:
•
a counter register (Counter)
•
a preset register (PresetValue)
•
a latch register (LatchValue).
Signal registers and control words are used to set parameters for the
counter configuration. The control word sent to the incremental
encoder module can be read back to the control system, allowing
verification that one I/O scan been performed since the cycle has
been initiated.
Start Counting
The control bit CounterEnable enables counting. It must be set to 1
to enable counting and all other functions.
Selecting the Incremental Encoder and up/down counting
Depending on the incremental encoder, the module can be set in
different counter modes. The parameter is set using a 3 digit code in
write word 1 or 2 (depending on the channel) control word.
Mode Selection
Bit
02
01
00
Mode Selection bits
0
0
0
Counting on positive (rising) edge of input signal A. (Up/dwn
counting determined by B.)
0
0
1
Quadrature encoder X1
0
1
0
Quadrature encoder X2
0
1
1
Quadrature encoder X4
1
0
0
Counting up on the positive edge of input signal A, and down
on positive edge of input signal B.
1
0
1
No count function.
1
1
0
No count function.
1
1
1
No count function.
How the Incremental
Encoder Operates
Содержание FLEX I/O 1794-ID2
Страница 6: ...Using This Manual P 4 Publication 1794 6 5 15 December 1998 ...
Страница 10: ...Table of Contents iv Publication 1794 6 5 15 December 1998 ...
Страница 20: ...1 10 Overview of the Incremental Encoder Module Publication 1794 6 5 15 December 1998 ...
Страница 74: ...7 4 Calibrating Your Incremental Encoder Module Publication 1794 6 5 15 December 1998 ...