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:

../_images/e2e6fdf5d0d7cb72c0a8640e0125fd5c