-

NEG

Type Function
Description Negates the operand connected to IN1.
Notes
  • The input and output parameters must be of the same data type (larger output data type is allowed).
  • Only signed data types and REAL/LREAL data types are allowed.
  • The function provides implicit data type conversion at its input and output parameters according to the rules defined by the IEC 61131 standard.
Parameters Input

IN1

Output

NEG
Error behaviorError behavior
Additional information EN/ENO behavior