Scripting for Time string to Seconds
Posted: Thu Jul 12, 2018 1:30 pm
I have tried to run this through several times and can get it working fine in simulated mode but never the HMI. I am currently using the X2 7 Pro.
And as i said before it works in the PC build and simulation but i get format exception with everything i have tried inside the HMI.
Anyone know a fix for this problem ?
Code: Select all
string time = Globals.Tags.Test1.Value;
Globals.Tags.Test.Value = Convert.ToInt32(TimeSpan.Parse(time).TotalSeconds);
Anyone know a fix for this problem ?