Operator ‘OR’ΒΆ

This IEC operator is used for the bitwise OR of bit operands.

When at least one of the input bits yields 1, the output bit also yields 1; otherwise 0.

Permitted data types: BOOL, BYTE, WORD, DWORD, LWORD

Examples

Result in Var1 is 2#1001_1011

ST:

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

FBD: