(0)| 10/2/2015 12:34 PM | |
|
Joined: 9/23/2005 Last visit: 1/16/2026 Posts: 4449 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 WinCC 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 V7.3.
Project with a minimum configuration (stop button See references “WinCC V7 – Simple Sample: Discrete Alarm”https://support.industry.siemens.com/tf/br/en/posts/135060/).
Configuration main steps:
Sub OnClick(ByVal item)
Dim aaa
'create reference to AlarmControl Set aaa = ScreenItems("Control1")
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: Portal SIMATIC WinCC in Online Support https://support.industry.siemens.com/cs/br/pt/view/93906404/en
Manual WinCC V7.3: Working with WinCC https://support.industry.siemens.com/cs/ww/en/view/102754925
WinCC V7.3 Scripting: VBS, ANSI-C, VBA https://support.industry.siemens.com/cs/ww/en/view/102777678
Application and tools Demo projects for SIMATIC WinCC V7.3 https://support.industry.siemens.com/cs/br/pt/view/93148272/en
Example Blocks for WinCC V7 and STEP 7 V5 (for S7-300 with SCL and S7-400 with CFC, SCL) https://support.industry.siemens.com/cs/br/pt/view/68679830/en
Example blocks for WinCC V7 and STEP 7 (TIA Portal) (for S7-1200 and S7-1500 in SCL) https://support.industry.siemens.com/cs/br/pt/view/31624179/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
https://support.industry.siemens.com/cs/ww/en/view/109478866
Project: Due a size / format restrictions, the project are first compacted with 7z format (project.z7) in 3 parts and after that attached to a zip archive (data1.zip, data2.zip, data3.zip).
Attachmentdata1.zip (362 Downloads) |
Last edited by: Denilson Pegaia at: 12/7/2015 10:50:47 AMDenilson Pegaia |
|
This contribution was helpful to
|
|
| 10/2/2015 12:36 PM | |
|
Joined: 9/23/2005 Last visit: 1/16/2026 Posts: 4449 Rating:
|
data2
Attachmentdata2.zip (388 Downloads) |
|
Denilson Pegaia |
|
| 10/2/2015 12:36 PM | |
|
Joined: 9/23/2005 Last visit: 1/16/2026 Posts: 4449 Rating:
|
data3
Attachmentdata3.zip (316 Downloads) |
|
Denilson Pegaia |
|
| 10/2/2015 12:39 PM | |
|
Joined: 9/23/2005 Last visit: 1/16/2026 Posts: 4449 Rating:
|
data4
Attachmentdata4.zip (351 Downloads) |
|
Denilson Pegaia |
|
This contribution was helpful to
|
|
Follow us on