
Chapter 17 Time/Date Control
17-3
TIMER (System Variable) [Conforms to SLIM]
Function
Obtains the elapsed time.
Format
TIMER
Explanation
This statement obtains the elapsed time, measured in milliseconds from the
time, when the controller power is ON (0).
Note: If the elapsed time exceeds 2147483647 milliseconds, the
elapsed time will be displayed from -214148.3648 milliseconds.
Related Terms
Example
DEFINT li1, li2, li3
li1 = TIMER 'Assigns the elapsed time from the reference time to li1.
li2 = TIMER + li3 'Assigns the value of the elapsed time with li3 added from
'the reference time to li2.
Comentarios a estos manuales