Wincc Faceplate - Creation
Wincc Faceplate - Creation
csinfo&objId=23425423&nodeid0=
10805577&load=treecontent&lang=en&siteid=cseus&aktprim=0&objaction=csview&extranet=standard
&viewreg=WW
Instructions:
Faceplates enable users to customize the compilation of existing objects (e.g. rectangle, IO field,
button, etc.). These faceplates can be saved in a library and be used in other projects so as to
reduce the configuration workload.
Since every faceplate is a user-defined object, you can define the properties which are
permanently saved in the Properties window for an IO field, for example, yourself.
In the case of faceplates with a more complex interface, structures offer the benefit of reducing
the configuration workload. If, for example, there are twenty tags transferred to the faceplate, the
user simply has to link a structure which contains this number of tags (structural elements). It is
particularly advantageous to use structures if this faceplate is used repeatedly in a project.
Fig. 01
The static interface and internal tags
• Objects (A)
Objects are graphical elements which are used to design the process pictures for your
faceplate, such as text fields, graphics and interfaces.
• Properties - static (B)
The static properties can be linked to the properties of the individual objects in the
faceplate. The link and the declaration take place in the configuration window of the
faceplate. All the static properties are constant throughout the WinCC flexible runtime.
• Static interface (C)
Constant parameters (E) and user rights (F) can be transferred individually as properties
to the faceplate via the static interface. These properties must be configured beforehand
within the faceplate in order to ensure that they are available outside the faceplate as well.
The static properties are defined via the static interface in the Properties dialog of the
faceplate under the entry "General".
Use of structures
Structures can only be used in:
• faceplates
• S7 connections or in internal tags
• the dynamic interface.
Note:
There is a sample project available to Download at the end of this entry. It contains a link to a
structure within a faceplate.
N Procedure
o.
1 Creating a dialog box
Fig. 03
Note:
Alternatively, you can also create a screenshot of a Windows dialog box, for example, and
integrate it as a graphics object.
2 Add buttons
Fig. 04
3 Adding text fields and rectangles
Fig. 05
4 Adding a graphics display
Fig. 06
5 Adding a structure
Fig. 07
Note:
In the "PLC" selection field, declare whether it is an internal structure or a structure with an
interface to an S7-300/400 controller. In the Tag Editor, the structure is only available for
the connection selected here.
6 Creating faceplates
Category Interface
Properties Internal and external data
Tags Internal data
Table 01
• Select all the objects (multi-selection) which are contained in the faceplate editor
(keeping the mouse button pressed in, drag the cursor over all the objects).
• Enable the "Visibility" property in the faceplate under "Animations".
• Link the "faceplate_visible" property, with the "Hidden" attributes, from "0" to "0".
Fig. 10
9 Defining the design of buttons
Background
Button Value Property
color
(Auto) (1) (green)
Properties.CB_0_Auto_On
Manual 0 yellow
Manual
1 blue
ON
Properties.CB_1_Manual_On
Manual
0 red
OFF
Table 02
Fig. 11
10 Defining the design of the rectangles
• Activate the "Appearance" animation for the two small rectangles "Fault" and
"Ready for use".
• Link the two properties "Properties.SB_5_Fault" and
"Properties.SB_6_Ready_for_use" to the "Appearance" animation.
• Select "Integer" as the type in each case, and enter the values "0" and "1".
• Under the value "1", configure the color "RED" for Fault and "GREEN" for Ready
for use.
• Optionally, the attribute "Flashing" can also be enabled under the value "1".
Fig. 12
11 Defining events
Table 03
Fig. 13
12 Adding an IO field
Fig. 14
13 Closing a faceplate
Close the faceplate or the faceplate tab.
14 Creating a connection and tags
• Switch to the "Connections" tab and click on the menu "Insert > New Object -
Connection".
• Configure the connection which you are using.
• Create two tags, one with "Structure_1" and one with the "BOOL" data type.
• Rename "Variable_1" "ST_Faceplate" and "Variable_2" "bFaceplate_visible".
Note:
If a connection has already been assigned to the Structure, (see tab "Structure_1"),
the data type "Internal tag" is not available.
Fig. 15
15 Linking tags to the faceplate
• Add a graphics view and link the "Horizontal pump (right)" graphic.
• Enable "Transparent color" under "Properties > Appearance" and resize it, if
necessary.
• Add a button to the picture which contains the faceplate. Select "Invisible" as the
type in the "General" properties.
• Link the function "SetBit" with the variable "Faceplate_visible" to the event
"Press".
• Place the "invisible" button over the graphic.
Fig. 17
17 Verifying the project
• Start WinCC flexible runtime with the simulator and then click the "invisible"
button.
• Click the "Manual" button.
Note:
In order to verify the project with an S7 controller, create a data block in the
SIMATIC Manager containing the "structure_1" setup.
Fig. 18
Download:
Attachment 1 contains a sample project containing the faceplate described above including the
structure and a sample application.
Keywords:
Faceplates, Module