ARCREATE

Creates an array of integers.
IMPORTANT: There are at most 16 arrays in an application. Arrays contain integer analog values. As dynamic memory allocation is performed, this function may cause a system error if the array size is too close to the size of the available memory.
lrsf_arc1
Arguments
ID
DINT
Identifier of the array (must be in set [0..15])
SIZE
DINT
Number of elements in the array
OK
DINT
execution status :
1 = if array has been successfully created
2 = invalid array identifier or array already created
3 = invalid size
4 = not enough memory
Example
(* FBD Program creating an array of integers*)
lrsf_arc2
(* ST Equivalence: *)
array_error := (ARCREATE (ident, 10) <> 1));
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal