Automation and Drives - SCE Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE F6 Operator Control with WinCC flexible 2005 and TP177B T I A Training Document Issued: 02/2008 Page 1 of 129 Module F6 Operator Control with WinCC flexible 2005
Automation and Drives - SCE This document has been written by Siemens AG for training purposes for the project entitled "Siemens Automation Cooperates with Education (SCE)". Siemens AG accepts no responsibility for the correctness of the contents. Transmission, use or reproduction of this document is only permitted within public training and educational facilities. Exceptions require the prior written approval by Siemens AG (Michael Knust michael.knust@siemens.com). Offenders will be liable for damages.
Automation and Drives - SCE 1. PREFACE.....................................................................................................................................................6 2. OPERATOR CONTROL WITH WINCC FLEXIBLE ....................................................................................8 2.1 SYSTEM DESCRIPTION .................................................................................................................................8 2.2 INSTALLATION/DEINSTALLATION .......
Automation and Drives - SCE 6.1.5 Tool Window ....................................................................................................................................44 6.1.6 Output Window ................................................................................................................................45 6.1.7 Object Window.................................................................................................................................45 6.1.
Automation and Drives - SCE 9.2 9.3 9.4 9.5 10 BIT MESSAGES ........................................................................................................................................111 MESSAGE WINDOW .................................................................................................................................112 MESSAGE INDICATOR ..............................................................................................................................
Automation and Drives - SCE 1. PREFACE In terms of its contents, Module F6 is part of the teaching unit entitled 'Process Visualization’.
Automation and Drives - SCE Hardware and software required 1 PC, operating system Windows 2000 SP4 or Windows XP Professional SP1 and SP2 with MS Internet Explorer V6.0 SP1 Pentium IV with 1.6 GHz, 512MB RAM, approx. 1.5GB free hard disk storage 2 Software STEP7 V 5.
Automation and Drives - SCE 2. OPERATOR CONTROL WITH WINCC FLEXIBLE 2.1 System Description Since processes are becoming more and more multi-layered and the demands on the functionality of machines and plants are increasing, the operator needs a high-performance tool for controlling and monitoring production plants. An HMI system (Human Machine Interface) represents the interface between a human being (the operator) and the process (machine/plant). The controller actually controls the process.
Automation and Drives - SCE 2.2 Installation/Deinstallation 2.2.1 System Prerequisites WinCC flexible supports all common PC platforms that are IBM/AT compatible. Although values for a minimum configuration are specified, you should use as a guide the recommended values for an optimum configuration, for WinCC flexible to operate efficiently.
Automation and Drives - SCE 2.2.2 Installing WinCC flexible After all system requirements that have been mentioned are met, install WinCC flexible from the CDROM. Select the scope for installing components and product languages. • • • Standard installation: recommended Minimum installation: to save memory User defined installation: to specify yourself which components and product languages are installed In addition, the required licenses have to be transferred.
Automation and Drives - SCE 2.2.4 Totally Integrated Automation In addition to an HMI system such as WinCC flexible, a complete automation solution includes other components, such as controller, process bus and periphery.
Automation and Drives - SCE 3. PROJECT DESCRIPTION 3.1 Hardware Configuration In our sample program for a color mixing plant, we are using a programming device with the WinCC flexible 2005 Advanced Engineering System and WinCC flexible 2005 Runtime. The color mixing plant is controlled by means of a SIMATIC S7-300. By using a touch panel (TP177B), the operator can operate the process using the graphic operator interface.
Automation and Drives - SCE 3.2 Plant Description T1 Inflow T1 Outflow T2 Inflow T2 Outflow T3 Inflow T3 Container A color mixing plant is controlled with a SIMATIC S7-300 in the automatic or in the manual mode. In the "Automatic“ mode, the three tanks are filled with a two step control. At the minimum level, the inflow valve opens automatically, and after the maximum level is reached, it is closed again.
Automation and Drives - SCE 3.3 Task Definition At the color mixing plant, the program was changed with the programmer each time the mixing ratio changed. Since such changes are not only time consuming, but also dangerous if wrong entries are made, it was decided to expand the color mixing plant with a TouchPanel TP177B. By using the panel, the following requirements are to be met: - 3.4 The color mixing plant can also be operated with the panel.
Automation and Drives - SCE 4 STEP7 PROJECT "COLOR MIXING PLANT“ 4.1 New Project Start the SIMATIC Manager. Create a new project with the Name “Color Mixing Plant“.
Automation and Drives - SCE Insert the SIMATIC 300 Station. By double clicking on Hardware, start the hardware configuration.
Automation and Drives - SCE 4.2 Hardware Configuration Enter the hardware configuration of the controller you are using. Take note of the settings in the sample configuration. For our mixing plant, we are using the following hardware: Slot 1: PS307 2A Slot 2: CPU 314C-2DP 6ES7 307-1BA00-0AA0 6ES7 314-6CF00-0AB0 The CPU 314C-2DP is assigned the Profibus DP Addr.2 and is connected. The CPU 314C-2DP is assigned the MPI Addr.2 and is connected. The clock flag is set to MB100.
Automation and Drives - SCE 4.3 Library of the Color Mixing Plant First, the library with the program blocks has to be imported to the SIMATIC Manager. To this end, select the function Dearchive in the menu File. From the template directory, select the file “Color mixing plant_Library“. Click on the button “Open“.
Automation and Drives - SCE As destination directory, select the folder “S7LIBS“ in the Step7 directory. Confirm with OK. In the following window, click on the button “No“ <> The project library “Color mixing plant“ was copied to the library directory. Here, all required program blocks are stored.
Automation and Drives - SCE 4.4 Assignment List Open the project window in the symbol table. Enter the symbol assignments in the symbol table.
Automation and Drives - SCE 4.5 Control Program 4.5.1 Function Block FB1 With the right mouse key, generate the FB1 in the folder Blocks. Enter the symbolic name and the symbol comment. Select the programming language “FBD“. Place the check mark at Multi-instance capability. Confirm with OK.
Automation and Drives - SCE 4.5.2 Variable Declaration Open FB1 with a double click. Enter the following STAT variables. <> Enter the following TEMP variables. <> Note The STAT variables are connected to the operator buttons on touch panel TP177B. The TEMP variables are needed for passing on values in FB1.
Automation and Drives - SCE 4.5.3 Inserting Panel Inputs FB5 as Multi Instance Block from the Program Library Drag FB5 for the panel inputs from the library “Color mixing plant“ to Network 1. This block is needed for connecting the input signals from the panel to the inputs of the controller. Right click on the inserted block and select “Change in multi-instance call“.
Automation and Drives - SCE Enter the name “panel inputs“. Confirm with OK. Wire the upper 10 inputs of the block to the STAT variables.
Automation and Drives - SCE Wire the lower 10 inputs of the block with the symbolic names.
Automation and Drives - SCE 4.5.4 Tank Block FB10 Create a new network. Drag the tank block FB10 from the library to Network 2. Right click on the inserted block. Select “Change to multi-instance call“ Enter the name “tank1“. Confirm with OK. This block contains the two step control and the calculations for simulating the level. When level sensors are used, only the two step control would be necessary. Wire the block’s inputs.
Automation and Drives - SCE Repeat the steps for Tank2 in Network 3. Note Writing the symbolic names in “CAPITALS“ and the variables in “lower case letters“ makes better assignments possible.
Automation and Drives - SCE Repeat the steps for Tank3 in Network 4. Create a new network and drag tank block FC10 from the library to Network 5.
Automation and Drives - SCE 4.5.5 Automatic Program Sequence FB15 The automatic program sequence is described in the plant description.
Automation and Drives - SCE 4.5.6 Manual Operation FC20 Create a new network and drag the FC20 from the library to Network 7. This block contains the manual operation of the tanks’ outflow valves in the manual mode. This FC20 has to be called after the FB15, since the automatic valve operations of the FB15 have to be overwritten by the manual mode in FC20. Wire the inputs of the block.
Automation and Drives - SCE 4.5.7 Mixer Motion FB25 This block is necessary to simulate the mixer motion. When the mixer motor is in operation, a count in 150ms cycles, of the value 0 to 12 is incremented. Simulate mixer motion 4.5.8 Automatic and Manual Lamps In the last FB1 network, assignments for the automatic and manual lamps are generated. Assign authomatic and manual lamp FB1 is now completed. Save and Close FB1.
Automation and Drives - SCE 4.5.9 Organization Block OB1 Open OB1 by double clicking on it. Drag FB1 from the folder “FB Blocks“ to Network 1 for the control program Enter DB1 as instance data block. In the message window, click on the button “Yes“. OB1 is now complete. Save and Close OB1.
Automation and Drives - SCE 4.6 Loading to the CPU The control program for the color mixing plant is not completed. In the project window, highlight the folder Blocks and then click on the button “Load“ 4.7 Program Test After loading the control program to the CPU, switch the controller to the RUN mode. Test your program. For example, at the tank blocks, you can monitor the levels. With “Monitor/control variables“, you can enter levels (MW120 to MW124).
Automation and Drives - SCE 5 SIMATIC HMI STATION 5.1 Inserting an HMI Station In your project window, highlight the project name “Color mixing plant“ (Farbmischanlage) and insert a SIMATIC HMI station.
Automation and Drives - SCE The properties of WinCC flexible RT are opened. As device type, select TP 177B color PN/DP. Confirm with OK. SIMATIC WinCC flexible ES is started and a SIMATIC HMI station is inserted.
Automation and Drives - SCE 5.2 Configuring the HMI Station At the inserted SIMATIC HMI station, click on Configuration. Connect the SIMATIC HMI station with the MPI network. Click on Save and Compile. Close the configuration. Note In the WinCC flexible project, a connection via the MPI is generated automatically.
Automation and Drives - SCE 5.3 Checking the Connection with NetPro Start NetPro by clicking on the button in the SIMATIC Manager. Here, you can check the communication connections very easily. Also, you can make changes or corrections subsequently with NetPro. With a double click, the module’s properties are opened. IMPORTANT NOTE NetPro, the hardware configuration, and WinCC flexible access a joint data base and must not be opened at the same time.
Automation and Drives - SCE 5.4 Opening the HMI Station Right click on “WinCC flexible RT“ and select Open Object.
Automation and Drives - SCE 6 WINCC FLEXIBLE ENGINEERING SYSTEM 6.1 Program Interface The work environment of WinCC flexible consists of several elements. Some of these elements are coupled to certain editors and are visible only if the corresponding editor is active.
Automation and Drives - SCE 6.1.1 Menus and Symbol Bars The menus and the symbol bars contain all the functions you need to configure your operator panel. If a corresponding editor is active, menu commands or symbol bars are visible specific to the editor. If you point to a command with the mouse pointer, you will get a corresponding QuickInfo for each function. When a new project is set up, the symbol bars are positioned at the upper screen boundary as a matter of standard.
Automation and Drives - SCE 6.1.2 Work Space In the work space, the objects of the project are edited. All elements of WinCC flexible are arranged around the work space. Except for the work space, you can arrange and configure all elements according to your own requirements; for example, shifting or hiding. In the work space, project data is edited either in table form (for example, variables) or graphically (for example, a process image).
Automation and Drives - SCE 6.1.3 Project Window The project window is the central control point for project processing. All constituent parts and all available editors of a project are displayed as a tree structure in the project window and can be opened from there. To each editor, a symbol is assigned. With it, you can identify the associated objects. Only those elements are displayed in the project window that the selected operator panel supports.
Automation and Drives - SCE 6.1.4 Property Window In the property window, the properties of objects are edited; for example, the color of picture objects. The property window is available only in certain editors. In the property window, the properties of the selected object, arranged by categories, are displayed. As soon as you exit an input field, the values that were changed are effective. If you enter an invalid value, it is displayed with a background color.
Automation and Drives - SCE 6.1.5 Tool Window The tool window provides you with a selection of objects that you can insert in your pictures; for example, graphic objects and control elements. In addition, the tool window includes libraries with completed library objects, and collections of picture blocks.
Automation and Drives - SCE 6.1.6 Output Window In the output window, system messages are displayed standard in the sequence in which they occur. The categories identify each WinCC flexible submodule that generated a system message. System messages of the category "Generator" are generated, for example, during the consistency check. To arrange the system messages, click on the header of the corresponding column. The output window displays all system messages of the last action.
Automation and Drives - SCE 6.2 Configuring Displays A display can consist of static and dynamic parts. The controller does not update static parts, such as texts and graphics. Dynamic parts are connected to the controller, and visualize current values from the controller’s memory. Visualization can be in the form of alpha-numerical displays, curves, and bars. Dynamic parts also consist of inputs made at the OP that are written to the controller’s memory.
Automation and Drives - SCE 6.2.1 Display Template Specifying the permanent area, and changing the background color. With a double click on Template, open the display Template in the project window. Drag the bar in the upper area of the panel display window a little downward. Change the background color in the property window for the permanent area to yellow. Change the background color in the property window for the work area to white.
Automation and Drives - SCE Inserting a text field Drag and drop a text field from the tool window to the permanent window. For the properties in the text field, enter “Color mixing plant“. Caution! Do not press the input key. Under Properties, click on Representation and remove the checkmark adjust automatically. Change the size and the position of the text field.
Automation and Drives - SCE Under Properties, click on Text and change the font size and the text orientation. Inserting the date and time of day field Drag a date/time of day field from the tool window and drop it in the permanent window.
Automation and Drives - SCE Under Properties, change the style of the fill type to “Transparent“ Under Properties, click on Representation and remove the check mark Adjust automatically. Change the size and the position. Under Properties, click on Text. Change the font size and the orientation of the text. For the time being, the display Template is completed. Note Now and then, you should save your project by clicking on the diskette symbol.
Automation and Drives - SCE 6.2.2 Generating Displays In the project window, right click on Display1 and select Rename. Enter “Basic display“ as the name for the picture. Double click on Add picture and assign the name “Tank1“. Generate the pictures for Tank2 and Tank3 also. For all pictures, change the background color of the work area to white. To do this, click on the tabs of the figures.
Automation and Drives - SCE 6.2.3 Inserting Graphic Displays Drag a graphic display to the work area of the basic figure. In the property window of the graphic display, graphics can now be selected from the list. Using the buttons, you can create new graphics from files or from OLE objects. You can also delete graphics from the list. The selected graphic appears in the preview window, and has to be inserted or removed with the button Select or Deselect.
Automation and Drives - SCE Click on Generate new graphic from OLE object. Select Generate from file and click on Browse. Highlight the figure “Plant.bmp“ and click on Open. In the window that follows, confirm your selection with OK.
Automation and Drives - SCE Under Representation, change the size and position of the graphic. Repeat these steps for inserting the graphics in figures Tank1 to Tank3. Under Representation, change the size and the position of the three inserted graphics. Note If a graphic is inserted by means of an OLE object, the file name is retained.
Automation and Drives - SCE 6.2.4 Configuring Display Changes By means of buttons, it is to be possible in each figure to change to the other three figures. In the case of WinCC flexible, only the names of the figures have to be dragged from the project window to the figure. The buttons are generated automatically. Change the size and the position of the button. Under text, select the font “Tahoma; 8pt“. Repeat these steps for the buttons for Tank2 and Tank3.
Automation and Drives - SCE Basic Display Figure Tank1 Preface Installation Project Description Step7 Project HMI Station WinCC flexible Projekt Messages Recipes User Management T I A Training Document Issued: 02/2008 Page 56 of 129 Module F6 Operator Control with WinCC flexible 2005
Automation and Drives - SCE Figure Tank2 Figure Tank3 Preface Installation Project Description Step7 Project HMI Station WinCC flexible Projekt Messages Recipes User Management T I A Training Document Issued: 02/2008 Page 57 of 129 Module F6 Operator Control with WinCC flexible 2005
Automation and Drives - SCE 6.3 Settings at the Touch Panel TP177B color PN/DP Before we can perform the first test, the settings on the touch panel have to be executed first. The following settings have to be made: - Setting the date and time of day Assigning the MPI or Profibus DP address Assigning the Ethernet address Setting the transfer properties Touch Panel TP177B processes with the operating system Windows CE and can, like all touch panels, be operated directly on the screen.
Automation and Drives - SCE 6.3.1 Setting the Date and the Time of Day To set the date and the time of day, operate the button Control Panel. This opens the desktop of Windows CE. Select Date/Time to make the settings. Set the time zone, the date and the time. Confirm with OK.
Automation and Drives - SCE 6.3.2 Setting the MPI Address To set the MPI address on the panel, click on “S7 Transfer Settings“ Select MPI and click on Properties. Place a checkmark at “Panel is the only master on the bus“. Assign the MPI Address 1 and confirm with OK. Note Many panels allow data transfers only if either the panel or the programmer is set as the only master on the bus.
Automation and Drives - SCE 6.3.3 Setting the Profibus DP Address To set the Profibus DP address, click on “S7 Transfer Settings“ on the desktop. Select Profibus and click on the button Properties. Place the checkmark at “Panel is the only master on the bus“. Assign the Profibus DP Address 1 and confirm with OK. 6.3.4 Assigning the Ethernet Address On the desktop, operate the symbol and select the Onboard LAN Ethernet Driver. Click on the button Properties.
Automation and Drives - SCE 6.3.5 Setting the Transfer Properties On the desktop, click on the symbol Select MPI/Profibus and click on the button Advanced. In the window that follows, select MPI and confirm with OK. Note The settings at Transfer Settings have nothing to do with the connection settings in the WinCC flexible project.
Automation and Drives - SCE 6.4 Checking for Consistency Before you transfer the WinCC flexible project to the panel, the consistency should be checked. The project is checked and generated. Click on Consistency check of the project. The result is displayed in the output window. 6.5 Transfer Settings and Data Transfer under WinCC flexible In WinCC flexible, the settings have to be made for the transfer. Click on the button Settings for the Transfer. For Mode, select MPI/DP; enter 1 as station address.
Automation and Drives - SCE Confirm overwriting the keyword list. <> If the transfer settings are correct on the panel and in WinCC flexible, the transfer starts now. After restarting the panel, the start picture appears in runtime. Test all buttons for the display change.
Automation and Drives - SCE 6.6 Button END The project can only be transferred again if the panel TP177B is in the transfer mode. When the panel powers up, the loader appears for a few seconds with the button “Transfer“. Before each transfer, the panel would have to be taken off load so that a switchover to the transfer mode is possible. Data is lost in that case; for example, the date and the time of day have to be reset.
Automation and Drives - SCE Under Events, select the function StopRuntime by Clicking on the function. A configured function is referred to in bold print. Under mode, other settings can be made. For our panel TP177B, only Runtime is to be terminated. Save your project and start the consistency check. Note If during the consistency check, lines that are marked blue that contain internal warnings occur, you have to regenerate the entire project first.
Automation and Drives - SCE 6.7 Configuring a Connection So far, we worked in our project without accessing the SIMATIC S7 controller. On our panel, levels are to be displayed and fill setpoints are to be entered. For operator and display objects that access the process values of a controller, first the connection to the controller has to be configured. Here, you specify how and by means of what interface the panel communicates with the controller. Double click on the window Connections.
Automation and Drives - SCE 7 DISPLAY AND OPERATOR OBJECTS Display and operator objects are graphic elements with which process displays are designed. In Runtime, all display and operator objects behave dynamically. In addition, you can make the properties of objects dynamic. One example of this is the graphic of a tank whose liquid level is displayed as varying, depending on the corresponding process value.
Automation and Drives - SCE 7.
Automation and Drives - SCE Note Depending on the operator panel for which you are configuring, some objects from the tool window are not available, or only with limited modes of operation. Objects that are not available are displayed in the tool window grayed, and can not be selected.
Automation and Drives - SCE 7.
Automation and Drives - SCE 8 DISPLAY AND OPERATOR OBJECTS IN THE PROJECT "COLOR MIXING PLANT“ 8.1 Configuring Display and Operator Objects in the Picture“Tank1“ First, a bar, two sliders (linear regulators), and two buttons are configured. 8.1.1 Configuring the Bar Display To display the current level of Tank1, we configure a bar. Drag a bar into the picture Tank1.
Automation and Drives - SCE As a Maximum Value, enter 1000. From the symbols of the color mixing plant, select the variable “CONTENT_T1“ as process variable. The WinCC flexible variable “CONTENT_T1“ was generated automatically as process variable. By double clicking on Variables in the project window, additional settings can be made. Change the data collection cycle of the variable to 100ms. The variable will now be updated every 100ms.
Automation and Drives - SCE In the property window, under Style (Gestaltung), change the color assignments of the foreground color to red and the background of the bar to white. At Scale, remove the check mark “Display scale“ (Skala anzeigen). At the limits, remove the check mark for “Display limit lines“ (Grenzwertlinien anzeigen).
Automation and Drives - SCE At Representation, change the position and the size of the bar. Bar direction is already preset to UP (Oben). The bar for indicating the level in the picture Tank1 is now completed.
Automation and Drives - SCE 8.1.2 Configuring the Slider (Linear Regulator) To set the minimum level, we are configuring a slider. From the tool window under Expanded Objects, drag the Slider into the picture “Tank1“. As the maximum value, enter 450, as the minimum value, enter 10 and select as process variable the variable “low_level“ from the FB call “tank1“ of DB1 of the color mixing plant. Note Under WinCC flexible, you can also access the variable declaration in a data block.
Automation and Drives - SCE At Design, enter “MIN“ for labeling. At Representation, change the position and the size of the slider. At text, change the font size. Insert a second slider for setting the maximum level in Tank1. Change the Minimum Value to 550, the Maximum Value to 990, and select the variable “high_level“ as process variable from the FB call “tank1“ of DB1. For labeling, enter “MAX“ at Design. Position the slider on X244 and Y32 and change the size to 64 x 152.
Automation and Drives - SCE The picture Tank1 now looks like this. In the meantime, three variables were set up automatically. If there should be additional variables, highlight the line and delete the variable (right mouse key).
Automation and Drives - SCE 8.1.3 Configuring a Button To open the valves, we are configuring a button. From the tool window under Basic Objects, drag a Button into the picture “Tank1“. In General, place a check mark at Text EIN (open inflow valve) and enter the texts. Caution! Don’t press the enter key after entering the text; otherwise, a new line is generated.
Automation and Drives - SCE Change the background color to white, and select a smaller font size. Set the position and the size. In the function list, at Drücken (Press), select the function “SetzeBit“ (set bit). From DB1, select as variable “hand_zulauf_tank1“ (manual inflow tank1).
Automation and Drives - SCE We want to generate the function of a button; for that reason, configure now the function “RuecksetzeBit“ (reset bit) with the variable “hand_zulauf_tank1“ at Loslassen (releasing) the button. The button is to be operable only in the manual mode. Under Animations, select Operability. Set the check mark at Activated. From the symbols, select “H3_MAN“ as variable. Enter 1 at “From“ and 1 at “To“. Set the status to Activated.
Automation and Drives - SCE Copy and insert the button. Change the text to “Ablaufventil“ (outflow valve), the position to X80, Y158. Under Ereignisse (events) Drücken and Loslassen (press and release), select the variable “hand_ablauf_tank1“ (manual outflow Tank1). In our variable list, only three additional variables were set up automatically.
Automation and Drives - SCE 8.1.4 Showing the Valve Function in Color The switching states of the valves are to be visible by changing color. To this end, first set the zoom factor of the view to 400% and select the picture excerpt of the valve. Then, in the tool window, highlight the Polygon. . Trace the valve by clicking on each corner, and by double clicking at the end. Because of the grid function, the polygon is a little larger than it is in the graphic.
Automation and Drives - SCE Change the position and the size in a way so that the graphic and the polygon fit together. In the Properties at Style, change the fill color to yellow.
Automation and Drives - SCE Under Animation, activate Style and use the variable “ZULAUF_T1“ (Inflow T1). Set the Type to Bit 0, and at Value 1, change the background color to Red. Copy and insert the polygon. Rotate the polygon by 90 degrees and position it below the tank (the button for rotating by 90 degrees is in the symbol bar above). Use the variable “ABLAUF_T1“ (Outflow T1) for the color change in Style.
Automation and Drives - SCE 8.1.5 Testing the Picture “Tank1“ in Runtime Check the consistency of the project. 46% processed, 63 steps remain .... Linker processed 'SIMATIC HMI Staton(1)’ .... Number of power tags used: 8 Required license: WinCC flexible Sm@rtService for panel Required license: WinCC flexible Sm@rtAccess for panel Completed successfully: 0 error(s), 0 warning(s) Time stamp 12.28.
Automation and Drives - SCE 8.2 Configuring the Display and Operator Objects in the Pictures “Tank2“ and “Tank3“ The picture for Tank2 and Tank3 is structured exactly like the picture for Tank1. In the picture “Tank2“, the level of the tank and the valve function are to be displayed in the color green and the variables for Tank2 are used; for example, “INHALT_T2“ (Content Tank2).
Automation and Drives - SCE View of picture “Tank2“ View of picture “Tank3“ Preface Installation Project Description Step7 Project HMI Station WinCC flexible Project Messages Recipes User Management T I A Training Document Issued: 02/2008 Page 88 of 129 Module F6 Operator Control with WinCC flexible 2005
Automation and Drives - SCE 8.3 Objects in the Basic Display 8.3.1 Tank Levels and Valve Representations In the basic display, the levels and the valve functions of the three tanks are to be shown. In addition, the level of the container and the function of the outflow valve at the container are to be displayed graphically. From the three tank pictures, copy the bars of the tanks, and the polygons of the inflow and outflow valves to the basic display.
Automation and Drives - SCE 8.3.2 Configuring the Mixer Motor To represent the mixer motor, a graphic EA field that is connected to a graphic list is used. For manual operation by means of the panel, we are using a symbolic EA field that is connected to a text list. Generating the Graphic List In the project window, click on Graphic Lists in the folder “Text and Graphic Lists“. In the column Name, double click on the first line, and in this way generate a new graphic list.
Automation and Drives - SCE Inserting a Graphic EA Field Drag a Graphic EA field into the basic display. In the properties, set the mode Ausgabe (output) and select the graphic list Motor and the variable “MISCHERMOTOR“. Adjust size and position.
Automation and Drives - SCE Generating a Text List In the project window, double click on Text Lists in the folder “Text and Graphic Lists“. In the column Name, double click on the first line, and create a new text list in this way. Change the name of the text list to “Motor text“. At Auswahl (selection), select “Range (0-…)“. Below at Value 0, enter the text “Motor aus“ (motor off), and at Value 1 the text “Motor ein“ (motor on).
Automation and Drives - SCE Inserting a Symbolic EA Field Drag a Symbolic EA field into the basic display. Set the mode to Eingabe/Ausgabe (input/output) and select the text list Motortext and the variable “hand_mischermotor“. Adjust the font size, size and position.
Automation and Drives - SCE Under Animation at manual mode, activate the background color blue. In addition, manual operation is to be possible only in the manual mode. Test the function in runtime.
Automation and Drives - SCE 8.3.3 Configuring the Manual Mode for the Outflow Valve of the Container We are creating an additional button for opening the outflow valve. From the tool window, under Basic Objects, drag a Button into the basic display. Under Allgemein (General), at Text AUS, enter “Ablauf öffnen“ (open outflow). Set the check mark for Text EIN, and enter the text “Ablauf offen“ (outflow open). Caution! After entering the text, don’t press the enter key; otherwise, a new line is generated.
Automation and Drives - SCE The button is to be operable only in the manual mode. Under Animationen, select Bedienbarkeit (operability) and place the checkmark at Activated. As variable, select “H3_MAN“ from the symbols. Enter 1 for “Von“ (from) and 1 for “Bis“ (to). Set the status to Activated. The button can only be operated if the variable “H3_MAN“ has the value 1. For operability to be visible, change the background color to blue at Style.
Automation and Drives - SCE 8.3.4 Switching the Operating Modes Selecting the operating mode is also to be possible on the TP177B. We are using a switch for this function. Drag a switch into the basic display. When making settings, select the switch with text, and enter the texts. As variable, use “man_auto“ from DB1.
Automation and Drives - SCE Change the background color to blue, and select a smaller font size. Set the position and the size. At Style (Gestaltung), select the variable “H2_AUTO“ from the symbol table. Test the manual/automatic switchover in runtime.
Automation and Drives - SCE 8.3.5 Configuring the Fill Setpoints The fill amounts for the tanks are to be entered by means of the TP177B. To this end, input fields are configured. Drag an EA field into the basic display. Change the settings at General (Allgemein). Use the variable “ENTRY_T1“.
Automation and Drives - SCE Change the properties at Representation (Darstellung). Change the properties at Text. Copy and Insert the EA field. Position it each once next to Tank 2 on X171 and Tank 3 on X282. Change the variables to VORGABE_T2 and VORGABE_T3.
Automation and Drives - SCE 8.3.6 Configuring the “START“ Button To start the color mixing plant, we still need the button “START“. The button is to blink green when the start enable of the program is activated. The button can only be operated when start enable is active. From the tool window, under Basic Objects, drag a Button into the basic display. Under Allgemein (General), at Text AUS, enter “START“. Change the background color to white, and select a smaller font size.
Automation and Drives - SCE Under Animations, select Bedienbarkeit (operability) and place the check mark at Activated. From the symbols, select “H1_STARTFREIGABE“ (start enable) as variable. Enter 1 at “Von“ (from) and 1 at “Bis“ (to). Set the status to Activated. Now, the button can only be operated if the start is enabled. For the start enable to be visible, activate Style (Gestaltung) also. Use the variable “H1_STARTFREIGABE“.
Automation and Drives - SCE 8.3.7 Configuring the Mixer Motion We are using a graphic EA field for animating the mixer motion. By means of a graphic list, the mixer motion is shown as in an animated cartoon. Create a new graphic list with the name “Mixer Motion“. At Value (Wert) 0 to 12, insert from the template directory the graphics “Mixer1“ to “Mixer7“ first in an ascending sequence and then in a descending sequence.
Automation and Drives - SCE Drag a graphic EA field into the basic display. At mode “Ausgabe“ (output), and under Display (Anzeige), select the graphic list “Mixer motion“ (mischerbewegung). As variable use “Count“ (zaehlwert) from the FB "mischerbewegung“ in DB1.
Automation and Drives - SCE As Transparent Color select white, and place the checkmark. Set the position and the size.
Automation and Drives - SCE Test the mixer motion in runtime. Note For jerk-free motion, set the data collection cycle of the variables to 100ms. man outflow tank2 man mixermotor man inflow tank1 mixer motion.
Automation and Drives - SCE 8.4 Configuring Objects in the Permanent Window The levels of the three tanks and of the container are to be displayed in the permanent window. 8.4.1 Configuring Text Fields Drag a text field to the permanent window of the basic display. As text, enter “Tank1:“. Set the fill type to Transparent. Set the position and the size. Select a small font size and change the text alignment. Copy and Insert the text field.
Automation and Drives - SCE 8.4.2 Configuring the Output Fields We want to utilize a new WinCC flexible function for the output fields. To this end, open the window of the objects, and pin it down. In the project window, click on Variables, and all variables are displayed in the object window. Scroll to the variables of the tank levels (INHALT_...) (content_...). Drag the variable “INHALT_T1“ into the permanent window; it will be inserted automatically in an EA field that is connected to the variable.
Automation and Drives - SCE Set the properties.
Automation and Drives - SCE Drag the variables of the other tank levels from the object window to the permanent window, and change the properties; or copy and insert the EA_field and change the variables and the position in the properties. Note In the menu View, click on Anordnung wiederherstellen (restore arrangement), to reset the window arrangement to the basic setting. Save tour project and check it for consistency.
Automation and Drives - SCE 9 CONFIGURING MESSAGES The representation of the color mixing plant is by and large completed. What still needs to be done are the messages. Messages are generated if an event bit occurs (bit messages), or when a limit is overrange or underrange (analog messages). The message texts contain a description of the cause for the message with the message status, or only notes on the current operation of the plant.
Automation and Drives - SCE 9.3 Message Window The message texts are to be displayed in a message window. The message window is configured into the template picture. This inserts it automatically in the background of all other pictures. With a double click, open the picture "Template“ in the project window. From the tool window under Expanded Objects, drag the Message Window into the template picture. Set the inserted message window. Use the message window for pending and acknowledged messages.
Automation and Drives - SCE At Style (Gestaltung), change the background color to white, and at Text, change the font size for the table and the heading to Tahoma; 8pt. In the display (Anzeige) settings, set the checkmark for the buttons “Help text“ (Hilfetext) and “Acknowledge“ (Quittieren). Select the Visible Columns (Sichtbare Spalten) of the message window. At Mode, assign the window title, and set other properties.
Automation and Drives - SCE 9.4 Message Indicator The message indicator is displayed if messages of the specified message class are pending or have to be acknowledged. The message indicator can have two states: - Blinking: At least one unacknowledged message is pending. - Static: The messages are acknowledged, but at least one of them is not cleared. When clicking on the message indicator, the configured action is performed.
Automation and Drives - SCE 9.5 Testing the Message Configuration in Runtime Open the inflow valves of the tanks, and let the tanks fill up beyond the maximum value. The message window and the message indicator appear. Close the message window. The message indicator remains until the messages are cleared (that is, the cause is removed) and acknowledged, even if you are switching to another picture.
Automation and Drives - SCE 10 CONFIGURING RECIPES Recipes can be set up for the different mixing ratios of the color mixing plant. By using recipes, it is possible to transfer several variables simultaneously to the controller. Recipes can be stored in the controller or in the panel. 10.1 Adding Recipes In the project window, double click on “Add Recipe“. As recipe name and as display name, enter “Color Mixtures“ (Farbmischungen).
Automation and Drives - SCE 10.2 Specifying Data Sets Click on “Data sets“ and enter the data sets for the recipes “Color mixtures“. Red tone Green tone Blue tone 10.3 Generating the Pictures “Recipe Input“ and “Recipe Selection“ Two additional pictures have to be created for new inputs od recipes and for selecting recipes. By means of recipe displays with definable buttons, new recipes can be entered, or merely a selection can be made. 10.3.
Automation and Drives - SCE Select the recipe “Color mixtures“ (Farbmischungen). Remove the checkmark at Auswahlfeld anzeigen (Display Selection Field). Set the background color to white and at Text, select a smaller font size. Change the position to X0 and Y0, the size to 320 x 188. Accept the settings for Display (Anzeige) and Buttons (Schaltflächen) .
Automation and Drives - SCE 10.3.2 Configuring the Picture "Recipe Selection“ Create a new picture with the name “Recipe Selection“. From the tool window under Expanded Objects, drag a Recipe Display into the figure. Select the recipe “Color Mixtures“ (Farbmischungen). Remove the checkmark at Display selection field (Auswahlfeld anzeigen). Set the background color to white, and at Text, select a smaller font size. Change the position to X0 and Y0, the size to 320 x 188.
Automation and Drives - SCE 10.3.3 Configuring Buttons for Display Change Drag the Basic Display and the picture “Recipe Input“ (Rezepteingabe) into the picture “Recipe Selection“. Change the font size, the position and the size of the buttons. In exactly the same way, create the button in the picture “Recipe Input“ (Rezepteingabe).
Automation and Drives - SCE Change to the Basic Display. Drag the picture “Recipe selection“ into the basic display. At General (Allgemein), change Text AUS to “Recipes“. Change the font size, the position and the size of the button. Save your project and check it for consistency. Transfer the project to the panel only if the check returns no errors and no warnings.
Automation and Drives - SCE 10.4 Selecting Recipes in Runtime Change to the picture “Recipe Selection“ and select a data set. After the selection, the values have been written to the variables.
Automation and Drives - SCE 10.5 Entering New Recipes in Runtime Change to the picture “Recipe Input“ and click on the button “New“. Enter the name of the data set and the values. Click on the Save button, and select the data set in the selection picture.
Automation and Drives - SCE 11 CONFIGURING USER MANAGEMENT User groups and users can be set up by means of user management. The access rights are granted to a user group. These access rights govern the access to data and functions to protect them from unauthorized operation. A user is then assigned to a user group. 11.1 Setting up User Groups In the project window, double click on Gruppen (groups) in the folder Benutzerverwaltung Runtime (user management runtime).
Automation and Drives - SCE Create the group “Einsteller“ (setters) with the authorization “Betriebsarten umschalten“ (switch operating modes). Create the group “Entwickler“ (developers) with the authorization “Rezepte eingeben“ (enter recipes). 11.2 Setting Up Users In the project window, double click on Benutzer (users) in the folder Benutzerverwaltung Runtime (user management runtime). Here, we are setting up three new users, and assign them to the user groups.
Automation and Drives - SCE Create an Einsteller (setter) with the name “SCHMIDT“ and the Kennwort (password) “KLAUS“. Create an Entwickler (developer) with the name “HUBER“ and the password “FRANZ“. 11.3 Assigning Authorizations Operating the start button and selecting the color mixture from the recipes is permitted only to users who are authorized. Only the setter is permitted to switch the operating mode of the plant to manual operation.
Automation and Drives - SCE 11.3.2 Protecting Data Selection In the picture “Rezeptauswahl“ (recipe selection), highlight the Rezepturanzeige (recipe display), and change the security settings. 11.3.3 Protecting Recipe Input Change the security settings of the recipe display in the picture “Rezepteingabe“ (recipe input).
Automation and Drives - SCE 11.3.4 Protecting the Operating Mode Selection Also change the security settings for auto/manual switching. Save your project and check it for consistency. Transfer the project to the panel only when the check returns no errors and no warnings. Confirm the overwritten recipe data and password list with “Yes“.
Automation and Drives - SCE 11.4 Testing User Management in Runtime If you are actuating a protected object in runtime, a log-on window will prompt you to enter the user name and the password. After input, you have to reactuate the object.