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

AVEVA™ Plant SCADA

FuzzyGetCodeValue

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets a value for the specified input of the specified instance.

Syntax

FuzzyGetCodeValue(hFuzzy, iIOIndex, NoHitFlag)

hFuzzy:

The fuzzy instance handle (and integer greater than 0).

iIOIndex:

Specifies the variable to receive the value. The I/O-Indices start with 0 and increment by 1 for each variable. To find the correct index for a specific variable, the variables need to be sorted in alpha-numerical order, first the inputs and then the outputs.

NoHitFlag:

Variable to receive the new value of the No-hit-flag. The No- hit-flag is TRUE if no rule was active for the variable specified by iIOIndex, otherwise it is FALSE. Must be an Integer type variable - it cannot be a constant or PLC variable tag.

Return Value

The code value if the function was successful, otherwise -1. Use IsError() to find the error number if the function does not succeed.

FuzzyOpen, FuzzySetCodeValue

Example

See FuzzyOpen.

See Also

Fuzzy Logic Functions

In This Topic