Skip to main content

Operator: OR

The 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

Example 115. Examples

Result in Var1: 2#1001_1011

ST

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

FBD

_cds_img_or.png