STEP 5 Operations
S5-100U
Setting a Counter “S” and Counting Down “CD”
Example:
When input I 0.1 is switched on (set), counter 1 is set to count 7. Output Q 1.0 is now “1”.
Every time input I 0.0 is switched on (count down), the count is decremented by 1.
The output is set to “0” when the count is “0”.
LAD
STL
CSF
A
I
0.0
CD
C
1
NOP
0
A
I
0.1
L
KC
7
S
C
1
NOP
0
NOP
0
NOP
0
A
C
1
=
Q
1.0
a a a a
a a a a
a a a a
1
Time
a a a a
a a a a
a a a a
a a a a
0
a a a a
a a a a
a a a a
a a a a
0
a a a a
a a a a
a a a a
a a a a
7
a a a a
a a a a
a a a a
a a a a
0
a a a a
a a a a
a a a a
a a a a
0
S C 1
I 0.0
I 0.1
C 1
Q 1.0
a a a a
a a a a
a a a a
a a a a
1
a a a a
a a a a
a a a a
a a a a
1
Circuit Diagram
Timing Diagram
0
S
CI
R
Binary
16 bits
Q 1.0
I 0.0
KC 7
Count
I 0.1
CQ
I I I I
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
C 1
Q 1.0
CD
CU
S
CV
BI
DE
R
Q
I 0.0
KC 7
I 0.1
KC 7
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
a a a a a a a a a a a a a
C 1
I 0.0
Q 1.0
I 0.1
CD
CU
S
CV
BI
DE
R
Q
S C 1
8-28
EWA 4NEB 812 6120-02b
Содержание SIMATIC S5-100U
Страница 6: ...EWA 4NEB 812 6120 02b ...
Страница 16: ...EWA 4NEB 812 6120 02b ...
Страница 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Страница 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Страница 23: ......
Страница 27: ......
Страница 36: ...EWA 4NEB 812 6120 02b ...
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 102: ...EWA 4NEB 812 6120 02b ...
Страница 156: ...EWA 4NEB 812 6120 02b ...
Страница 232: ...EWA 4NEB 812 6120 02b ...
Страница 268: ...EWA 4NEB 812 6120 02b ...
Страница 272: ...EWA 4NEB 812 6120 02b ...
Страница 336: ...EWA 4NEB 812 6120 02b ...
Страница 352: ...EWA 4NEB 812 6120 02b ...
Страница 412: ...EWA 4NEB 812 6120 02b ...
Страница 482: ...EWA 4NEB 812 6120 02b ...
Страница 484: ...EWA 4NEB 812 6120 02b ...
Страница 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Страница 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Страница 516: ...EWA 4NEB 812 6120 02b ...
Страница 522: ...EWA 4NEB 812 6120 02b ...
Страница 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Страница 524: ...EWA 4NEB 812 6120 02b ...
Страница 530: ...EWA 4NEB 812 6120 02b ...
Страница 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Страница 532: ...EWA 4NEB 812 6120 02b ...
Страница 534: ...EWA 4NEB 812 6120 02b ...
Страница 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Страница 536: ...EWA 4NEB 812 6120 02b ...
Страница 542: ...EWA 4NEB 812 6120 02b ...
Страница 543: ...Index EWA 4NEB 812 6120 02b ...
Страница 544: ...EWA 4NEB 812 6120 02b ...
Страница 550: ...EWA 4NEB 812 6120 02b ...