QOR

PLCopen motion icon

Operator - CountsClosed Internal count pulses, 1 pulse = 1/2^20turn. 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 Example

The block can have a maximum of 16 inputs.

FFLD Language Example

The block can have a maximum of 16 inputs.

IL Language Example

Op1: LDClosed Ladder diagram - This is a method of drawing electrical logic schematics. It is 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 Example

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