S5-115F Manual
Input
0000
:
KH =
0001
:
KT =
0003
:
KF =
Data blocks can also be created or erased in the control program ( 3.1.8).
Program processing with data blocks
•
A data block must be called in the program with the C DB x operation (x = block No.).
•
Within a block, a data block remains valid until another data block is called.
•
When the program returns to the block that issued the call, the data block that was valid
before the block call is again valid.
Valid
DB
PB 7
C DB 10
DB 10
JU PB 20
DB 10
When PB 20 is called, the valid data area is entered in a memory.
When the program returns to the calling block, this area is reopened.
EWA 4NEB 811 6149-02
A13C
100.2
+21874
Figure 2-8. Data Block Contents
Figure 2-9. Validity Areas of Data Blocks
Introduction to STEP 5
Stored Values
DW0
DW1
DW2
Valid
PB 20
DB
DB 10
C DB 11
DB 11
A13C
2100
5572
2-19