S5-100U
STEP 5 Operations
Starting a timer
In the programmable controller, timers run asynchronously to program scanning. The time that has
been set can run out during a program scanning cycle. It is evaluated by the next time scan. In the
worst case, an entire program scanning cycle can go by before this evaluation. Consequently,
timers should not activate themselves.
Example:
1s - n · t
p
Schematic Representation
Explanation
The schematic shows the “n
th
+ 1”
processing cycle since timer T 17* was
started. Although the timer ran out
shortly after the statement “= Q 1.0”,
output Q 1.0 remains set. The change is
not considered until the next program
scanning cycle.
*
KT 100.0 is equal to 1 s.
Program
Signal from
timer 17
L
KT 100.0
SP T
17
A
T
17
=
Q
1.0
n:
number of program scanning cycles
t
p
:
program scan time
0
1
The following rules apply to timers:
•
Except for “Reset timer”, all timer operations are started only when there is an edge change.
The RLO alternates between “0” and “1”.
•
After being started, the loaded time is decremented in units corresponding to the time base until
it reaches zero.
•
If there is an edge change while the timer is running, the timer is reset to its initial value and
restarted.
•
The signal state of a timer can be scanned with Boolean logic operations.
EWA 4NEB 812 6120-02b
8-19
Содержание 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 ...