Siemens CPU 948 Programming Manual page 70

Simatic s5 s5-155u
Table of Contents

Advertisement

Data Blocks
Example 2:
range of validity of data blocks
(Fig. 2-5)
Data block DB 10 is opened in program block PB 7 (C DB 10). During the
subsequent program execution, the data of this data block are processed.
After the call (JU PB 20) program block PB 20 is processed. Data block
DB 10, however, remains valid. The data area only changes when data block
DB 11 (C DB 11) is opened.
Data block DB 11 now remains valid until the end of program block PB 20
(BE).
After the jump back to program block PB 7, data block DB 10 is once again
valid.
PB 7
C DB 10
JU PB 20
BE
Range of validity of DB 10
Range of validity of DB 11
Fig. 2-5
Range of validity of an opened data block
2 - 40
PB 20
C DB 11
BE
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents