TIMER
(System Variable)
Obtains the elapsed time.
TIMER
This statement obtains the elapsed time, measured in milliseconds from the time, when the controller power is ON (0).
Whenever the elapsed time exceeds 1431655750 milliseconds, the elapsed time is reset to 0.
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.
|