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

u2

Second analog input of the block

double

Output

Y

Logical output indicating whether the relation holds

bool

Parameter

irel

Relation type  1

long

1 ....

equality (==)

2 ....

inequality (!=)

3 ....

less than (<)

4 ....

greater than (>)

5 ....

less than or equal to (<=)

6 ....

greater than or equal to (>=)

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