Siemens CPU 948 Programming Manual page 81

Simatic s5 s5-155u
Table of Contents

Advertisement

Nesting depth
Example of nesting depth
Program
processing
level
OB 1
PB 1
2
1
Fig. 3-5
Example of block nesting depth
You can determine the nesting depth of your program as follows:
- Add all the organization blocks you have programmed
(in the example: 4 OBs).
- Add the nesting depth of the individual organization blocks
(in the example: 2 + 2 + 1 + 0 = 5).
- Add the two amounts together to obtain the program nesting depth
(in the example: 4 + 5 = nesting depth 9). It must not exceed a value
of 40.
CPU 948 Programming Guide
C79000-G8576-C848-04
You can only nest 40 blocks within one another. If more than 40
blocks are called, the CPU signals an error and goes to the stop mode.
OB 13
PB 131
FB 1
4
3
5
Program Organization
OB 2
FB 21
FB 131
Nesting depth
7
8
6
OB 25
9
3 - 9

Advertisement

Table of Contents
loading

Table of Contents