Delay Times - Siemens SIMATIC S5-115U User Manual

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
8.5.4

Delay Times

The following shows you how to program delay times with a timer in order to implement longer
wait times.
FB23 STL
SHEET
1
SEGMENT 1
0000
NAME :WAIT
0005
:O
F
0006
:ON
F
0007
:
0008
:L
KT 100.0
000A
:SD
T
000B SCHL :AN
T
000C
:JU OB 31
000D
:JC =SCHL
000E
:A
T
000F
:R
T
0010
:A
T
0011
:L
KT 001.0
0013
:SD
T
0014
:BE
You can use OB160 in the case of shorter times (up to 60 ms).
Example:
Program delay time of 30 ms:
L
KF
+30000
JU
OB
160
(see Section 11.2.2).
EWA 4NEB 811 6130-02b
PROGRAMMED DELAY
0.0
FORCE RLO "1"
0.0
ONE SECOND
0
START TIMER
0
LOOP
RESTART CYCLE TIME
0
0
RESET TIMER
0
RUN TIMER WITH RLO "0",
0
SO THAT NEW INITIATION
IS POSSIBLE
Explanation
LEN=23
STEP 5 Operations
8-79

Advertisement

Table of Contents
loading

Table of Contents