WinCC Unified: switch archive variables and trend dynamically on a trend control

Опубликовано: 16 Октябрь 2024
на канале: DerHecht4.0
10,453
70

Stefan Osterkorn has asked my how he could switch archive variables dynamically to a trend control via script. Use Case Button1 = Trend1, Button2=Trend 2
In this video I will show how you can change dynamically archive tags to the control. Furthermore, I will show you how to toggle trend with a dynamic data connection


00:00 Intro
00:36 switch archive variables
04:13 multiple trends
06:35 toggle trends

//JS
Screen.Items("Trend control_1").TrendAreas[0].Trends[0].DataSourceY.Source = "MyRTStation::MyTag3:LoggingTag_MyTag3";//"RTStationName::TagName:LoggingTagName"


Music from Unicorn Heads- Drifting at 432 Hz    • Unicorn Heads - Drifting at 432 Hz  

#DerHecht #WinCC #Unified #TIAPortal