Specifications
Control Block Description
ADDvantage-32 PLUS
4-10
4.7 ABSOLUTE VALUE (ABS)
The Absolute Value block selectively takes the absolute value of an analog variable. The
state of EN BIT determines if the OUT value equals INP or the absolute value of the INP
value.
FIGURE 4-7. ABSOLUTE VALUE BLOCK
1. Inputs
INP: Analog
EN: Bit
2. Output
OUT: Analog
3. Implementation
If EN is low, then OUT = INP.
If EN is high, then OUT = the absolute value of INP.