turkeyus
04-29-2006, 07:39 AM
I would like to run a unit for 1hour.·I have been told to use LOOP, so tried and attached the code. Could you please give me a·feedback interms of it is correct or not or how can correct it. Also what if I want to run the unit for·60 minutes 10 seconds.·Can·I just add PAUSE 10000 at the end of the code?
Regards,
DO
· DO
····· PAUSE 60000····· '16 minutes,maximum allowable loop'
····· runtime = runtime+1
· LOOP UNTIL (runtime=16)
·rt=rt+1
LOOP UNTIL (rt=3)· '3x16=48 minutes"
DO
·PAUSE 60000
·runt = runt+1
LOOP UNTIL (runt=12)·· '48 minutes +12 MIN=1hr'
Regards,
DO
· DO
····· PAUSE 60000····· '16 minutes,maximum allowable loop'
····· runtime = runtime+1
· LOOP UNTIL (runtime=16)
·rt=rt+1
LOOP UNTIL (rt=3)· '3x16=48 minutes"
DO
·PAUSE 60000
·runt = runt+1
LOOP UNTIL (runt=12)·· '48 minutes +12 MIN=1hr'