WinCC VBScript InvertBitInTag

We've already seen the Set and Reset function of a bit . The next function is inverting a bit of a Variable. I have created the two versions that are possible, the one we write directly to the variable or the one we write in the DataManager, if you have doubts, please check this explanation.

What we do is consult the bit that we pass through parameter and depending on how it is, we invert it.

As we have seen before, we use the And and Or functions.


Let's see how it would be for a Boolean variable in its two versions.


The use of the function is very easy, we call it and pass on the parameters.



If you are interested, you can download here the file with the four functions.

28 de Mayo del 2018

"La gratitud en silencio no sirve a nadie". Gladys Bronwyn Stern