Counter Types
Section 3-2
30
3-2-1
Circular Counter
Note
All of the functions listed in Section 1-3-2
can be used
if a Circular Counter is configured.
Configuring Circular Counters
A Circular Counter has 32-bits (the full counting range) available to count up- or
downwards over the positive counting range between 0 and the Upper Count
Limit.
Configuring Upper Count
Limit
The Upper Count Limit can be configured between 1 and 4,294,967,295
(=FFFFFFFF
H
). By default the Upper Count Limit is equal to the maximum possi-
ble count limit of FFFFFFFF
H
.
For Circular Counters the Counter automatically rolls over to 0 if the Counter Value
exceeds the Upper Count Value and continues counting. If the Counter Value
goes below 0 the Counter rolls over to the Upper Count Value and continues
counting.
CNT3:
CNT4:
m+50
m+70
Counter Type:
0 = Circular Counter
CNT1:
CNT2:
m+10
m+30
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
0
(=00000000
)
≤
≤
≤
≤
H
H
Rollover
Counter Value
1 Upper Count Limit 4,294,967,295
00000001 Upper Count Limit FFFFFFFF
Up
Counting
Down
Counting
CNT3:
CNT4:
m+53
m+73
m+54
m+74
Upper Count Limit
CNT1:
CNT2:
m+13
m+33
m+14
m+34
15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
Set Upper Count Limit for Circular Counters between 00000001
H
and FFFFFFFF
H
.
Per default (=00000000
H
) the Upper Count Limit is equal to FFFFFFFF
H
.
Содержание CJ1W-CTL41-E
Страница 2: ...i SYSMAC CJ series CJ1W CTL41 E 4 Channel Counter Unit Operation Manual Produced September 2004...
Страница 3: ...ii...
Страница 5: ...iv...
Страница 9: ...viii...
Страница 31: ......
Страница 43: ......
Страница 73: ......
Страница 119: ......
Страница 123: ......
Страница 126: ......
Страница 127: ......
Страница 131: ......
Страница 133: ...116...