Chapter 4. Ladder Diagram (LD) Programming
GFK-2950C February 2018 191
4.10.2 Absolute Value
When the function receives power flow, it places the absolute value of
input IN into output Q.
Mnemonics:
ABS_DINT
ABS_INT
ABS_REAL
ABS_LREAL
The function outputs power flow, unless one of the following conditions occurs:
■ For INT type, IN is –32,768.
■ For DINT type, IN is –2,147,483,648.
■ For REAL or LREAL type, IN is NaN (Not a Number).
Operands
IN (must be same type as Q)
Q (must be same type as IN)
The absolute value of IN.
All except S, SA, SB, SC and constant
Example
The absolute value of –2,976, which is 2,976, is placed in %R00010: