Operator - Count the number of TRUE inputs.

Inputs

Input

Data type

Description

IN1 .. INn

BOOL

Boolean inputs.

Outputs

Output

Data type

Description

Q

DINT

Number of inputs being TRUE.

Remarks

The block accept a non fixed number of inputs.

ST Language

Q := QOR (IN1, IN2);

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

FBD Language

The block may have up to 16 inputs:

Fixed_Image

LD Language

The block may have up to 16 inputs:

Fixed_Image


Created with the Personal Edition of HelpNDoc: Maximize Your Documentation Output with HelpNDoc's Advanced Project Analyzer