ARREAD
Reads an element 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] |
Q | DINT | value of the element read 0 if the arguments are not valid |
Example
(* FBD program using an array management function*)

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