Documentation

EQ

Function name

EQ

ST call

PROGRAM EQ_DEMO
VAR
R1,R2:REAL;
BOOL1: BOOL;
END_VAR
BOOL1:= EQ(IN1 := R1, IN2 := R2);
END_PROGRAM

Description

Function compares two or more inputs. In case of equality, the output is TRUE.

Inputs

Input Type Description
IN1.. ANY_ELEMENTARY Input value

Outputs

Output Type Description
=> BOOL Output value

Application example