PROJECT3 WinCC

Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Project 3 Process visualization of a coin plant with SIMATIC - 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

1 Objectives of the project


Main objective: Becoming acquainted to and use of a current visualization software close to industry Learning objectives: Practical operation of the visualization software - Statement of configurations - Statement of variables for communication with the process - Generation of an image of the installation with available tools and symbols - Testing mode, combined with a Programmable Logic Controller

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.

3 Hard- and Software


The execution of the visualization requires the following hard- and software components: a) Programmable Logic Controller S7-300 with components: - mounting channel as a mounting rack - Power supply module PS 3075A (6ES7-307-1EA00-0AA0) - Central processing unit CPU 315-2DP (6ES7-315-2AF03-0AB0) - Digital input module 16xDC 24V (6ES7-321-1BH01-0AA0) - Digital output module 16xDC 24V, 0.5A (6ES7-322-1BH01-0AA0) b) MPI interface cable for the connection CPU / PC c) PC with a minimum configuration: Pentium processor, Windows 95/98/NT, 32MB RAM, hard disc 3 GB, CD-ROM drive, color display d) Software SIMATIC WinCC

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

Creating new groups and variables:


-

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)

Problem description of a coin plant

5.1 Technology schematics

5.2 Problem description


The cylinder of valve 1 pushes the work piece from the magazin (position switch S0 is operated) to the pressing place and moves back when position switch S2 is not operated. Afterwards the cylinder of the coinstamp should extend (valve 2) until position switch S3 is operated. When the position switch operates, the cylinder should run in again. Further the work piece should be raised up by the cylinder of valve 3, S2=0. In 3 seconds valve 4 should open to blow an airstream at the coin and move it over the slope to the catching reservoir. On the way the coin passes a light barrier LI, which switches off valves 3 and 4. The procedure can repeat itself after a 4 seconds pause, when the precondition for the home position is fulfilled (end switch S0, S1 and LI are closed, S2 and S3 are opened).

Pattern for the graphic representation of the process

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.

Procedure for the input of the object properties

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

!. Static Yes Dynamic

--Miscellaneous !, Attribute Display

Valves (group) and lines


Object !, !R, Properties ! In the box Properties: --Colors !, Attribute Background Static Dynamic !R Edit..!,

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

--Miscellaneous !, Attribute Display

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

Light barrier (Line E)


Object !, !R, Properties ! In the box Properties: Miscellaneous !, Attribute Static Dynamic Display Yes !R, Dynamic-Dialog !, Flashing Background !R Edit.. !, Select Colors ! !, In the box Dynamic value ranges: - !, Tag !. In select Tag Name Valve4 + LI ! !, - !, In the box Change trigger Standard cycle 2s !, Change to Upon change !, then Ok. $& Bool Valid range True False Apply !. Display Yes No

Work piece under the magazine


Object !, !R, Properties ! In the box Properties: --Geometry!, Attribute Static Dynamic Position X given !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 Upon change !, then Ok. Display Up to $& Bool Valid range True enter new value False Value is given Apply !.

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

Work piece in embossing position


Object !, !R, Properties ! In the box Properties: --Color !, Attribute Background Color Select Color ! !. --Miscellaneous ! Attribute Display

Static !R Static No

Dynamic Edit ! Dynamic !R C-Action !,

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

Workpiece over the embossing position


Object !, !R, Properties ! In the box Properties: --Color !, Static Attribute Background Color !R Select Color ! !. --Miscellaneous ! Attribute Static Display No

Dynamic Edit ! Dynamic !R C-Action !,

- !, 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

Work piece at the light barrier


Object !, !R, Properties! In the box Properties: Static Dynamic --Colors !, Attribute Background Color !R Edit !, Select Color Static Dynamic.. --Miscellaneous!, Attribute Display No !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 1 s !, then Ok. $& Bool Valid range True False Apply !. Display Yes No

Work piece in outlet position


Object !, !R, Properties ! In the box Properties: ----Colors !, Static Dynamic Attribute Background !R Edit..! Select Color ! !. ---Miscellaneous !, Attribute Static Dynamic Display No !R Dynamic-Dialog !, In the box Dynamic value ranges: - !, Tag !. In select Tag Name LI + Valve4 ! !, - !, In the box Change trigger Standard cycle 2s !, Change to 1s !, then Ok. $& Analog Valid range Up to Display Other!R, New!, (for 2 Valid range) Valid range 1 0,99 No Valid range 2 1,99 Yes Apply !.

12

Cylinder of Valve 1 (Rectangle)


Object !, !R, Properties!, In the box Properties: --Geometry!, Attribute Static Dynamic Width given !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 Width True enter new value False value is given Apply --Colors !.

!, 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

--Miscellaneous !, Attribute Display

13

Valve 2 (group, rectangle and die)


Object !, !R, Properties ! In the box Properties: --Geometry !, Attribute Static Dynamic Heigth given !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 !. --Colors !, Height enter new value value is given

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.

--Miscellaneous!, Attribute Display

14

Cylinder of Valve 3 (Rectangle)


Object !, !R, Properties!, In the box Properties: ----Geometry !, Attribute Static Dynamic Position Y 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 Ok. Position $& Bool Valid range True enter new value False value is given Apply !.

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

--Miscellaneous!, Attribute Display

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 Properties : --Color !, --Miscellaneous !, --Output/Input !,

In the box Dynamic value range: - !, In select Tag Name (select tag) ! !, Apply - !.

Input of operation functions


Runtine Exit In the Object Palette: Windows - Objects !, Button !, Place the operation button in picture Praktikum1.pdl. Enter the text Exit in the text field of the configuration dialog. Ok !, Select the button Exit !, In Dynamic Wizard Exit WCC Runtine !!, Select left mouse key as trigger Close with Finish.

17

You might also like