×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 23426415, Entry date: 01/27/2014
(1)
Rate

How can you switch a block to be hidden?

  • Entry
  • Associated product(s)
Instructions In WinCC flexible it is possible to user-define groups of graphics elements and to define the properties of these faceplates separately. The advantage of faceplates is the uncomplicated configuration, because the objects created are stored in the library and can be integrated immediately into other projects. The following table describes how to proceed to hide and show a block. ...

Instructions
In WinCC flexible it is possible to user-define groups of graphics elements and to define the properties of these faceplates separately. The advantage of faceplates is the uncomplicated configuration, because the objects created are stored in the library and can be integrated immediately into other projects. The following table describes how to proceed to hide and show a block.
 

No. Procedure
1

Group graphics
Insert the picture objects required for the faceplate in a picture and position them in the screen.



Fig. 01
 

(rectangle as frame, Fork lift 2 from Graphics View, circle)

2

Create faceplate
Mark the picture objects and create a faceplate via the menu entry "Faceplates > Create Faceplate".

3 Insert properties
Create a new property under "MyProperties". This property will be used later to switch the block externally visible/hidden.
To add a property you right-click "MyProperties" to open the pop-up menu or you click on the relevant icon in the "Faceplate configuration" toolbar.



Fig. 02
4 Activate properties
You activate the property by setting a check mark. Assign the name "FaceplateVisibility" and select "Bool" as data type.



Fig. 03
5

Link user-defined properties to the graphics
You first select the graphics objects (1) by clicking on them in the right window. Then you open the graphics object's Visibility menu via "Animations > Visibility" and click on the selection menu Variable (2). In "ScreenModuleProject" that opens in the "Properties" (3) folder you select the property (4) already created.



Fig. 04
6 Link properties to all graphics
Select all the other picture objects one after the other and link their visibility (under "Animations > Visibility") to the property "FaceplateVisibility" ("Communication > Properties").

Note
Alternatively you can also select all the objects via multiselection (press and hold the left mouse button and drag the pointer over the three objects) and then select the "FaceplateVisibility" property directly in the combo box via the "Animations > Visibility" properties dialog. In this way you can activate visibility for all objects with one configuration step.

Note
If after multiselection you check the "Enabled" check box, the multiselection is lost.

If objects have already be configured with the "Visibility" animation, these must not be included in the multiselection. We therefore recommend making configuring visibility the first configuration step.
 

7 Define parameters
Enter the values for the range. In this example we select the values 0 to 0.



Fig. 05
8 Finish faceplate
To finish the faceplate you close the faceplate editor - the faceplate is saved automatically.
9 Link properties to a tag
In the faceplate's properties under "Dynamic Interface" you see the "FaceplateVisibility" property you have created yourself. Now in this interface you select the tag ("Value" of the Bool type) that controls the faceplate's visibility.



Fig. 06
10 Insert a button
Insert a button that you can use to switch the faceplate's visibility on and off. For this under Events you select the system function "InvertBit" and connect this with the relevant tag.



Fig. 07

Now you can start configuration in Runtime and use the button to switch the faceplate to "Visible" or "Hidden".

Tip
Use invisible buttons over graphic objects to control the visibility of your faceplates.


Additional keywords
Faceplate, Picture elements, Picture objects, Graphics grouping, invisible button