S5-115U Manual
STEP 5 Operations
8.1.5
Counter Operations
The CPU uses counter operations to handle counting jobs directly. Counters can count up and
down. The counting range is from 0 to 999 (three decades). Table 8-5 provides an overview of the
counter operations. Examples follow the table.
Table 8-5. Overview of Counter Operations
Operation
Meaning
Set Counter
The counter is set on the leading edge of the RLO.
Parameter
0 to 127
Operand
S
R
Reset Counter
The counter is set to zero as long as the RLO is "1".
Count Down
The count is decremented by 1 on the leading edge of the RLO.
When the RLO is "0", the count is not affected.
ID
C
CD
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
CU
Count Up
The count is incremented by 1 on the leading edge of the RLO.
When the RLO is "0", the count is not affected.
Loading a Count
Counter operations call internal counters.
When a counter is set, the word in ACCUM 1 is used as a count. You must therefore first store
counts in the accumulator.
You can load a count with any of the following data types
KC
constant count
or
DW
data word
IW
input word
QW
output word
FW
flag word.
The data for these words must
be in BCD code.
EWA 4NEB 811 6130-02b
8-25
Содержание SIMATIC S5-115U
Страница 6: ...EWA 4NEB 811 6130 02b ...
Страница 16: ...EWA 4NEB 811 6130 02b ...
Страница 18: ...EWA 4NEB 811 6130 02b ...
Страница 26: ......
Страница 62: ...EWA 4NEB 811 6130 02b ...
Страница 64: ...EWA 4NEB 811 6130 02b ...
Страница 67: ......
Страница 74: ......
Страница 79: ......
Страница 80: ......
Страница 81: ......
Страница 82: ......
Страница 83: ......
Страница 84: ......
Страница 97: ......
Страница 98: ......
Страница 99: ......
Страница 114: ...EWA 4NEB 811 6130 02b ...
Страница 280: ...EWA 4NEB 811 6130 02b ...
Страница 372: ...EWA 4NEB 811 6130 02b ...
Страница 432: ...EWA 4NEB 811 6130 02b ...
Страница 442: ......
Страница 528: ...EWA 4NEB 811 6130 02b ...
Страница 590: ......
Страница 591: ......
Страница 592: ......
Страница 593: ......
Страница 594: ......
Страница 600: ...EWA 4NEB 811 6130 02b ...
Страница 602: ...EWA 4NEB 811 6130 02b ...
Страница 604: ...EWA 4NEB 811 6130 02b ...
Страница 624: ...EWA 4NEB 811 6130 02b ...
Страница 632: ...EWA 4NEB 811 6130 02b ...
Страница 644: ...EWA 4NEB 811 6130 02b ...
Страница 646: ...EWA 4NEB 811 6130 02b ...
Страница 652: ...EWA 4NEB 811 6130 02b ...
Страница 654: ...EWA 4NEB 811 6130 02b ...
Страница 660: ...EWA 4NEB 811 6130 02b ...
Страница 662: ...EWA 4NEB 811 6130 02b ...
Страница 666: ...EWA 4NEB 811 6130 02b ...
Страница 668: ...EWA 4NEB 811 6130 02b ...
Страница 674: ...EWA 4NEB 811 6130 02b ...