![Siemens SIMATIC TI505 Скачать руководство пользователя страница 64](http://html.mh-extra.com/html/siemens/simatic-ti505/simatic-ti505_user-manual_374681064.webp)
Understanding Module Operation
3-12
High Speed Counter Encoder Module User Manual
3.6
Setting Preset Values and Programming Options for Channel 1
The lower byte of WY21 and all of WY22 contain the Preset 1 24-bit integer
value. Use the upper byte of WY21 to configure programming values.
Together, the preset value and the programming values determine the count
method and how Output 1 functions when count and preset are equal, or
when the count value overflows or underflows. Table 3-10 (shaded areas)
shows the word formats. Table 3-11 lists the programming values of WY21.
Table 3-10
Channel 1, 24-Bit Counter: Preset 1 Value
Word
MSByte
LSByte
WY21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
WY22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Table 3-11
Channel 1, 24-Bit Counter: WY21 Programming Bit Values
Bit Position
Description
01
02
03
04
05
06
07
08
Mode
0
0
0
Direction counting (count: input A, direction: input B)
0
0
1
Direction counting (count: input A, direction: input B)
0
1
0
Up/Down counting (count up: input A, count down: input B)
0
1
1
Up/Down counting (count up: input A, count down: input B)
1
0
0
Quadrature 1X (input A pulses, input B pulses)
1
0
1
Quadrature 2X (input A pulses, input B pulses)
1
1
0
Quadrature 4X (input A pulses, input B pulses)
1
1
1
Quadrature 4X (input A pulses, input B pulses)
01
02
03
04
05
06
07
08
Counter Mode Setup
0
0
0
Binary counting, recycle mode
0
0
1
Binary counting, non-recycle mode*
0
1
0
Divide-by-N counting, recycle mode
0
1
1
Divide-by-N counting, non-recycle mode*
01
02
03
04
05
06
07
08
Internal Sample Interval
1
0
0
1 millisecond sample, (binary, recycle mode)
1
0
1
10 millisecond sample, (binary, recycle mode)
1
1
0
100 millisecond sample, (binary, recycle mode)
1
1
1
1 second sample, (binary, recycle mode)
0
Index or Period pulse latches counter value
1
Index or Period pulse loads counter with preset 1 value
0
Output Compare, Latch, Compare Toggle, (select jumper to match)
1
Output Rollover, (select jumper to match)
*In this mode, the output is configured as borrow toggle and carry toggle. These outputs are the cycle completion indicator.
Channel 1,
24-Bit Counter 1,
Preset 1