ABS (Absolute Value)

Function name ABS_010
Function version 1.0
Function state stable
Compatibility with IEC61131-3 not compatible

Graphic symbol :

Input / Output :

Name Belonging Group Access Types of data Description
EN Left Power Flow IEC1131-3 enable input
A Normal R , RW F , B , W , L , S Input variable A
Q Normal W , RW F , B , W , L , S Result of the operation Q = ABS (A)
ENO Right Power Flow IEC1131-3 enable output

Description :

The absolute value operation calculates the absolute value of the value in A and place the result in Q.
There is a configuration in which the value of Q is undetermined. That condition is verified when the value of A is the minimum negative and A and Q are of the same type, like byte-byte, word-word, long-long.