Technical data

Configuring Messages
16.2 Project-Oriented Message Configuration
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 349
3. In the code section of the function block, insert the call for the selected message block, here
"CALL alarm", and finish your entry with
RETURN.
Result: The input variables for the called message block (here SFB33) are displayed in the
code section of the function block.
4. Assign the symbolic name you assigned in step 2 for the message block input, here "Mess01,"
to the variable "EV_ID". The system attributes are now applied for the message of type "alarm".
Result: A flag should appear in the "Name" column for the parameter "IN" if the column is not
selected. The selected block is then set as a message-type block. The required system
attributes (for example, S7_server and S7_a_type) and the corresponding values are assigned
automatically (Note: for certain SFCs you will have to assign the system attributes for the
parameter "IN" yourself. To do this select the menu command Edit > Object Properties and
then select the "Attributes" tab.).
Caution: If you do not call an SFB, but rather an FB that contains multiple instances and
configured messages, you must also configure the messages of this FB, with multiple
instances, in the calling block.
5. Repeat steps 2 to 4 for all calls to message blocks in this function block.
6. Save the block using the menu command File > Save.
7. Close the "LAD/STL/FBD" window.
Opening the Message Configuration Dialog Box
Select the desired message block and then select the menu command Edit > Special Object
Properties > Message in the SIMATIC Manager.
Result: The STEP 7 message configuration dialog box (standard dialog box) is opened.
Information on opening the PCS7 Message Configuration function can be found under PCS 7
Message Configuration.
Editing a Message Type
1. Select the desired message block, open the message configuration, and enter the required
message text in the "Text" and "Attributes" tabs or select the required message attributes.
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.
2. Assign the required display devices to the message type by clicking the "New Device" button
and selecting the required display devices in the "Add Display Device" dialog box.
In the following tabbed pages, enter the required texts and attributes for the display devices. Exit
the dialog box with "OK".
Note
When editing the display device specific texts and attributes, please read the documentation supplied
with your display device.