Wonderware Condition Script

willcheung12

Member
Join Date
Dec 2018
Location
Chicago
Posts
3
I have an intouch condition script that generates 8 different csv files everyday at 0830 and populates them with totals for the previous day. For some reason, some of the files stopped generating, but some still generate.

They pull data from the PLC, so regardless of what the PLC is telling intouch what the values are, I would expect Wonderware to generate the csv files.

Does anybody have any insight into how scripts are run in intouch? I've done a bunch of research, but can't understand why only some of the csv files are being made.

Intouch v6.0b running on Windows2000
 
I have an intouch condition script that generates 8 different csv files everyday at 0830 and populates them with totals for the previous day. For some reason, some of the files stopped generating, but some still generate.

They pull data from the PLC, so regardless of what the PLC is telling intouch what the values are, I would expect Wonderware to generate the csv files.

Does anybody have any insight into how scripts are run in intouch? I've done a bunch of research, but can't understand why only some of the csv files are being made.

Intouch v6.0b running on Windows2000

The first thing I'd do is look at the conditions that trigger the various scripts. I would assume that the scripts that stopped running had a different trigger condition from the others and that the condition is no longer becoming true for some reason.

I suppose it's also possible that the scripts are running but are getting some kind of error when attempting to create the file.
 
Check the date/time format in Windows against how the date and time is built in the script.
The Intouch script may be pulling time from the $Date and $Time tags. They will report the same format of Windows "Regional Settings".
 
Check the date/time format in Windows against how the date and time is built in the script.
The Intouch script may be pulling time from the $Date and $Time tags. They will report the same format of Windows "Regional Settings".

I have encountered scripts that rely upon the Windows time format using underscores ( _ ) rather than slashes ( / ).

I personally don't like to have an application rely upon a non-standard Windows setting in that way.
 
I put flags in the script to check if every csv file gets generated and put them in the event log and suddenly all the files got generated. Not sure why it decided to finally work.
 
I have encountered scripts that rely upon the Windows time format using underscores ( _ ) rather than slashes ( / ).

I personally don't like to have an application rely upon a non-standard Windows setting in that way.

I use some date/time scripts where I am using "String" commands to read characters of the date (ie.. to convert 01/10/19 to 011019) for filenames.
However this still requires a certain setting in Windows regional settings to be set in Windows....it must be mm/dd/yy....not m/d/yy (which would be 1/10/19 and not 01/10/19)
The reason I usually change the windows regional setting to be 01-10-19 instead of 01/10/19 is if someone accidentally changes the regional setting to be m/d/yy then I will ended up getting a "/" in my string command and a "/" is not acceptable for a filename....but a "-" is. I never use an underscore, only a dash.
 

Similar Topics

Hi, We are setting up an Aveva Plant SCADA node with the intention to connect it to a Wonderware Historian node. Everywhere I look online I see...
Replies
1
Views
120
Hola chicos. Tengo un problema con el driver de comucicacion dasabcip 5, y un plc controllogix v34, ya realice la comunicacion pero en ciertos...
Replies
2
Views
103
Hi, I am upgrading a Wonderware SCADA form version 9.5 to version 23. I am able to migrate all the graphic, but when to activate the runtime this...
Replies
8
Views
339
Hi all, I am using OI.GATEWAY.2 to communicate to the PLC using an OPC UA. I can see the tags using an OPC explorer connecting to the...
Replies
0
Views
129
A project recently went through to replace an old computer that was running Wonderware with a new computer. After a bit of work I was able to get...
Replies
7
Views
403
Back
Top Bottom