Posted 27 Feb 2017 Hello. this is my firs post is possible to convert the elapsed time of timer to real or int i need to make some math operation with the elapsed time thanks Share this post Link to post Share on other sites
Posted 27 Feb 2017 Use TimeToSec to convert time to UINT. Then use **_TO_*** (Integer-to-Real Number Conversion Group). 1 person likes this Share this post Link to post Share on other sites
Posted 28 Feb 2017 Or you could use the 'Timer' function(100 ms timer) this function has the time as UINT. Share this post Link to post Share on other sites
Posted 22 Jul 2019 Hello, you can create a function (ST language) in Sysmac with this name => INT_TO_TIME code : // Input is an INT and return in TIME NanoSecToTime(In:=INT_TO_LINT(In:= Input) * LINT#1000000); After you can use an INT on a TON : // TON_Test : TON; Start_Test : BOOL; iValue_Test : INT; TON_Test (IN := Start_Test, PT := INT_TO_TIME(iValue_Test)); David 1 person likes this Share this post Link to post Share on other sites