Hi didn't know version 6 was out the version that I use , you also can't use plc address on if statement but however if you add before your statement, ------------------------------------------------- ReadCmem($B1,[serialA:HR00020.04],1); ------------------------------------------------- and use $b1 in your if statement in stead of hr20.04 it will read the state of your hr into the ns8 to $B1 hope that helps.. and makes sence :S