Technical data
Configuring Messages
16.3 CPU-Oriented Message Configuration
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 357
Editing a Message Type
• Select the desired message block.
• Enter the required text in the appropriate columns or select the required attributes.
In the "Message Configuration" dialog box, you can click on the "More" button and enter the
message text and additional text in the "Default Texts" tab
If you selected a multi-channel message block (for example, "ALARM_8"), you can assign
specific texts and, to certain extent, specific attributes to each subnumber.
• If the texts or attributes for the instance should not be changed, you can lock them in the
message type.
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 the SIMATIC Manager, select the created instance DB, for example, "DB1" and select 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 assigned 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.
Note
If texts and attributes for an instance are displayed in green, this means the following: these texts and
attributes are still as they were configured in the message type. They have not been changed at the
instance.