Table of Contents

NE

Function name

NE

ST call

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

Description

Function compares two or more inputs. The output is TRUE if all the inputs are not equal.

Inputs

InputType Description
IN1..ANY_ELEMENTARYInput value

Outputs

OutputTypeDescription
BOOLOutput value

Application example