10/2/2015 12:29 PM | |
Joined: 9/23/2005 Last visit: 10/10/2024 Posts: 4349 Rating: (1446)
|
“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 WinCC Professional Alarms Control has already a very nice tool that allow to configure static (offline) and dynamic (online) filters for alarms. Despite of it, in some applications, it should interesting to filter alarm text by scripting.
In this simple sample, by clicking on button (whit or without the help of filling a IO field) just alarms that contain a specific key text in your text definition are showed.
This concept could be used all for other filters (for example, class). See notes and references.
Requirements: WinCC Professional V13 SP1.
Project with a minimum configuration (stop - See references “WinCC Professional V13 SP1 – Simple Sample: Discrete Alarm” https://support.industry.siemens.com/tf/br/en/posts/135058/).
Configuration main steps:
Sub OnClick(ByVal item)
Dim aaa
'create reference to AlarmControl Set aaa = ScreenItems("Alarm view_1")
aaa.MsgFilterSQL = "TEXT1 LIKE 'Alarm 0 active'"
End Sub
Notes:
Examples:
"TEXT1 LIKE 'Alarm 0 active'" = Alarm text should match with 'Alarm 0 active' "TEXT1 LIKE 'Alarm 0*'" = Alarm text should starts with 'Alarm 0' "TEXT1 LIKE '*0*'" = Alarm text should have '0' in the text "TEXT1 LIKE 'Alarm 0 active' or "TEXT1 LIKE 'Alarm 1 active'" = Alarm text should match with 'Alarm 1 active'" or with 'Alarm 1active' etc.
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
FAQ Despite of made by WinCC V6, this FAQ gives a guide to configure alarm filters based on C Scripting for different keys (Class, text, etc.).
How do you use the "MsgFilterSQL" property of the WinCC Alarm Control in order employ an SQL statement to filter the messages to be displayed? https://support.industry.siemens.com/cs/br/pt/view/5668269/en
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
How do you set a filter to 2 or more areas in a WinCC message window? https://support.industry.siemens.com/cs/br/en/view/109478866
Project: projecto.zip
AttachmentProjeto.zip (323 Downloads) |
Last edited by: Denilson Pegaia at: 10/15/2015 12:38:52 PMDenilson Pegaia |
|
This contribution was helpful to3 thankful Users |
Follow us on