Technical data

Configuring Messages
16.2 Project-Oriented Message Configuration
Programming with STEP 7
348 Manual, 05/2010, A5E02789666-01
16.2.2.1 How to Create Block-Related Messages (Project-Oriented)
Basic Procedure
Programming Message-Type Blocks (FB)
1. In the SIMATIC Manager select the function block (FB) for which you want to generate a
block-related message and open this block with a double-click.
Result: The selected block is opened and displayed in the "LAD/STL/FBD" window.
2. Fill out the variable declaration table. For every message block that is called in the function
block you must declare variables in the calling function block.
Enter the following variables in the variable overview column:
- For the parameter "IN" enter a symbolic name for the message block input, for example,
"Meld01" (for message input 01) and the data type (must be "DWORD" without an initial
value).
- For the parameter "STAT" enter a symbolic name for the message block to be called, for
example, "alarm" and the corresponding data type, in this case "SFB33."