10/12/2015 12:59 PM | |
Joined: 9/23/2005 Last visit: 11/1/2024 Posts: 4351 Rating: (1451)
|
“Simple Sample” 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:
In this simple sample, trends are showed, hide, color changed and represents different tags by VB script commands.
Requirements: WinCC Professional V13 SP1.
Project with a minimum configuration (stop button, tags, etc.).
Configuration main steps:
For Hide the first trend:
Sub OnClick(ByVal item)
Dim aaa Set aaa = HMIRuntime.ActiveScreen.ScreenItems("f(t) trend view_1")
aaa.TrendIndex = 0 aaa.TrendVisible = False
End Sub
For Show the first trend
Sub OnClick(ByVal item)
Dim aaa Set aaa = HMIRuntime.ActiveScreen.ScreenItems("f(t) trend view_1")
aaa.TrendIndex = 0 aaa.TrendVisible = True
End Sub
To set the first trend to represents the logged variable HMI_Tag_2:
Sub OnClick(ByVal item)
Dim aaa Set aaa = HMIRuntime.ActiveScreen.ScreenItems("f(t) trend view_1")
aaa.TrendIndex = 0 aaa.TrendTagName = "Data_log_1\Logging_tag_2" End Sub
To set the first trend to be showed in red
Sub OnClick(ByVal item)
Dim aaa Set aaa = HMIRuntime.ActiveScreen.ScreenItems("f(t) trend view_1")
aaa.TrendIndex = 0 aaa.TrendColor = vbRed
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
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: attached as project.zip.
AttachmentProject.zip (695 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to6 thankful Users |
10/12/2015 1:08 PM | |
Posts: 310 Rating: (18) |
Dear Denilson , Thank You Very Much For Great Information.. Regards, Arasan.. |
10/13/2015 12:39 PM | |
Joined: 9/23/2005 Last visit: 11/1/2024 Posts: 4351 Rating: (1451)
|
it is a pleasure to help you. |
Denilson Pegaia |
|
10/6/2016 8:26 AM | |
Posts: 30 Rating: (1) |
hi thanks alot do you have " Rcorde vbs simple sample" for Wincc 7.0 SP3. best regards |
10/21/2016 2:43 PM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4766 Rating: (122) |
New question published by l_person is split to a separate thread with the subject How to add "Title_Header" for Trend?. Best regards |
10/25/2016 10:34 AM | |
Posts: 30 Rating: (1) |
Hello Dear Denilson , Thanks alot . is there this example project with Wincc 7.2 ? best regards saeed maghami |
11/6/2016 9:19 PM | |
Joined: 8/21/2014 Last visit: 10/31/2024 Posts: 1024 Rating: (14) |
New question published by tecnoproject is split to a separate thread with the subject WinCC V13 Advanced: Trends pen control by VB script possible?. Best regards |
My Forum is the place to personalize your profile, |
|
Follow us on