Siemens B4 Manuel D’Utilisation
Automation– and Drive Technology- SCE
3.
GENERATING DATA BLOCKS
Data blocks are generated and opened like program blocks in the tool LAD,STL,FBD: Program
blocks. They serve e.g. for the saving of data and system states.
blocks. They serve e.g. for the saving of data and system states.
In the following text, the generation of a simple example is described by the use of a global data
block:
Thereby values should be chosen with the switches 'S0' to 'S7' and displayed on an output module
‘Display‘. Thereby one has more switches by activation, where the representation of the value to
switch S7 has the highest priority and the representation of the value to switch S1 has the lowest.
The example relates to the displayed addresses below:
Inputs:
-
block:
Thereby values should be chosen with the switches 'S0' to 'S7' and displayed on an output module
‘Display‘. Thereby one has more switches by activation, where the representation of the value to
switch S7 has the highest priority and the representation of the value to switch S1 has the lowest.
The example relates to the displayed addresses below:
Inputs:
-
Switch S0 = I 0.0
-
Switch S1 = I 0.1
-
Switch S2 = I 0.2
-
Switch S3 = I 0.3
-
Switch S4 = I 0.4
-
Switch S5 = I 0.5
-
Switch S6 = I 0.6
-
Switch S7 = I 0.7
Outputs:
-
Display = QW4
T I A Training document
Page 7 of 18 Module B4
Last revision: 02/2002 Data blocks
Forward Notes Generating data blocks