User guide
eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 167
9.2.76 TGET
Syntax[function]
TGET E1
• E1 is the number of the timer (1 to 4).
Purpose:
Returns N (>0) if the timer expires and then resets the value (N is the number of times the timer has expired) TGET returns.
Returns '0' if the timer did not expired since the last call to TGET.
Example:
See also:
“ONTIMER” on page 154, “TSET” on page 167.
9.2.77 TSET
Syntax[Command]
TSET E1, E2
• E1 is the number of the timer (1 to 4).
• E2 is the value in seconds of the timer.
Purpose:
Initializes the timer E1 at an E2 time base (in second). The timer is read by TGET.
Example:
To stop a timer, you must put the value 0:
See also:
“ONTIMER” on page 154, “TGET” on page 167.
REM timer 1 minute
TSET 1,60
Label1:
IF NOT TGET 1 GOTO LABEL1
REM timer 1 minute
TSET 1,60
Label1:
IF NOT TGET 1 GOTO LABEL1
TSET 1,0