ARREAD

Reads an element in an array of integers.
lrsf_arr1
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]
Q
DINT
value of the element read
0 if the arguments are not valid
Example
(* FBD program using an array management function*)
lrsf_arr2
(* ST Equivalence: *)
If (array_error) Then Return; End_if; read_value := ARREAD (ident, index); (* array_error comes from the ARCREATE call *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal