Operator ‘ABS’ΒΆ

This IEC operator yields the absolute value of a number.

Permitted data types for input and output variables and numeric constants: any numeric basic data type

Examples

Result in i: 2

ST:

i := ABS(-2);

FBD: