Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

TrnGetInvalidValue

  • Last UpdatedJul 18, 2023
  • 1 minute read

Returns the internally stored value for <INVALID>. If the internally stored value changes in the future, you will not need to modify your Cicode, as this function will return the correct value.

Syntax

TrnGetInvalidValue()

Return Value

The internally stored value for <INVALID>.

TrnGetGatedValue, TrnIsValidValue

Example

REAL newArray[100];

REAL oldArray[90];

INT trigger;

INT

FUNCTION

DoubleArray()

INT i;

FOR i = 0 TO 99 DO

IF TrnIsValidValue(oldArray[i]) = 1 OR trigger = 0 THEN

newArray[i] = TrnGetGatedValue();

ELSE

IF i >= 90 OR TrnIsValidValue(oldArray[i]) = 2 THEN

newArray[i] = TrnGetInvalidValue();

ELSE

newArray[i] = oldArray[i] * 2;

END

END

END

RETURN i;

END

See Also

Trend Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in