10/3/2012 6:54 PM | |
Joined: 1/28/2009 Last visit: 9/15/2025 Posts: 6875 Rating:
|
Hello, To do the task,the easiest way using "TIME" data type.This data type shows how many "ms" is in selected period. To obtain number of "seconds", you should divide the "TIME" by 1000 as "DINT". Also possible to find out the number of minutes! My suggestion would be conversion of data type "TIME" to its "REAL" equivalent which can be freely used in Arithmetic and Mathematics instructions. [code] L MD 100 //Data type TIME L 1000 /D DTR T MD 104[/code] Check a very detailed discussion here: Variable Time Value TimerBest regards, Hamid Hosseini |
This contribution was helpful to
1 thankful Users |
Follow us on