TIMER
It is possible to run 10 independent timers simultaneously. TIMER[0] - TIMER[9]
The different states of the timers can automatically execute different commands.
Time can be specified in milliseconds, seconds, minutes, even in intervals of several days.
TIMER[0](time1)
TIMER[0](time1,repeat)
TIMER[0](time1,time2)
TIMER[0](time1,time2,repeat)
TIMER[0]CS:STD@START;LED(ON)
Sends the string START to STDOUT and turns on the LED when Time1 starts.
TIMER[0]CE1:STD@END;LED(OFF)
Sends the string END to STDOUT and turns off the LED at the end of Time1.
TIMER[0]CE2:STD@WAIT END
Sends the string WAIT END to STDOUT at the end of Time2.
TIMER[0]CF:STD@FINISH
Sends the string FINISH to STDOUT at the end of the cycle.
TIMER
Turns on the LED for 500 ms.
TIMER[0](2s)
Turns on the LED for 2 seconds.
TIMER[0](1m)
Turns on the LED for 1 minute.
TIMER[0](1m)@
Turns on the LED for 1 minute, the remaining/elapsed time is visible on STDOUT.
TIMER[0]OR
Shows the remaining time. Default
TIMER[0]OE
Shows the elapsed time.
STR[0]=5s
TIMER[0](STR[0])@
Starts the timer with the value of STR[0].
NUM[0]=8
TIMER[0](NUM[0]s)@
Starts the timer with the value of NUM[0].
TIMER[1]CS:NUM[0]@=RND(100)
TIMER[1](1s,x)
Sends a random number to STDOUT every second.
TIMER[2]CS:LED(ON)|
TIMER[2]CE1:LED(OFF)|
TIMER[2](100,300,x)
LED blinks 100ms/300ms.
TIMER[2](100,300,3x)
LED blinks 100ms/300ms 3 times.
TIMER[0]CC1:STR[0]@=Time1 %TIMER[0]T
Executes the command if the value of time1 changes.
TIMER[0]CC2:STR[0]@=Time2 %TIMER[0]T
Executes the command if the value of time2 changes.
TIMER[0]@
Countdown can be viewed on STDOUT.
TIMER[0]T@
Sends the value of the timer to STDOUT.
TIMER[0]S@
Shows the state of the timer on STDOUT.
0: inactive
1: active (time1)
2: waiting before repetition (time2)
TIMER[0]E
Stops the timer.
TIMER[0]EC
Stops the timer, executes CE1, CE2, CF commands.
TIMER[0]RS
Clears the settings (CS, CE1, CE2, CF, M).