QOR

PLCopen motion icon

Operator - Counts the number of TRUE inputs.

Inputs

Input

Data Type

Range

Unit

Default

Description

IN1   INn

BOOL

 

 

 

Boolean inputs.

Outputs

Output

Data Type

Range

Unit

Description

Q

DINT

 

 

Number of inputs being TRUE.

Remarks

  • The block accepts a non-fixed number of inputs.

FBD Language

  • The block can have a maximum of 16 inputs.

FFLD Language

  • The block can have a maximum of 16 inputs.

IL Language

Op1: LDClosed "Ladder diagram"
Ladder logic is a method of drawing electrical logic schematics. It is now a very popular graphical language for programming Programmable Logic Controllers (PLCs). It was originally invented to describe logic made from relays. The name is based on the observation that programs in this language resemble ladders, with two vertical "rails" and a series of horizontal "rungs" between them  IN1
     QOR  IN2, IN3
     STClosed "Structured text" A high-level language that is block structured and syntactically resembles Pascal  Q 

ST Language

Q := QOR (IN1, IN2);
Q := QOR (IN1, IN2, IN3, IN4, IN5, IN6);