Wincc flexible script help

adamplc

Member
Join Date
Dec 2009
Location
usa
Posts
92
Please help me for some reason I cannot get the loop to continue, it is based on a screen name and if the screen is on the start page the script should loop.
It runs once when the script starts but fails to loop. What have I got wrong.
Thanks for anybodies help

Dim ScreenName
Do
ScreenName = HmiRuntime.BaseScreenName
Loop Until ScreenName <> "Start page"
If SmartTags ("Chuck_Part_clamped_with component") = True Then
SmartTags ("presence_chuck") = 1 'internal tag for animation green
ElseIf SmartTags ("Chuck_Part_clamped_with component") = True And SmartTags("Machine running") = True Then
SmartTags ("presence_chuck") = 2 'internal tag for animation yellow
Else SmartTags ("presence_chuck") = 0 'internal tag for animation red
End If
If SmartTags ("Tube_Part_presence_ready") = True Then
SmartTags ("presence_tube") = 1 'internal tag for animation green
ElseIf SmartTags ("Tube_Part_presence_ready") = True And SmartTags("Machine running") = True Then
SmartTags ("presence_tube") = 2 'internal tag for animation yellow
Else SmartTags ("presence_tube") = 0 'internal tag for animation red
End If
 

Similar Topics

I have 4 arrays. 1. -> arrdb1 (array of 52 bytes) 2. -> arrdb2 (array of 20 bytes) 3. -> arr1db300 (array of 20 bytes) 4. -> arr2db300 (array of...
Replies
3
Views
3,509
I want to call an executable (or .bat-file )from inside a script using WinCC Flexible 2007. :scratch: Searching the net always seems to return...
Replies
6
Views
5,571
Hi. is it possible to create a script in WinCC Flexible, that uses Xcopy to copy several (large) folders and create a systemmessage if the copy...
Replies
3
Views
1,928
Hi, I have to convert my csv file to an excel sheet in Wincc Flexible 2008 for which I have written the following code snippet: 'Alarm_Log.csv'...
Replies
0
Views
5,255
Hello Guys. I've tried to get my WinCC Flexible RT to run a .bat script on my pc that i've made. But i can't get the RT to run my script when...
Replies
0
Views
2,302
Back
Top Bottom