Dann schreib eben:
if modus<>2 then Portb.1 = 0