Technical data

Configuring Messages
16.2 Project-Oriented Message Configuration
Programming with STEP 7
350 Manual, 05/2010, A5E02789666-01
Creating Instance Data Blocks
1. When you have created a message type, you can associate instance data blocks to it and edit
the instance-specific messages for these data blocks.
To do this, in the SIMATIC Manager open the block that is to call your previously configured
function block, for example, "OB1", by double-clicking it. In the open code section of the OB,
enter the call ("CALL"), the name and number of the FB to be called and of the instance DB
that you want to associate with the FB as an instance. Confirm your entry with
RETURN.
Example: Enter "CALL FB1, DB1". If DB1 does not yet exist, confirm the prompt asking
whether you want the instance DB created with "Yes."
Result: The instance DB is created. In the code section of the OB, the input variables of the
associated FBs, here for example "Mess01," and the message number allocated by the
system, here "1," are displayed.
2. Save the OB with the menu command File > Save and close the "LAD/STL/FBD" window.
Editing Messages
1. In SIMATIC Manager, select the generated instance DB, for example, "DB1" and then call the
menu command Edit > Special Object Properties > Message to open the message
configuration dialog box.
Result: The "Message Configuration" dialog box is opened and the selected instance DB with
the message number allocated by the system is displayed.
2. Enter the required changes for the corresponding instance DB in the appropriate tabs and add
other display devices if you wish. Exit the dialog box with "OK."
Result: The message configuration for the selected instance DB is then complete.
Transferring Configuration Data
Transfer the configured data to the WinCC database (via the AS-OS connection configuration)
or the ProTool database.
16.2.2.2 How to Edit Block-Related Messages (Project-Oriented)
1. In the SIMATIC Manager, select a block and then select the menu command Edit > Special
Object Properties > Message.
2. In the folder structure, click a message block input or one of its subnumbers (if available).
Result: The tabbed section for a standard message is displayed.
3. Enter the required texts and attributes in the "Text" and "Attributes" tabs.
Result: You have created a standard message that can be displayed on all display devices.
4. Using the "New Device" button, add a new display device of the type "ProTool" (Opx) or
"WinCC." Only those display devices on which the configured messages can be displayed are
available for selection.
Result: The new device is added and selected, and the corresponding tabbed section is
displayed.
5. Enter attributes and texts for the display-specific message in the display-specific "Texts" and
"Attributes" tabs.
Result: You have created a message variation that is only used as the message for the
selected display device.
If you want to edit other message variations for existing display devices:
Select and open the message block in the detailed view by double-clicking it.
Result: The first display device is automatically selected and you can now edit display-specific