REL – Relational operator

Block SymbolLicensing group: STANDARD
PIC

Function Description
The REL block evaluates the binary relation u1u2 between the values of the input signals and sets the output Y according to the result of the relation "". The output is set to Y = on when relation holds, otherwise it is zero (relation does not hold). The binary operation codes are listed below.

Inputs

u1

First analog input of the block

Double (F64)

u2

Second analog input of the block

Double (F64)

Output

Y

Logical output indicating whether the relation holds

Bool

Parameter

irel

Relation type  1

Long (I32)

1 ....

equality (==)

2 ....

inequality (!=)

3 ....

less than (<)

4 ....

greater than (>)

5 ....

less than or equal to (<=)

6 ....

greater than or equal to (>=)

2022 © REX Controls s.r.o., www.rexygen.com