IF (down=0) AND (duty>0) THEN
duty=duty-50 : PAUSE 200
ENDIF
If duty is 10 and you subtract 50 from it, you'll end up with a negative number, which PBP doesn't handle. I think you want the lines to be:
IF (down = 0) AND (duty => 50) THEN blah blah blah...
Bookmarks