10/2/2015 12:25 PM | |
Joined: 9/23/2005 Last visit: 1/21/2025 Posts: 4395 Rating: (1464)
|
“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:
By clicking on button (or filling a IO field) just alarms that contain a specific key text in your text definition are showed.
Requirements: WinCC Advanced V13 SP1.
Project with a minimum discrete alarm configuration (stop - See reference “WinCC Advanced V13 SP1 – Simple Sample: Discrete Alarm, https://support.industry.siemens.com/tf/br/en/posts/135059/).
Configuration main steps:
Create a internal variable as key text propose (HMI Tags → Show all tag → <Add new> ; Name = “HMI_Tag_3”; Data type = “Wstring”.
Open a screen Configure a alarm view (properties → Alarm Filter → Filter tag: = “HMI_Tag_3”) Create a IO Field (Toolbox → Elements) Connect the IO Field to “HMI_Tag_3” (Properties → General → Tag: = “HMI_Tag_2”; Display format = “String”).
VB Script alternative The follow VB Scripts could be linked to buttons to set a preset value to “HMI_Tag_3” (key for search) – Change keytext for your reference text
Sub VBFunction_2()
SmartTags("HMI_Tag_3").Value = “keytext”
End Sub
Notes:
It is not possible to use wildcats or introduce logical combination for the search – use just a reference text to be search in the message text.
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: as project.zip
AttachmentProject1.zip (281 Downloads) |
Denilson Pegaia |
|
Follow us on