Script runs faster in runtime version of Wonderware InTouch

Thanks for testing, Bit. I actually have had the script running pretty reliably and consistently when I tested it, so I'm not sure why its inconsistent for you. I agree that something so precise should be done in the PLC but this is what my supervisors have requested. :/
 
Thanks for testing, Bit. I actually have had the script running pretty reliably and consistently when I tested it, so I'm not sure why its inconsistent for you. I agree that something so precise should be done in the PLC but this is what my supervisors have requested. :/
 
In my experience, that is too fast of a time frame for InTouch to keep up with (again single threaded process). You will always see variability between machines at that pace. I would suggest trying a slower interval and change your math accordingly. Think of it like a time slice (time interrupt, or periodic task) in a PLC, except InTouch will not interrupt itself to re-execute a script.

Again I agree with Bit here, a PLC would be much better to process something like this that is time sensitive/critical.

🍻
 
Hey guys - I found a solution!
Turns out the reason that the script was acting weird was because I was doing calculations on the tag and sending it to the PLC at the same time. I tried using one tag name for computation and then copying that value onto another tag which I used to send over to the PLC. It works exactly how I want it to now.

Thanks for all your insights guys! Hope my question might help someone else in some way too!
(y)
 

Similar Topics

Hello, I am learning to create shapes and VB Scripts in HMIWeb Display Builder. I wanted to change color of my rounded rectangle by script. I...
Replies
0
Views
102
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...
Replies
1
Views
97
Hi All, I'm keep getting double quotes in between selections rather than the beginning and the end. Here's the script and please help to find...
Replies
7
Views
797
Dear guys, I am not a programmer but I can do simple things myself. I'm stuck with the following. if I want to extract a value from my rx3i...
Replies
46
Views
4,748
Hi guys, I'm busy on the migration of old 3G/RS232 modems to 4-5G / Ethernet modems on about 200 pumping stations across the country. To...
Replies
0
Views
432
Back
Top Bottom