Siemens SIMATIC S5-115U User Manual page 229

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

S5-115U Manual
Resetting a Counter "R" and Counting Up "CU"
Example:
When input I 4.0 is switched on, the count in counter 1 is incremented by 1. As long as a second
input (I 4.2) is "1", the count is reset to "0".
The A C1 operation results in signal state "1" at output Q 2.4 as long as the count is not "0".
Timing Diagram
1
0
1
0
2
0
1
0
R
STL
A
I
4.0
CU
C
1
NOP 0
NOP 0
NOP 0
A
I
4.2
R
C
1
NOP 0
NOP 0
A
C
1
=
Q
2.4
EWA 4NEB 811 6130-02b
I 4.0
I 4.2
C 1
Q 2.4
Time
C1
CSF
C 1
I 4.0
CU
CD
S
CV
BI
DE
I 4.2
Q 2.4
R
Q
STEP 5 Operations
Circuit Diagram
I 4.2
R
S
CI
I 4.0
I I I I
CQ
0
Q 2.4
LAD
C 1
I 4.0
CU
CD
S
CV
BI
DE
I 4.2
R
Q
Q 2.4
Binary
16 bits
8-29

Advertisement

Table of Contents
loading

Table of Contents