NEW 1 READCLOCK 2 A=S 3 IF A<>0 1 4 A=M 5 IF A=0 100 6 B=10 7 IF A=B 200 8 B=20 9 IF A=B 200 10 B=30 11 IF A=B 200 12 B=40 13 IF A=B 200 14 B=50 15 IF A=B 200 16 GOTO 1 100 RELAY1=1 101 LOOP 20 102 RELAY2=1 103 DELAY 1 104 RELAY2=0 105 DELAY 1 106 ENDLOOP 107 RELAY1=0 108 GOTO 1 200 LOOP 10 201 RELAY2=1 202 DELAY 1 203 RELAY2=0 204 DELAY 1 205 ENDLOOP 206 GOTO 1 this line and the lines below are comments and can be removed with a text editor or the errors caused by trying to upload them can be ignored ------------------------------- clockdem.tmb Demonstrates how to use the real time clock to run one routine on the hour and another routine at other 10 minutes intervals.