Onboard Counter Inputs
S5-90U/S5-95U
•
Scanning the Actual Counter Status
The counter status can be scanned and reset to "0". The same STEP 5 operations as for individual
counters can be used (see Section 11.3).
In the following, you will find a program example for the input of a new comparison value for the
counter cascade.
Example:
When the comparison value is reached, the new comparison value 1,280,520 for the
counter cascade is specified.
Set the parameters for the counter cascade in DB1 (see Table 11-8).
Calculate the hexadecimal value of 1, 280, 520.
a a a
a a a
a a a
a a a
0
0
IW 38
IW 36
Counter Register - Counter Cascade
a a a a a a a a
a a a a a a a a
a a a a a a a a
a a a a a a a a
a a a a a a a a
bin.:
0
0
0
1
0
0
1
1
1
0
0
0
1
0
1
0
0
0
0
0
1
0
0
8
0
A
8
3
1
0
0
0
0
16
a a a a a a a a
a a a a a a a a
a a a a a a a a
a a a a a a a a
hex.:
0
Load the following program into the PLC.
STL
Explanation
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
OB3
A
I
35.0
R
I
35.0
A
I
35.1
R
I
35.1
JC
FB 11
BE
The counter cascade counted until it reached a
comparison value. An interrupt was triggered.
Bits 35.0 and 35.1 in the diagnostic byte are
reset.
The program branches to FB11.
STL
Explanation
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
FB11
L
KH
0013
L
KH
8A08
T
PW
36
*
BE
User program responds to “Comparison value
reached“.
The new comparison value is loaded into the ACCUs.
The counter cascade is set.
*
If the S5-95U counter is cascaded, the operation "T PW 36" transfers ACCU 1 and ACCU 2.
11-8
EWA 4NEB 812 6115-02b
Summary of Contents for SIMATIC S5-90U
Page 6: ...EWA 4NEB 812 6115 02b ...
Page 16: ...EWA 4NEB 812 6115 02b ...
Page 23: ......
Page 32: ...EWA 4NEB 812 6115 02b ...
Page 46: ...EWA 4NEB 812 6115 02b ...
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 64: ......
Page 65: ......
Page 66: ......
Page 67: ......
Page 89: ......
Page 102: ...EWA 4NEB 812 6115 02b ...
Page 118: ...EWA 4NEB 812 6115 02b ...
Page 242: ...EWA 4NEB 812 6115 02b ...
Page 288: ...EWA 4NEB 812 6115 02b ...
Page 300: ...EWA 4NEB 812 6115 02b ...
Page 362: ...EWA 4NEB 812 6115 02b ...
Page 536: ...EWA 4NEB 812 6115 02b ...
Page 538: ...EWA 4NEB 812 6115 02b ...
Page 540: ...EWA 4NEB 812 6115 02b ...
Page 562: ...EWA 4NEB 812 6115 02b ...
Page 564: ...EWA 4NEB 812 6115 02b ...
Page 590: ...EWA 4NEB 812 6115 02b ...
Page 596: ...EWA 4NEB 812 6115 02b ...
Page 598: ...EWA 4NEB 812 6115 02b ...
Page 604: ...EWA 4NEB 812 6115 02b ...
Page 606: ...EWA 4NEB 812 6115 02b ...
Page 608: ...EWA 4NEB 812 6115 02b ...
Page 610: ...EWA 4NEB 812 6115 02b ...
Page 620: ...EWA 4NEB 812 6115 02b ...