OR / ORN

PLCopen motion icon

Operator - Performs a logical OR of all inputs.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN1

BOOL

 

 

 

First Boolean input.

IN2

BOOL

 

 

 

Second Boolean input.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

 

 

Boolean OR of all inputs.

Truth Table

IN1

IN2

Q

0

0

0

0

1

1

1

0

1

1

1

1

Remarks

None

FBD Language

Or FBD

FFLD Language

  • In the FFLD language, an OR operation is represented by contacts in parallel.

Example: Parallel contacts:

Or FFLD

IL Language

Op1: FFLD  IN1
     OR  IN2
     ST  Q   (* Q is equal to: IN1 OR IN2 *)
Op2: FFLD  IN1
     ORN IN2
     ST Q    (* Q is equal to: IN1 OR (NOT IN2) *)

ST Language

Q := IN1 OR IN2;
Q := IN1 OR IN2 OR IN3;

See Also