Siemens SIMATIC S5-115U User Manual page 228

Simatic s5 series cpu 941-7ub11 cpu 942-7ub11 cpu 943-7ub11 and cpu 943-7ub21 cpu 944-7ub11 and cpu 944-7ub21
Table of Contents

Advertisement

STEP 5 Operations
Setting a Counter "S" and Counting Down "CD"
Example:
When input I 4.1 is switched on (set), counter 1 is set to the count 7. Output Q 2.5 is now "1".
Every time input I 4.0 is switched on (count down), the count is decremented by 1.
The output is set to "0" when the count is "0".
Timing Diagram
1
0
1
0
7
0
1
0
S C 1
STL
A
I
4.0
CD
C
1
NOP 0
A
I
4.1
L
KC 7
S
C
1
NOP 0
NOP 0
NOP 0
A
C
1
=
Q
2.5
8-28
I 4.0
I 4.1
C 1
Q 2.5
Time
S C 1
CSF
C 1
I 4.0
CD
CU
I 4.1
S
KC 7
CV
BI
DE
Q 2.5
R
Q
S5-115U Manual
Circuit Diagram
I 4.1
KC 7
R
S
CI
I 4.0
I I I I
CQ
0
Q 2.5
Count
LAD
C 1
I 4.0
CD
CU
I 4.1
S
KC 7
CV
BI
DE
R
Q
Q 2.5
EWA 4NEB 811 6130-02b
Binary
16 bits

Advertisement

Table of Contents
loading

Table of Contents