0% found this document useful (0 votes)
7 views8 pages

Exercise Guide

The document is an exercise guide for creating and configuring a 'Control Room' project using WinCC Explorer, including the setup of AS connections, process tags, system info channel tags, and internal tags. It details step-by-step instructions for designing graphics, integrating the project with STEP 7, and implementing motor control functionalities. The guide emphasizes the importance of linking tags with graphical objects for effective data visualization and control.

Uploaded by

alexandromontesa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views8 pages

Exercise Guide

The document is an exercise guide for creating and configuring a 'Control Room' project using WinCC Explorer, including the setup of AS connections, process tags, system info channel tags, and internal tags. It details step-by-step instructions for designing graphics, integrating the project with STEP 7, and implementing motor control functionalities. The guide emphasizes the importance of linking tags with graphical objects for effective data visualization and control.

Uploaded by

alexandromontesa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

SMSTR-PERS/HIDROBOL

EXERCISE GUIDE
PROJECTS AND TAGS

Exercise 1: Creating the Project “ControlRoom”, configuring an AS Connection

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

- Open the WinCC Explorer

- With P > File - O > New create a new "Single-user project“.

Legend: P corresponds to pull-down menu, O corresponds to operation in the pull-down menú

- 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:

For commissioning select "Minimize", "Maximize" and "Adapt Picture".

After commissioning: "Full Screen"; also "Disable shortcut keys for operating system access" (Parameters tab)

Exercise 2. Configuring process tags and tags groups

Objective Configuration for SIMATIC S7 tag coupling, creating tags

Exercise

- Open the WinCC Explorer

- Open the "Control Room" project with P > File - O > Recent File

Legend P corresponds to Pull-down menu, O corresponds to operation in the pull-down menú

- 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 3. Configuring system info channel tags and groups

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.

- Insert the new driver "System Info".

- 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.

Exercise 4: Configuring internal tags and tag groups

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).

Exercise 5: Diagnostics of process communication

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".

2. Go to the "Tags" tab and

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.

5. Save the picture.

6. Start WinCC Runtime.

Result The internal tags you have configured can now be linked with objects for the dynamization (action
configuration).
SMSTR-PERS/HIDROBOL

GRAPHICS DESIGNER

Exercise 1: Creating pictures and changing to another picture

Objective The "Control_Room" project will be expanded with three pictures.

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

of the start picture (below the picture window).

Exercise

1. Open the "Control Room" project with the WinCC Explorer.


2. Configure 3 pictures with the WinCC Graphics Designer:
- Start.PDL, picture size 1280x1024 pixels [widescreen: 1600x900]
- Intro.pdl, picture size 1280x840 [widescreen: 1600x710]
- Motor.pdl, picture size 1280x840 [widescreen: 1600x710]
3. In the Start.pdl picture add the following objects:
- picture window (object palette Smart Objects)
 Name: "Work_Pic"
 Geometry: Picture window position: X=0 and Y=100, Picture window size: 1280x840 [widescreen
1600x710]
 Other: Picture name: INTRO.PDL

- Three buttons from the Global Library > Operation > Screen Navigation

- Clock (object palette > Controls)

- Two buttons below the picture window

 Labeling on the first button: Intro

 Labeling on the second button: Motor

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

1. Open the "Control Room" project with the WinCC Explorer.


2. In the WinCC Graphics designer expand the start picture Intro.PDL with two I/O fields. In the object palette of
the Graphics Designer, you will find the required I/O field object in Smart Objects.
First click on the required object in the object palette and then drag the I/O field to the required location and
the required size with the mouse.
The I/O fields are used to display the system info channel tags "S_CPU_Load“ and "S_Free_memory“ with
corresponding static text (see the left picture above).
Use the configuration dialog of the I/O field to configure the tag connection. The configuration dialog appears
automatically when placing objects (e.g. an I/O field) in the picture. The configuration dialog can be opened
by pressing the Shift key and double-clicking on the object to be configured (e.g. I/O field) or via the shortcut
menu.
Set the global properties under the item Display (for I/O fields and static texts) to "no" if you do not want to
use the globally defined colors. Otherwise, the colors (e.g. foreground, background or font color) cannot be
selected individually for the objects.
3. In the WinCC Graphics designer expand the Motor picture Motor.PDL with two I/O fields displaying the
process tags "P_speed_setpoint" and "P_speed_actual" with corresponding static text (see right figure above).
Use the configuration dialog of the I/O field to configure the tag connection.
4. In the WinCC Graphics designer expand the Motor picture Motor.PDL with a toggle button from the symbol
library. Drag the toggle button "ON_Off_6" to your picture. You will find this toggle button in the library under
"Global Library\Operation\Toggle Buttons"
5. Connect the toggle button with the tag "P_Motor_on_off“ in the object properties Properties\Process
Interfacing\Toggle Bit (not under Events). The tag "P_Motor_on_off" is connected to the dialog tag with right
mouse click on the "white lamp symbol". This defines the "P_Motor_on_off" tag as a toggle bit.
6. Save all pictures and test the following points in runtime:
- The speed can also be 4-digit.
- The operator can only enter a value in the box for the speed setpoint.
- The motor can be started and stopped with the toggle button.
- The tags for the free memory and CPU load are showing practical values.
SMSTR-PERS/HIDROBOL

GRAPHICS DESIGNER II

Exercise 1: Integration of the OS (with the Control Room project) in STEP 7

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

1. Close WinCC Explorer

2. Open S7 project "Ventilation" on drive

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.

7. Save the picture and test the functions.

Exercise 3: Motor control and color change

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)

The Dynamic dialog can be used for the color change.

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".

5. Save the picture and test the functions.

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

6. Change the bar properties in Miscellaneous/Change Color to "Segment“

7. Save the picture and test the functions.

Exercise 5: Status display for direction of rotation display

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.)

2. Place a status display at the required position in the Motor picture.

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).

5. Connect the status display with the process tag S7-Program/User.Direction_act“.

6. Save the picture and test the function.

Exercise 6: Setting a bit in a byte

Objective Two conveyor lines will be turned on or off via four buttons.

The switching action causes a bit to be set and reset in a byte.

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.

2. Create the internal tag "Line" as an unsigned 8-bit value.

3. Connect the I/O field with the "Line" tag and select the following settings:

- Field Type: Output


- Output Value: Line
- Update Cycle: On change
- Data Format: Binary
- Output Format: 011111111

4. Call the Dynamic Wizard for each window button and generate the function Setting/Resetting a bit for bits 1 and 2.

5. Save the picture and test the functions.

Exercise 7: Help function for the plant operator

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.

You might also like