10/13/2015 8:38 PM | |
Joined: 9/23/2005 Last visit: 9/29/2023 Posts: 4241 Rating:
|
“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, the trend view time axis is set to determinate time interval by button click.
Requirements: WinCC Professional V13 SP1.
Project with a minimum configuration (stop button, tags, etc.).
Configuration main steps:
To set a time interval (related to HMI_Tag_3 and HMI_Tag_4):
Sub OnClick(ByVal item)
Dim aaa
Set aaa = ScreenItems("f(t) trend view_1") aaa.Online = False aaa.TimeAxisBeginTime = CDate(SmartTags("HMI_Tag_3")) aaa.TimeAxisEndTime = CDate(SmartTags("HMI_Tag_4"))
End Sub
To set the trend to show the actual time values (real time):
Sub OnClick(ByVal item)
Dim aaa Set aaa = ScreenItems("f(t) trend view_1") aaa.Online = True
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
AttachmentProject2.zip (218 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to
3 thankful Users |
10/4/2017 9:06 AM | |
Joined: 6/19/2017 Last visit: 9/29/2023 Posts: 7329 Rating:
|
New question published by Summer88 is split to a separate thread with the subject How to export the selected time interval on the trend?. Best regards |
My Forum is the place to personalize your profile, |
|
Follow us on