I have the following problem, I now have a timer, where I use the ET on a screen that I convert to a string, but unfortunately I see the following 24m30s490ms, is there a possibility to defend the 490ms defenitively,?
Br
Jeffrey Collewijn
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2018-01-23
Originally created by: scott_cunningham
You could check the OSCAT library - see CoDeSys store. Or, this is easy enough to roll your own. Here is one way:
TOD is a nice format for this (TOD#hh:mm:ss.mmm). Basically convert TIME to TOD to STRING and trim it for the answer.
Best,
I have the following problem, I now have a timer, where I use the ET on a screen that I convert to a string, but unfortunately I see the following 24m30s490ms, is there a possibility to defend the 490ms defenitively,?
Br
Jeffrey Collewijn
Originally created by: scott_cunningham
You could check the OSCAT library - see CoDeSys store. Or, this is easy enough to roll your own. Here is one way:
TOD is a nice format for this (TOD#hh:mm:ss.mmm). Basically convert TIME to TOD to STRING and trim it for the answer.
So now, you can just do:
Or, you can do:
a:time;
a:=a/1000;
and after
a:=a *1000
as a is an integer kind...