'IS471F Demo func main() input 0 output 5 low 5 loop: if ioport(0) =0 then high 5 else low 5 endif goto loop endfunc