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:
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.