I am working on a com block to a motion controller. I got the basic part of it working in ladder. Now I need to put it into SCL so I can put it into a loop. In moving it over before I started the loop I wanted to make sure what I had worked and it didn't. I don't know what I'm doing wrong but I'm sure its something simple. I have two bits and any time they are both off I want to turn another bit on. Works fine in ladder but in SCL it never changes.
IF DB450.DBX64.7 = FALSE AND DB451.DBX32.7 = FALSE THEN
DB451.DBX32.6 := TRUE; //WRITE
DB451.DBX32.7 := TRUE; //WRITE
END_IF;