PROJECT3 WinCC
PROJECT3 WinCC
PROJECT3 WinCC
List of contents 1 Objectives of the project 2 Introduction 2.1 Overview of visualization software SIMATIC WinCC 3 Hard- and software 4 Procedure for design, configuration and generation of an image of the Coin plant 5 Problem description of a coin plant 5.1 Technology schematics 5.2 Problem description 6 Pattern for the graphic representation of the process 7 List of variables 8 Procedure for the input of the object properties
2 Introduction
2.1 Overview of visualization software SIMATIC WinCC
WinCC (Windows Control Center) by Siemens is a programming software solving visualization tasks concerning operator-process monitoring and control in the production and process automation. It provides industry suitable function units for graphic representation, alarming, archiving and protocolling. The operating systems MS Windows 95/98 or MS Windows NT serve as platform for WinCC. The system design of the Control Center: Control Center Explorer: within the Control Center Data Manager: supplies the process image with tag values and procures data from the automation systems (receive, request). Function units Graphic system (Graphics Designer): graphic representation and process interfacing Action processing (Global Scripts): Dynamizing of the project to user specific requirements Alarming system (Alarm Logging) Archiving and processing of measured values (Tag Logging) Report system (Report Designer) The documentation for WinCC is very extensive. Therefore it is recommended to run the interactive learning programm by selecting the menue command "Tutorial" before beginning a new project. During this program, the operation of WinCC is completely worked through by means of an example. To make setting up and editing a project easier, a pattern Procedure for design, configuration and generation of an image of the coin plant as well as Procedure for the input of the object properties were designed.
4 Procedure for design, configuration and generation of an image of the Coin plant
( ! = left mouseclick) (!R = right mouseclick) Starting with WinCC and creating a new project Start menu " Simatic # WinCC # Windows Control Center !(starts the program) # file!, # new!, Adjusting a new project: In the box Control Center # $ Single-user system, then Ok !. Creating a new project : # Project name : enter a project name (projectname) # Project path: for example C:\SIEMENS # Create button !. New connection:
---( Projectname
%&Computer !, in the table Name, Type, Parameters # Name !R # Properties ! # computername: enter computername, $ Server, Ok !. Tag management !R, # Add New Driver !, in the box Add New Driver # SIMATIC S7 Protocol Suite.CHIN !, open !, # !, SIMATIC S7 Protocol Suite
-
MPI !R # New driver connection !, in the box Connection Properties Name: Connection1 Service list: computername, then Ok !.
MPI Connection1 !R # New group.. !, in the box Properties of tag group: Name: enter outputs, Ok !, MPI Connection1 !R # New group.. !, Outputs in the box Properties of tag group: Name: enter inputs, Ok !, MPI
-
Connection1 Outputs !R # New tag !, in the box Tag Properties: enter name and datatype of the tag, Ok !.
Inputs. In the tag table: Tag !R # Address !, In the box Address Properties: Data: output enter, then Ok !, Address: Bit For example: Q 4 Bit 1 In addition you have to define all the tags for tag groups Inputs and Outputs by upturned example.
Creating the process image Select in Control Center tab Editor Graphics Designer !R, and select new picture !R # NewPd10.Pdl in right window of Control Center !R, # Rename picture !, # in submit box type Projectname. #& Open the picture Projectname.pdl by open picture !R or doubleclick on the filename. By using the object palette, style palette, Dynamic Wizard, as well as the library in the toolbar, the image of the coin plant and the text fields are created. (see 6: Pattern for the graphical representation of the process). Afterwards, properties of all objects are defined. (see 8: Procedure for the input of the object properties)
7 List of variables
Name S0 S1 S2 S3 LI Valve1 Valve2 Valve3 Valve4 Q 4,5 Type Binary Tag Binary Tag Binary Tag Binary Tag Binary Tag Binary Tag Binary Tag Binary Tag Binary Tag Binary Tag Parameter I 0.0 I 0.1 I 0.2 I 0.3 I 0.4 Q 4.1 Q 4.2 Q 4.3 Q 4.4 Q 4.5
Inputs
Outputs
Q 4,5 is the rising edge of the sequential control program of the installation for valve 3.
Signal-lamps
Object !, !R, Properties! In the box Properties: --Flashing!, Attribute Static Dynamic Flashing Back Yes Flashing Background !R Edit..!, Background Flash Frequency Fast In the box Dynamic value ranges: -!, Tag !. In select Tag Name corresponding valve ! !, -!, In the box Change trigger Standard cycle 2s !, change to Upon change !, then Ok. Display $& Bool Valid range True !R Edit.. False Select color, then Ok.
Apply
In the box Dynamic value ranges: -!, Tag!. In select Tag Name corresponding valve! !, -!, In the box Change trigger Standard cycle 2s !, Change to Upon change !, then Ok. $& Bool Valid range Back.. True !R Edit.. False Select color, then Ok. Apply !. Static Dynamic Yes
Airstream (group)
Object !, !R, Properties! In the box Properties: --Colors!, Static Dynamic Attribute Line Color !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, Tag !. In select Tag Name Valve4 ! !,
- !, In the box Change trigger Standard cycle 2s !, Change to Upon change !, then Ok. Line $& Analog Valid range Up to Other!R, New !, (for 2 Value Range) Value Range 1 0,99 !R, Edit.. Value Range 2 1,99 select color, then Ok. Apply --Miscellaneous!, !. Attribute Display Static No Dynamic
--Miscellaneous !, Attribute Static Dynamic Display No !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, Tag!. In select Tag Name Valve1 + S0 ! !, - !, In the box Change trigger Standard cycle 2s !R, Change to Upon change !, then Ok. $& Analog Valid range Up to Display Other!R, New !, (for 2 Value Range) Value Range 1 0,99 No Value Range 2 1,99 Yes !. Apply
10
Static !R Static No
- !, In the box Change trigger enter 250ms, Ok. Write program: { if (GetTagBit(Valve1)==1){ SetVisible(Project Name.Pdl,RectangleNo,1);} if (GetTagBit(Valve3)==1){ SetVisible(Project Name.Pdl,RectangleNo,0);} return 0; } . Ok !.
- !, In the box Change trigger enter 500 ms Ok. Write program: { if (GetTagBit(ValveNo)==1){ SetVisible(Project Name.Pdl,RectangleNo,1);} if (GetTagBit(Valve4)==1){ SetVisible(Project Name.Pdl,RectangleNo,0);} return 0; } Ok !.
11
12
!, Attribute Static Dynamic Background Color !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, Tag !. In select Tag Name -Valve1 ! !, - !, In the box Change trigger Standard cycle 2s !, Change to 250 ms !, then Ok. $& Bool Valid range Back... True !R Edit False Select color, then Ok. Apply !. Static Yes Dynamic
13
Static Dynamic Attribute Background !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, Tag !, In select Tag Name Valve2 !!, - !, In the box Change trigger Standard cycle 2s !, Change to 250 ms !, then Ok.
. $ Bool Valid range True False Apply !. Static Yes Dynamic Display !R, Edit Select color, then Ok.
14
Static Dynamic --Geometry !, Attribute Heigth given !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, Tag !. In select Tag Name - Valve3 ! !, - !, In the box Change trigger Standard cycle 2s !, Change to 250 ms !, then O k. . $& Bool Valid range True False . Apply --Colors !, !. Heigth enter new value value is given
Attribute Static Dynamic Background Color !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, Tag !. In select Tag Name - Valve3 ! !,
- !, In the box Change trigger Standard cycle 2s !, Change to 250 ms !, then Ok. $& Bool Valid range Back... True !R Edit False Select color, then Ok. Apply !. Static Yes Dynamic
15
Valve 3 - palette
Object !, !R, Properties !, In the box Properties : ---Geometry !, Attribute Static Dynamic Position Y given !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, In select Tag Name - Valve3! !, - !, In the box Change trigger Standard cycle 2s !, Change to 250 ms!, then Ok. Position $& Bool Attribute True enter new value. False value is given Apply !.
Static Dynamic --Colors !, Attribute Background Color !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, In select Tag Name - Valve3! !, - !, In the box Change trigger Standard cycle 2s !, Change to 250 ms!, then Ok. $& Bool Attribute Back.. True !R Edit False Select color, then Ok. Apply !. --Miscellaneous !, Attribute Display Static Yes Dynamic
16
In-/Output - fields
In the Object palette: Smart-Object !, I/O-Field !, Place the cursor at the position of the process image, where the field (e.g. rectangle) shall be represented, and click the mouse.
000
-!R Configuration !, In the box I/O-field Configuration: - Tag (yellow field) !, Select tag from the tag list !!, - Update Select time - Type Select !, then Ok. -!R Properties !, Attribute Background Color display Output value Data type Output format Sta.. !, yes 0 !R , binary 11111 Dynamic-dialog Dy.. Edit !, Select color, Ok.
000
In the box Dynamic value range: - !, In select Tag Name (select tag) ! !, Apply - !.
17