Technical data
Creating Data Blocks
11.2 Declaration View of Data Blocks
Programming with STEP 7
268 Manual, 05/2010, A5E02789666-01
11.2 Declaration View of Data Blocks
With data blocks that are not globally shared, the declaration view cannot be changed.
Column Explanation
Address Displays the address that STEP 7 automatically assigns for the variable when you finish
entering a declaration.
Declaration This column is only displayed for instance data blocks. It shows you how the variables in the
variable declaration of the function block are declared:
• Input parameter (IN)
• Output parameter (OUT)
• In/out parameter (IN_OUT)
• Static data (STAT)
Name Enter the symbolic name you have to assign to each variable here.
Type Enter the data type you want to assign to the variable (BOOL, INT, WORD, ARRAY, etc.).
The variables can have elementary data types, complex data types, or user-defined data
types.
Initial Value Here you can enter the initial value if you do not want the software to use the default value for
the data type entered. All values must be compatible with the data type.
When you save a block for the first time, the initial value is used as the current value if you
have not explicitly defined actual values for the variables.
Please note: Initial values cannot be downloaded to the CPU.
Comment Enter a comment in this field helps to document the variables. The comment can have up to
79 characters.