Wonderware Script-time To Integer, String To Int

Apel

Member
Join Date
Aug 2007
Location
Singapore
Posts
98
DEAR ALL,
Do you have any experience how to convert time to integer value, I have to do this for my present application.I have to start and stop 7 compressors according cyclically by start time and stop time,,,any idea? The Time inputs are in the format of 00:00

Apel
 
Last edited:
I take it the time is input by an operator in the 00:00 format?


You can use StringRight() and StringLeft() the extract the hours and minutes before converting to integers with StringToIntg()

The resulting tags can then be used in as comparisons with the system time tags $Hour $Minute ($Second) to trigger condition scripts.
 
Thanks KRK, You are absolutely right...I found that is the only way to to do in wonderware...no other simple way to do it.
 

Similar Topics

Hi all, Currently delving into Wonderware/Aveva System Platform for the first time, and I'm trying to set up a script to automatically write to...
Replies
3
Views
928
I have an older application that seems to rely on ICTMOUSE.DLL. I cannot locate this script extension using good ole google ANYWHERE! Would anyone...
Replies
4
Views
1,985
Hey I was needing help with some alarm scripting in Woderware System Platform. What would be the best way to write a script to auto acknowledge...
Replies
2
Views
2,542
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...
Replies
5
Views
2,412
Hi, I am trying to use Script function Library. I used Visual Studio to write the C# dll i will import in Archestra. So I import my dll...
Replies
1
Views
2,582
Back
Top Bottom