Exercise Guide
Exercise Guide
EXERCISE GUIDE
PROJECTS AND TAGS
Objective Create a new project with the WinCC Explorer and define the connections and tags required for the data
exchange between the AS and HMI computer. During the course, the Control Room project will have further pictures
and functions added to it.
Exercise
- In the "Create New Project" window enter "Control Room" as the project name and "D:\Courses\WINCCS" as
the project path.
- In the "Project Properties" window, specify the creator of the project. The "Project Properties" window is
opened by right-clicking on the project name displayed in the WinCC Explorer.
- In the "Project Properties" window in the "Update Cycles" dialog, change the "User cycle 1" to 15 sec (setting
in ms, entry 15000).
- In "Computer properties" in the "Graphics Runtime" dialog, set the window attributes to suit your purpose.
The "Computer properties" window is displayed by double-clicking on the computer name displayed in the
right-hand window of the WinCC Explorer.
Suggestion:
After commissioning: "Full Screen"; also "Disable shortcut keys for operating system access" (Parameters tab)
Exercise
- Open the "Control Room" project with P > File - O > Recent File
- In the open WinCC project open the Configuration Studio by double-clicking on the Tag Management.
- With "New Group" (right mouse click on the connection name, e.g. S7_300_PB) create the tag group "Filling
plant“
- In the table create the two tags "P_Tank1_EB0" and "P_Tank2_AB5". Enter data type and address according
to the table above.
- Please also create the four tags for the "Motor Picture" group and the three tags for the "Message Events"
group.
SMSTR-PERS/HIDROBOL
Result The process tags you have configured can now be linked with objects for the dynamization (action
configuration).
Exercise
- Before you create further tags, please note the number of process tags relevant for the WinCC license. You
find this information in the status bar of the WinCC Explorer if the Tag Management editor is selected.
- In the open WinCC project open the Configuration Studio by double-clicking on the Tag Management.
- Below this driver, create a new connection and then rename this as "PC_Info".
- With "New Group" (right mouse click on the connection name), create the tag group "PC_Diagnosis".
- In the table create the two tags "S_CPU_Load" and "S_Free_memory". Enter data type and address according
to the table above.
- After creating these two tags check whether the number of process tags has increased.
SMSTR-PERS/HIDROBOL
Result The tags you have configured can now be used for example in pictures or trend archives.
Objective To create tag groups (as shown above) with the corresponding internal tags within the group.
Exercise
- In the open WinCC project open the Configuration Studio by double-clicking on the Tag Management.
- With "New Group" (right mouse click on internal tags), create the tag group "I_Messages".
- With "New Tag" (right mouse click on the tag group name "I_Messages") in the "I_Messages" tag group, create
the tag "Messages_1_16“ tag of the data type "Unsigned 16-bit value".
- As an option, you can configure a start value for both tags. Also perform the configuration steps for the variable
group "I_Measurement_points" and create the tags listed above there.
Result The internal tags you have configured can now be linked with objects for the dynamization (action
configuration).
Objective: To be able to test communication with the S7-300, you will configure a picture with a process tag in your
project.
Exercise
- In the WinCC Explorer, double-click on Graphics Designer to open the editor for WinCC pictures.
1. The Graphics Designer displays an empty picture. With "Save As" you can rename the picture as
"Test_connection.pdl".
3. then to WinCC Tags -> SIMATIC S7 Protocol Suite -> PROFIBUS -> "Motor“ group
4. Drag the "P_speed_setpoint" tag into the picture. This automatically creates an I/O field for input and
output of this tag.
Result The internal tags you have configured can now be linked with objects for the dynamization (action
configuration).
SMSTR-PERS/HIDROBOL
GRAPHICS DESIGNER
In the picture window of the start picture "Start.PDL", different pictures need to be displayed. The picture selection
will be configured using buttons in the lower area
Exercise
- Three buttons from the Global Library > Operation > Screen Navigation
4. In the start picture, configure picture selection as a mouse click on the button at the lower end (below the
picture window) via a direct connection:
- To do this, in the Graphics Designer select the button labeled "INTRO",
- open the object properties of this button,
- select the "Events" tab, and select the "direct connection" for Mouse Click,
- in the Direct Connection window select:
for the source as "Constant" the picture name: "Intro.pdl" and
for the target "Object in Picture" the picture window with the name "Work_Pic“ as the "Object"
and "Picture Name" as the property.
5. Perform the same configuration steps for the button labeled "Motor":
- However in the Direct Connection window as the source select as "Constant" the picture name:
"Motor.pdl".
6. Change to the picture Intro.PDL and configure the following objects there:
- A graphics object (can be found in the standard palette in the group Smart Objects). In the configuration
dialog that opens you can use the button "Find..." to search for the following file: C:\Program Files
(x86)\SIEMENS\WinCC\bin\RTSPLASH.bmp (If necessary, take into account the installation path of your
PC). The BMP has the size 500x300 pixels. To avoid distortion, the graphics object should be the same size.
- Configure a static text (standard palette in the group Standard Objects) with the content " Fan control".
Adapt the text size etc. to your requirements.
7. Change to the picture Motor.PDL and configure the following objects there:
- Configure a static text (standard palette in the group Standard Objects) with the content "Motor".
SMSTR-PERS/HIDROBOL
8. Save the 3 pictures. You can do this picture by picture or using "File -> Save All".
9. In computer properties, for the Graphics Runtime mode, select Start.PDL as the start picture
10. Start Runtime and test the whether the changes to other pictures work.
Exercise 2: I/O fields for system Info channel and inserting motor data
Objective The two pictures (Intro, Motor) in the project "Control Room" each need to be expanded by two
input/output boxes (I/O fields). In the Motor picture an additional switch for starting and stopping the motor needs
to be inserted.
Exercise
GRAPHICS DESIGNER II
Objective The existing "Control_Room" project will be integrated in the S7 project "Ventilation. After integration of
the WinCC project, you can, for example access the symbols of the S7 from WinCC.
Exercise
3. Integrate the "Control Room" WinCC project in the S7 project "Ventilation_Step7" with Options > OS Import
(see figure above)
4. Configure the WinCC station (see slide "Configuration of the WinCC station with PROFIBUS CP 2/4")
5. Assign parameters to the CP 5711 (refer to the slide "Setting interface properties of the PROFIBUS CP 3/4")
6. Check the configuration with Netpro ( see slide " Data view of the WinCC station via NetPro 4/4")
Exercise 2: Gauge control with tag connection via STEP 7 symbol server
Objective An indicator instrument (gauge control) needs to be linked to a tag. The tag will be created by access to the
STEP 7 symbol server.
Exercise - In the "Ventilation" S7 project, open the integrated WinCC project "Control Room" with "Open Object".
1. Place a "WinCC Gauge Control" from the Control palette in your picture.
2. Select the object and go to the object properties. Find the attribute "Value“ there. Open the shortcut menu of
this attribute and select "Tag".
3. In the tag box, find the data block "User" and the "P_speed_actual" tag
4. Change the update time to 1 second. Afterwards the row should appear as follows:
5. You can set the attributes (such as maximum value, tick width, danger, warning,...) of the gauge control with
properties. With controls, it is often easier to use its own properties dialog. To do this please click on the
control.
6. In the start picture (in the overview area) configure the system function "Exit WinCC Runtime" on an additional
button with the Dynamic Wizard of the Graphics Designer.
Objective For the display of the motor status, the color of the motor will be changed. (You can take the motor display
from the symbol library)
It is possible to change the setpoint speed with the setpoint speed button.
Exercise
SMSTR-PERS/HIDROBOL
1. Select a motor display from the symbol library and place the selected symbol by dragging it to your picture.
You will find suitable symbols in the category "Blowers" or "Motors".
2. Dynamize the foreground color of the motor display using the Dynamic dialog depending on the tag "S7
program/User.Actual_speed". (up to zero gray; up to 1000 green; up to 1300 yellow, otherwise red)
3. Draw a polyline between the toggle button and the motor. In a Dynamic dialog, dynamize the line color
depending on the S7 program(1)/ user.on_off (0= black, 1= red)
4. Configure the three setpoint buttons for changing the setpoint speed 400, 900 and 1200 revolutions. Use the
direct connection with the tag "S7 program/User.Reference_speed".
Exercise 4: Inserting a bar for actual value and slider for setpoint
Objective Further objects will be inserted in the Motor picture: A WinCC slider control for the setpoint speed and a
bar with limit value monitoring for the actual speed.
Exercise
1. Configure a WinCC slider object (Controls palette/ActiveX controls) and connect it to the tag "S7 program(1)/
User.Reference_speed (Object Properties: Control Properties / Position). Also change the scaling to the value
range: 0 to 1400
2. Configure a bar and connect the bar with the tag "S7 program/User.Actual_speed“ (Object Properties:
Miscellaneous/Process Driver Connection)
3. Configure the lower display limit with 00 and the upper limit with 1400.
4. You can set the attributes (such as font size, number of places, color...) of the bar in the Properties.
5. If the speed exceeds >1000 the bar color should change to yellow > 1300 to red. AH = Alarm High, WH =
Warning High
Objective The display of the direction of rotation and a switch for selecting the direction of rotation are to be
configured. The direction of rotation display is configured with the smart object "Status Display".
Exercise
1. From the global library under Operation/Toggle Buttons select a suitable switch or copy the existing On/Off
toggle switch. Then link the tag S7 program/User. Direction_reference with the property Tag
Assignment/Toggle Bit. (Check this property to make sure that the check mark is not set in the "Indir" column.)
3. In the configuration dialog of the status display that then appears, the required graphics files must first be
added to the list using the "Browse" button. The two files "left.emf" and "right.emf" can be found in
D:\Courses\WINCCS\ab_exercise.
SMSTR-PERS/HIDROBOL
4. From the picture selection window, select your files ("left.emf") and "right.emf" and place these by dragging
them to the status table, Basic Picture column (0=left, 1=right).
Objective Two conveyor lines will be turned on or off via four buttons.
The free bit addresses can be used for other operations in the control program.
Exercise
1. Insert the four buttons and the I/O field at the bottom left in the Motor picture.
3. Connect the I/O field with the "Line" tag and select the following settings:
4. Call the Dynamic Wizard for each window button and generate the function Setting/Resetting a bit for bits 1 and 2.
Objective The operator will be informed of restrictions to the setpoint speed in two different ways.
Exercise
1. Call-up the Motor picture and take the object Multiple row text from the Smart Objects and edit a static text
with the information text: "The maximum setpoint speed is 1350.“ Adapt the font size and colors. The object
name should be Help text. The property Miscellaneous/Display must be set to no.
2. Configure a round button and under Events Mouse/Press Left the following direct connection:
- Source: Constant 1
- Target: Object in picture, Help text , Display
3. For the round button also under Events Release Left the following direct connection:
- Source: Constant 0
- Target: Object in picture, Help text , Display
4. Configure the tooltip text for the input field for the setpoint speed.
5. Save the picture and test the functions.