Skip to main content

Absolute Value Function

Outputs the absolute value of the input signal for amplitude comparison, deviation evaluation and direction-insensitive control operations.

Component Appearance and Location​

Expand Controller in component library on the left and find "Absolute Value Function".

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
0CONTROLinputInput signal portalways show
1CONTROLoutputOutput signal portalways show

Both ports belong to the signaling network. The input terminal receives the signal to be processed, and the output terminal is connected to the subsequent calculation, control or display component.

Parameter List​

Absolute Value has no parameters to display.

Parameter Guidance​

Connect the signal to port 0. For fluctuation amplitude, decide whether the input is a raw measurement or a deviation from a setpoint. Subtracter

Modeling Steps​

  1. Connect the signal and confirm its units and reference conditions.
  2. Connect port 1 to comparison, recording, or observation components. Branch the original input if direction is also needed.
  3. Run a transient simulation and compare the original and absolute values.

View Results​

The output is nonnegative and equals zero for a zero input. Inputs of equal magnitude and opposite sign produce the same output. Check the original signal to identify zero crossings.

Professional Theory​

For input uu at the current control instant, output is

y=∣u∣={u,u≥0,−u,u<0.y=|u|= \begin{cases} u, & u\ge 0,\\ -u, & u<0. \end{cases}

Absolute value preserves engineering units. It is evaluated at the current control instant once the input is ready. Signal Updates

Applicability and Limits​

  • Bidirectional magnitudes. Monitor the magnitude of bidirectional flow or control error. Forward and reverse flow can have the same magnitude.
  • Preserving direction. Use the original signed value to distinguish upper and lower limit violations or the direction of a correction. For direction alone, use the Sign Function.

Common Inspections​

  • Reverse flow still appears positive. Check whether you are viewing magnitude or the original flow.
  • Unexpected error magnitude. Check that the setpoint was subtracted and both signals use consistent units and references.