I have the following code that does not work. Its like the first if is not working. What I do is set MW490 to 0 then it counts up to 64. But when it gets to 64 the if should be false but db94.dbd100 always comes out at 3064.
Also can I monitor SCL code while its running? I see break points but I would like to just put the glasses on like in ladder and see values.
Also can I monitor SCL code while its running? I see break points but I would like to just put the glasses on like in ladder and see values.
Code:
IF MW490 <= 64 AND MW488 >= 64 THEN
db94.dbd100 := INT_TO_DWORD(MW490 + 3000);
j := mw490 * 4;
IF db94.dbd100 = DB94.DBD48 THEN
db96.dbd[j] := db450.dbd52 ; // copy value
MW490 := MW490 + 1;
END_IF;
END_IF;