Overview Absolute value

This function block calculates the absolute value of a number or, depending on the setting, performs further conversions (conversion into a positive number, decimal places are truncated).


Inputs

E1
Input 1
Input

Outputs

A1
Output 1
Result

Parameters

Type
Type of calculation. For every type, the absolute value is used, e.g. before the conversion into a negative number the absolute value is always used.
  • Absolute value: The absolute value is output (conversion into a positive number, decimal places are truncated)
  • Conversion positive: The value at the input is converted into a positive number if negative, otherwise the value of the input is output.
  • Conversion negative: The value at the input is converted into a negative number if positive, otherwise the value of the input is output.
  • Filter positive: Only when the input is a positive value is it output at the output, otherwise the output stays 0.
  • Filter negative: Only when the input is a negative value is it output at the output, otherwise the output stays 0.
  • Conversion positive+Filter: When the input is a negative value, it is output positive at the output, otherwise the output stays 0.
  • Conversion negative+Filter: When the input is a positive value, it is output negative at the output, otherwise the output stays 0.


See also common parameters of all function blocks.