Integral Blocks
S5-115U Manual
11.2
Organization Blocks
Besides function blocks, organization blocks are also integrated in the CPUs of the S5-115U
programmable controller.
11.2.1 OB31 Scan Time Triggering
A scan time monitor monitors the program scan time. If program scanning takes longer than the
specified scan monitoring time (e.g., 500 msec.), the CPU enters the
"
STOP
"
mode.
This situation can occur, for instance, when
•
The control program is too long.
•
The program enters a continuous loop.
The scan time monitor can be started at any point in the control program using the OB31 call
(JU OB31), i.e. the scan monitoring time is restarted.
Prerequisite: SYSTEM OPERATIONS enabled on the programmer.
The scan monitoring time can be set in the following ways:
•
In system data word 96 (EAC0
H
) (see Chapter 2)
•
In DB1 (see Section 11.3).
11.2.2 OB160 Variable Time Loop
OB160 simulates operation execution times. This makes you independent of the different opera-
tion execution times of the various CPUs and you can program wait times uniformly for all CPUs of
the S5-115U range.
Proceed as follows:
The waiting time must be loaded into the ACCUM in
µ
sec. (range: 120 to 65535 or 78
H
to FFFF
H
).
Example:
A waiting time of one millisecond is to be programmed.
L KF +1000
JU OB 160.
Please note the following when programming OB160:
A process interrupt (OB2 to OB5) and the timed interrupt (OB6) can interrupt the waiting time
(provided no interrupt disable (IA) has been programmed). The waiting time stops during the in-
terrupt! Similarly, the waiting time is increased by running PG/OP operations. The times set are
therefore minimum times!
OBs 10 to 13 cannot interrupt OB160!
*In the case of CPU 944: 190
µ
s
11-32
EWA 4NEB 811 6130-02b
Содержание SIMATIC S5-115U
Страница 6: ...EWA 4NEB 811 6130 02b ...
Страница 16: ...EWA 4NEB 811 6130 02b ...
Страница 18: ...EWA 4NEB 811 6130 02b ...
Страница 26: ......
Страница 62: ...EWA 4NEB 811 6130 02b ...
Страница 64: ...EWA 4NEB 811 6130 02b ...
Страница 67: ......
Страница 74: ......
Страница 79: ......
Страница 80: ......
Страница 81: ......
Страница 82: ......
Страница 83: ......
Страница 84: ......
Страница 97: ......
Страница 98: ......
Страница 99: ......
Страница 114: ...EWA 4NEB 811 6130 02b ...
Страница 280: ...EWA 4NEB 811 6130 02b ...
Страница 372: ...EWA 4NEB 811 6130 02b ...
Страница 432: ...EWA 4NEB 811 6130 02b ...
Страница 442: ......
Страница 528: ...EWA 4NEB 811 6130 02b ...
Страница 590: ......
Страница 591: ......
Страница 592: ......
Страница 593: ......
Страница 594: ......
Страница 600: ...EWA 4NEB 811 6130 02b ...
Страница 602: ...EWA 4NEB 811 6130 02b ...
Страница 604: ...EWA 4NEB 811 6130 02b ...
Страница 624: ...EWA 4NEB 811 6130 02b ...
Страница 632: ...EWA 4NEB 811 6130 02b ...
Страница 644: ...EWA 4NEB 811 6130 02b ...
Страница 646: ...EWA 4NEB 811 6130 02b ...
Страница 652: ...EWA 4NEB 811 6130 02b ...
Страница 654: ...EWA 4NEB 811 6130 02b ...
Страница 660: ...EWA 4NEB 811 6130 02b ...
Страница 662: ...EWA 4NEB 811 6130 02b ...
Страница 666: ...EWA 4NEB 811 6130 02b ...
Страница 668: ...EWA 4NEB 811 6130 02b ...
Страница 674: ...EWA 4NEB 811 6130 02b ...