Introduction to STEP 5
S5-115U Manual
7.4
Program Execution
Some organization blocks handle the task of structuring and managing the control program.
These OBs can be grouped as follows according to task:
•
OBs for RESTART program execution
•
OB for cyclic program execution
•
OBs for time-controlled program execution
•
OBs for (process) interrupt-driven program execution
•
OBs for handling programming errors and PLC malfunctions.
There are also OBs which offer functions similar to those of the integral function blocks (e.g. PID
control algorithm). These OBs are described in the chapter on "Integral Blocks" (see Chapter 11).
You will find a summary of all OBs in Section 7.3.1.
The following subsections indicate which special organization blocks are provided by the CPU for
the tasks listed above and the points to watch when programming them.
7.4.1
RESTART Program Execution
At restart, i.e.
•
after a STOP RUN transition (manual cold restart),
and
•
after a POWER OFF POWER ON transition (automatic cold restart after power restore, if the
CPU was previously in the RUN mode),
the operating system of the CPU automatically calls a RESTART OB; provided one is programmed:
•
OB21 (in the case of manual cold restart)
or
•
OB22 (in the case of automatic cold restart after power restore, if the CPU was previously in
the RUN mode).
If you have programmed these blocks, this program is executed before cyclic program execution;
it is therefore suitable for, e.g. (one-off) setting of specific system data. If the relevant RESTART
OB is not programmed, the CPU jumps direct to the RUN mode (cyclic program execution, OB1).
The restart characteristics of the CPUs are detailed in Section 2.5.2. Here we will give examples of
how a RESTART OB can be programmed.
Example 1: Programming OB22
After power restoration, check that all input/output modules are ready for operation. If one or
more modules cannot be accessed (are not plugged in or have malfunctioned), the PLC should
jump to the STOP mode.
7-18
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 ...