Table of Contents

NEG

Function name

NEG

ST call

PROGRAM NEG_DEMO
    VAR
      REAL1,REAL2: REAL;
     END_VAR
    REAL2:= NEG(REAL1);
END_PROGRAM

Description

The function negates the input.

Inputs

InputType Description
IN ANY_NUMBERInput value

Outputs

OutputType Description
ANY_NUMBEROutput value

Application example