I gotta ask . . . Why do you put the percent sign before the value of your variables? It seems to me you are telling the Variables, ports and registers to read binary, and I suppose as long as you only use zero and one it will work, but it's confusing as all get out. Why not just use 0 and 1 ?