timers.tmb for RC51 or RC5120 Demonstrates how to use count down timers to turn on a relay 5 seconds after the on-board SW1 is activated and then turn it off 3 seconds later. LED indicates when SW1 has been detected. ------------------------------- NEW 1 IF SW1=0 10 2 IF TIMER1=1 20 3 IF TIMER2=1 30 4 GOTO 1 10 LED=1 11 H=0 12 M=0 13 S=5 14 SETTIMER 1 15 GOTO 1 20 RELAY1=1 21 H=0 22 M=0 23 S=3 24 SETTIMER 2 25 CLEARTIMER 1 26 GOTO 1 30 RELAY1=0 31 LED=0 32 CLEARTIMER 2 36 GOTO 1