Siemens SIMATIC STEP 7 V5.2 Getting Started page 87

Table of Contents

Advertisement

Assigning Symbols
Shared data blocks in the variable declaration table:
Using the menu command View > Data View, you can change the actual values of the data
type INT in the table for the shared data block (see Section 5.5).
Shared data blocks in the symbol table:
In contrast to the instance data block, the data type for the shared data block in the symbol
table is always the absolute address. In our example, the data type is "DB3." With the
instance data block, the corresponding function block is always specified as the data type.
You can find more information under Help > Contents in the topics
"Programming Blocks" and "Creating Data Blocks."
STEP 7 Getting Started
A5E00171228-01
Programming a Shared Data Block
You can also assign symbolic names
to data blocks.
Open the Symbol Table and enter the
symbolic name "S_Data" for the data
block DB3.
If you copied the symbol table from a sample
project (zEn01_02_STEP7__STL_1-10,
zEn01_06_STEP7__LAD_1-10 or
zEn01_04_STEP7__FBD_1-10) to your
"Getting Started" project in Chapter 4, you do
not need to add any symbols now.
Save the symbol table and close the
"Symbol Editor" window.
Also close the shared data block.
9-3

Advertisement

Table of Contents
loading

Table of Contents