Siemens SIMATIC S5-95F Manual page 199

Table of Contents

Advertisement

S5-95F
Starting a Timer
Example:
Schematic Representation
Program
L
KT 100.0
SP T
17
A
T
17
=
Q 1.0
n:
number of program scanning cycles
t
:
program scan time
p
Except for "Reset timer", all timer operations are started only when there is an edge change. The
RLO changes from "0" to "1".
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 6210-02
Signal from
timer 17
0
1
1s - n · t
p
Explanation
The schematic shows the "n
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.
*
STEP 5 Operations
th
+ 1"
8-19

Advertisement

Table of Contents
loading

Table of Contents