
9-9
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
9.5 On-Delay S5 Timer
The On-Delay S5 Timer instruction starts a specified timer if there is a
positive edge (that is, a change in signal state from 0 to 1) at the Start (S)
input. A signal change is always necessary to start a timer. The timer
continues to run with the specified time at the Time Value (TV) input as long
as the signal state at input S is 1. A signal state check for 1 at output Q
produces a result of 1 when the time has elapsed without error and when the
signal state at input S is still 1. When the signal state at input S changes from
1 to 0 while the timer is running, the timer is stopped. In this case, a signal
state check for 1 at output Q always produces the result 0.
A change from 0 to 1 at the Reset (R) input of the timer while the timer is
running resets the timer. This change also resets the time and the time base to
zero. The timer is also reset if the signal state is 1 at the R input while the
timer is not running.
The actual time value can be scanned at the outputs BI and BCD. The time
value at BI is in binary coded format; at BCD it is in binary coded decimal
format.
Certain restrictions apply to the placement of timer boxes (see Section 6.1).
Table 9-7 On-Delay S5 Timer Box and Parameters, with International Short Name
LAD Box Parameter Data Type Memory Area Description
T no.
no. TIMER T
Timer identification number. The
range depends on the CPU.
S_ODT
S BOOL I, Q, M, D, L, T, C Start input
_
SQ
TV S5TIME I, Q, M, D, L Preset time value (range 0 to 9999)
TV BI
R BOOL I, Q, M, D, L, T, C Reset input
BCD
Q BOOL I, Q, M, D, L Status of the timer
BI WORD I, Q, M, D, L Remaining time value (integer format)
BCD WORD I, Q, M, D, L Remaining time value (BCD format)
Table 9-8 On-Delay S5 Timer Box and Parameters, with SIMATIC Short Name
LAD Box Parameter Data Type Memory Area Description
T no.
no. TIMER T
Timer identification number. The
range depends on the CPU.
S_EVERZ
S BOOL I, Q, M, D, L, T, C Start input
_
SQ
TW S5TIME I, Q, M, D, L Preset time value (range 0 to 9999)
TW DUAL
R BOOL I, Q, M, D, L, T, C Reset input
DEZ
Q BOOL I, Q, M, D, L Status of the timer
DUAL WORD I, Q, M, D, L Remaining time value (integer format)
DEZ WORD I, Q, M, D, L Remaining time value (BCD format)
Description
Timer Instructions
Comentarios a estos manuales