OR

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

Example in IL:

var1 :BYTE;
LD 2#1001_0011
OR 2#1000_1010
ST  var1 (* Result is 2#1001_1011 *)

Example in ST:

Var1 := 2#1001_0011 OR 2#1000_1010

Example in FBD:

../_images/ab4f3e66437396d70a3313905c72d969

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 OR 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/2388121064efd5210a317d31085d675f