Skip to main content

Operator: ABS

The 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

Example 136. Examples

Result in i: 2

ST

i := ABS(-2);

FBD

_cds_img_abs.png