OR / ORN

PLCopen motion icon

Operator - Performs a logical OR of all inputs.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

IN1

BOOL

FALSE, TRUE

 

 

First Boolean input.

IN2

BOOL

FALSE, TRUE

 

 

Second Boolean input.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

BOOL

FALSE, TRUE

 

Boolean OR of all inputs.

Truth Table

IN1

IN2

Q

0

0

0

0

1

1

1

0

1

1

1

1

FBD Language Example

  • The block is called >=1.
  • The block can have a maximum of 32 inputs.

FFLD Language Example

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

Example: Parallel contacts:

IL Language Example

Not available.

ST Language Example

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

See Also