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

AVEVA™ Plant SCADA

ArraySetIntByAn

  • Last UpdatedJul 18, 2023
  • 1 minute read

Sets an integer value in an array associated with a specified AN.

Syntax

INTArraySetIntByAn(INT nAN, INT nValue, INT x [, INT y [, INT z]])

nAN:

The AN associated with the array.

nValue:

The value you would like to set.

x:

The index for the x–dimension.

y:

The index for the y–dimension.

z:

The index for the z–dimension.

Return Value

0 (zero) if successful, otherwise an error is returned.

ArrayCopy, ArrayCreate, ArrayCreateByAn, ArrayDestroy, ArrayDestroyByAn, ArrayExists, ArrayExistsByAn, ArrayFillFromAlarmDataByAn, ArrayGetArrayByAn, ArrayGetInfo, ArrayGetInt, ArrayGetIntByAn, ArrayGetMapName, ArrayGetMapNameByAn, ArrayGetString, ArrayGetStringByAn, ArrayIsDirty, ArraySetInt, ArraySetIsDirty, ArraySetString, ArraySetStringByAn, ArraySwap, DspArrayByAn

Example

...
// Set the integer value at (1,2,3) of the array associated with hAn to be 444
ArraySetIntByAn(hAn, 444, 1, 2, 3);
// Get the integer value at (1,2,3) of the array associated with hAn
value = ArrayGetIntByAn(hAn, 1, 2, 3);
// value = 444
...

See Also

Array Functions

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