10/2/2015 7:51 PM | |
Joined: 9/23/2005 Last visit: 9/29/2023 Posts: 4241 Rating:
|
“Simple Samples” are small projects that demonstrate simple features. The target is give a quick overview about the theme and be used as start point for related discussions. Follow there are a short description and the configuration main steps.
Description:
The graphical objects of a screen could be distributed in layers. It is possible do simplify / detailed screens by hiding / showing the layers (and their related objects). However, with HMI, it is just possible to hide / show layer in engineering environment. For hide/show objects in operation, it should necessary to work with hide / show animations for each individual element.
In this simple sample project, by clicking on a button, objects are showed / hide.
Requirements: WinCC Comfort V13 SP1.
Project with a minimum configuration (stop button, tags, etc.).
Configuration main steps: 1 – To hide / show object with the help of internal tag / internal functions:
2 – To hide / show objects with the help of VB scripting
Sub VBFunction_1() Dim aaa Set aaa = HmiRuntime.Screens("Root screen").ScreenItems("Circle_2") aaa.Visible = Not aaa.Visible Set aaa = HmiRuntime.Screens("Root screen").ScreenItems("Text field_2") aaa.Visible = Not aaa.Visible Set aaa = HmiRuntime.Screens("Root screen").ScreenItems("Rectangle_2") aaa.Visible = Not aaa.Visible Set aaa = HmiRuntime.Screens("Root screen").ScreenItems("I/O field_2") aaa.Visible = Not aaa.Visible
End Sub
References: Manual WinCC Professional V13.0 https://support.industry.siemens.com/cs/br/pt/view/92323076/en
Online helps system WinCC Professional V13.0 SP1 https://support.industry.siemens.com/cs/br/pt/view/109096785/en
Application and tools Demo projects for HMI operator panels under WinCC V13 (TIA Portal) for Basic Panels (2nd generation) and Comfort Panels https://support.industry.siemens.com/cs/br/pt/view/96003274/en
FAQ Which VBS information and VBS programming tools are there in WinCC (TIA Portal)? https://support.industry.siemens.com/cs/br/pt/view/59885894/en
Tips and tricks for creating scripts in WinCC (TIA Portal) https://support.industry.siemens.com/cs/br/pt/view/57132412/en
Project: Due a size/ format restrictions, the project are attached in zip format as project.zip.
AttachmentProject.zip (183 Downloads) |
Denilson Pegaia |
|
12/6/2019 1:06 AM | |
Joined: 11/9/2008 Last visit: 9/15/2023 Posts: 400 Rating:
|
Hi, I need help for script for hiding 2 object [In Faceplate]. Lets say I have 2 no.of circle and it is overlapping each other. I want to give priority to Circle-1 if both condition occurs at time. Circle-2 should not visible if circle-1 condition get trigger. I am using Integer addressing with different bit number to trigger. I dont to create PLC code for same. I am using comfort Panel TP-1200 for the same. Please let me know if it is possible. Regards, Yogendra |
Follow us on