Hello, I have a question regarding changing button colors using scripts in VBS. I have successfully used scripts with multiple hmiruntime.tags before, with the largest number being 16. However, I recently tried using 54 tags and 54 expressions, but the script is not working. Is there a limit in VBS that could be causing this issue, such as a limit on the size of the script itself? Thank you in advance for your help.
If you encounter errors in VB and find that commands are not being executed as expected, consider adding the command "On Error Resume Next" at the beginning of your VB script. This can help identify and handle any errors that may occur. Additionally, you can create an error trap that prints out the error message. In your script, include lines such as "On Error GoTo myErrorPrint" to direct the script to a specific error handling section. At the end of your script, you can display a message box or use tracing tools such as WinCC uTools debug to track the error. The WinCC scripting manual provides a wealth of examples for error handling in scripts.
Hey there, while VBS itself doesn't have a strict limit on the size of the script or the number of tags used, the issue might be related to system resources or specific implementation nuances in the system you're using. It's also possible there's an error in your script that only becomes noticeable with a larger number of tags. Try breaking down your script into smaller parts to debug, and consider optimizing it if necessary. Also, make sure your system has the necessary resources to handle such a load. Best of luck!
Hey there, it's unlikely that VBS has a limit causing this issue. It's rather robust and can handle a high number of tags and expressions. What might be happening is an error occurring due to the increased complexity. I recommend breaking your script down and testing smaller parts to isolate the issue. Also, ensure that your expressions are formatted correctly. Such errors can be hard to spot, especially when dealing with large amounts of code. Keep at it, you'll pinpoint the problem!
✅ Work Order Management
✅ Asset Tracking
✅ Preventive Maintenance
✅ Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: 1. Is there a limit on the number of tags and expressions that can be used in a VBScript for changing button colors in WinCC v7.5.2.3? - There doesn't seem to be a specific limit mentioned for the number of tags and expressions that can be used in VBScript for changing button colors in WinCC v7.5.2.3. However, the user mentioned encountering issues when using 54 tags and 54 expressions.
Answer: - The user in the discussion thread raised a concern about the script not working when using 54 tags and 54 expressions, hinting at a possible limit related to the script size. Further investigation may be needed to determine if there is a specific size limit for VBScripts in WinCC v7.5.2.3.
Answer: - If a VBScript with multiple tags and expressions is not working as expected, it might be helpful to review the script for any errors or inefficiencies. Additionally, reaching out to technical support or consulting the WinCC v7.5.2.3 documentation for any known limitations related to script size or functionality could provide further insights.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.