Applies To:
  • CitectSCADA 6.10
  • CitectHMI 6.10

Summary:
Using the math function ABS( ) with a value of 0 in CitectSCADA V6.10 will return "-0" indicating this is an invalid value. The absolute value of 0 should be 0.
 

Solution:
Citect has confirmed this to be a problem in CitectSCADA version 6.10. This problem will be fixed in later version.

A workaround is to write a simple Cicode function to check if the initial input value is zero, as shown below:

REAL

FUNCTION

Absolute (
REAL Input)

REAL tag1;

IF Input=0 THEN
    tag1=
0;
ELSE

    tag1=
Abs(Input);
END

RETURN
tag1;

END

 

Keywords:
ABS, Absolute Value  

Attachments