VBscript size limit in Wincc v7.5.2.3?

Kceaglesfan

Member
Join Date
Jan 2021
Location
Kansas
Posts
6
Hello,
I have a quick question. I have been using scripts to change the color of buttons. The reason, I am usually using multiple hmiruntime.tags.
The largest number of tags until today was 16. They all have worked. today I did one with 54 tags and 54 expressions. Done just like the smaller ones.
I however can not get it to work. Is there a limit in VBS, like the size of the script itself.


Thank in advance
 
More likely error on VB and commands after that isn't exceuted.
Try Command "On Error Resume Next"on beginning of VB and see if it make difference.
You can also make errortrap which prints error.

on beginning of script
on error goto my Erroprint

and on last lines something like (msgbox or trace which you can look with WinCC uTools debug

exit sub

Errorpint
msgbox "error on color change script"

HMIRuntime.Trace "error on color change script"
end sub

WinCC scripting manual have plenty of examples for that ;)
 

Similar Topics

I am using Indusoft Version 8.1, and trying to use the VBScript button command to find a string in a column in a MySql database, and return all...
Replies
36
Views
8,747
hello, i m trying to write a VB script on wincc RT Advanced to activate an internal tag. but it won't work. any help here...
Replies
9
Views
2,969
Hi, Siemens TP900 Comfort: VBscript logging vs datalog I have a request from a customer. He needs to log around 10 real value's. The interval...
Replies
0
Views
2,232
Hi, I tried this: HMIRuntime.Screens("Mainscreen.bottomwindow:bottomwindow").ScreenItems("btn_body").back.color = RGB(255,255,255)...
Replies
1
Views
3,626
Hey guys. I am tyring connect from my HMI (TP1200) to a network location and open a file from a folder. The twist is I don't know what the file...
Replies
1
Views
4,728
Back
Top Bottom