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, L20E, L50E, and L70E controllers.
OR
OR
OR parameters
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.
  • TRUE: When one or more of the inputs are TRUE.
  • FALSE: When inputs are FALSE.

OR examples

OR function block diagram example
OR function block diagram example
OR ladder diagram program example
OR ladder diagram program example
(* ST equivalence: *) bo10 := bi101 OR NOT (bi102); bo5 := (bi51 OR bi52) OR bi53;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal