Hi MOUNTAIN747.. why not just use GOTO statements? I think it's easier to do...
Adding PAUSE's can help...Code:DS1 VAR PortA.1 ;dip switch start: If DS1=1 then goto tx_usb Else goto tx_rs485 EndIF tx_usb: Serout portc.6, 84 ["Transmitting USB"] goto start tx_rs485: Serout2 portc.5, 84 ["Transmitting RS485"] goto start
Bookmarks