ARWRITE
Stores (writes) a value in an array of integers.

Arguments | ||
---|---|---|
ID | DINT | Identifier of the array (must be in set [0..15]) |
POS | DINT | Position of the element in the array; must be in set [0 .. size-1] |
IN | DINT | New value for the element |
OK | DINT | Execution status: 1 = writing has succeeded 2 = invalid array identifier 3 = invalid index |
Example
(* FBD program using an array management function*)

(* ST Equivalence: *)
If (array_error) Then Return; End_if; read_value := ARWRITE (ident, index, value); (* array_error comes from the ARCREATE call *)
Provide Feedback