NEG

NEG

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

The function negates the input.

InputType Description
IN ANY_NUMBERInput value
OutputType Description
ANY_NUMBEROutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024