00:00:00 callbackif 4 once   // check sensor 4, trigger once
00:00:00 track 0 stop
00:00:00 aux 0 off 
00:00:00 program 0 stop
00:00:00 callbackif 4 end

00:00:00 callbackifnot 3 repeat  // check sensor 3 off, trigger continuously
00:00:00 track 1 forward
00:00:00 callbackifnot 3 end

00:00:00 callbackif 3 repeat  // check sensor 3, trigger continuously
00:00:00 callbackif 3 ignore
00:00:00 track 1 stop
00:00:00 callbackif 3 end


00:00:05 track 3 forward //test command
00:00:05 track 5 reverse //test command 2
00:00:15 track 7 stop    //test command 3
00:00:15 callbackifcount 4 once // reset counter cbif 4
00:00:17 track 0 stop    //stop all tracks
00:00:18 aux 0 off       //turn all auxiliaries off

00:00:19 callbackif 0 ignore   // disable all callbacks
00:00:19 sense 3 if  
00:00:19 track 2 forward
00:00:19 sense 3 ignore  
00:00:19 trackstate 6 if  
00:00:19 track 2 stop     
00:00:19 trackstate 6 end  
00:00:19 sense 3 else
00:00:19 track 2 reverse       
00:00:19 sense 3 end  

00:00:21 sense 4 ifnot  
00:00:21 track 2 stop     
00:00:21 sense 4 end  
00:00:21 callbackif 3 restore

00:00:22 sense 4 ignore  

00:00:23 sense 4 if  
00:00:23 track 2 stop     
00:00:23 sense 4 end  

00:00:23 trackstate 6 if  
00:00:23 track 2 stop     
00:00:23 trackstate 6 end  

00:00:23 auxstate 5 if  
00:00:23 track 3 stop     
00:00:23 auxstate 5 end  

00:00:24 sense 4 restore   
    