ARWRITE

Stores (writes) a value in an array of integers.
lrsf_arw1
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*)
lrsf_arw2
(* ST Equivalence: *)
If (array_error) Then Return; End_if; read_value := ARWRITE (ident, index, value); (* array_error comes from the ARCREATE call *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal