Back to FBD reference

Basic logic

OR

Logical OR

The OR block combines alternative conditions. Q becomes TRUE when IN1, IN2, or both inputs are active.

Typical FBD symbol

IN1
IN2
OR
Q
Typical FBD symbol for OR

Inputs

NameTypeRequiredDescription
IN1BOOLYesThe first boolean condition.
IN2BOOLYesThe second boolean condition.

Outputs

NameTypeRequiredDescription
QBOOLYesThe logical OR result.

Stateful

No, the block does not keep internal state.

Behavior rule

Q = IN1 OR IN2

Truth table

IN1IN2Q
FALSEFALSEFALSE
FALSETRUETRUE
TRUEFALSETRUE
TRUETRUETRUE

Practical use

  • start from either of two pushbuttons;
  • alarm from any active condition.

What to watch

  • Using OR where all conditions must be true. Use AND for that case.

Related blocks