Ones_Zeros
Member
Hey guys,
Working with Wonderware to write a time
Script that I’m using for a calculation.
How is best way to do this?
For example if I write it like this my time
Script doesn’t change.
Script triggering by condition $Minute
If $hour == 22 AND $Minute == 15
Then timescript = 22.25
Else
If $Hour == 22 AND $Minute == 30
Then timescript = 22.50
Else
If $Hour == 22 AND $Minute == 45
Then timescript =22.75
Does this look right? For some reason I can’t get
The values to 22.25,22.50,22.75 to
Populate in my memory real tag.
I appreciate the help!
Working with Wonderware to write a time
Script that I’m using for a calculation.
How is best way to do this?
For example if I write it like this my time
Script doesn’t change.
Script triggering by condition $Minute
If $hour == 22 AND $Minute == 15
Then timescript = 22.25
Else
If $Hour == 22 AND $Minute == 30
Then timescript = 22.50
Else
If $Hour == 22 AND $Minute == 45
Then timescript =22.75
Does this look right? For some reason I can’t get
The values to 22.25,22.50,22.75 to
Populate in my memory real tag.
I appreciate the help!
Last edited: