How can you switch a block to be hidden?
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.
(rectangle as frame, Fork lift 2 from Graphics View, circle)
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.
You activate the property by setting a check mark. Assign the name "FaceplateVisibility" and select "Bool" as data type.
Link user-defined properties to the graphics
|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").
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.
Enter the values for the range. In this example we select the values 0 to 0.
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.
|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.
Now you can start configuration in Runtime and use the button to switch the faceplate to "Visible" or "Hidden".
Use invisible buttons over graphic objects to control the visibility of your faceplates.
Faceplate, Picture elements, Picture objects, Graphics grouping, invisible button
- You have a technical question / problem: Ask the Technical Support
- You want to discuss in our forum and exchange experiences with other users
- You want to create CAx data for one or more products
- You would like to send us feedback on this Entry