OR
The OR instruction performs a logical OR operation of two or more Boolean values and returns the Boolean value true if either input is true. Otherwise, it returns false.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the
Micro810
LC10, Micro820
L20E, Micro850
L50E, and Micro870
L70E controllers.OR

Parameter | Parameter Type | Data Type | Description |
|---|---|---|---|
i1 | Input | BOOL | Value in Boolean data type. |
i2 | Input | BOOL | Value in Boolean data type. |
o1 | Output | BOOL | Boolean OR of the input terms.
|
OR examples
OR function block diagram example

OR ladder diagram program example

(* ST equivalence: *) bo10 := bi101 OR NOT (bi102); bo5 := (bi51 OR bi52) OR bi53;
Provide Feedback