ANDΒΆ

The IEC Operators and additional, norm-extending \ functions Bitwise AND of bit operands. The operands should be of the type BOOL, BYTE, WORD or DWORD.

Example in IL:

Var1 BYTE
LD 2#1001_0011
AND 2#1000_1010
ST Var1 (* Result is 2#1000_0010 *)

Example in ST:

var1 := 2#1001_0011 AND 2#1000_1010

Example in FBD:

../_images/7b527634437395510a3313905c72d969

Note

If you have a program step in the SFC like the following and if you use 68xxx generators, please note the following: The allocation of the value of the second input variable at the AND operator module to variable z will not be executed! This is due to the optimized processing in the SFC in case of value FALSE at the input variable.

../_images/c20c6687437397730a3313905c72d969