Command Reference
WRITE_TO_ARRAY
Table explanation
Group Variables
Syntax WRITE_TO_ARRAY <Index> <Value>
Op. Code 158
Modes Immediate; Sequential; Program
Description Write <Value> into array element, according to <index>.
Index Decimal value in range of 1-512
representing the index of the member in the
data array.
Serial
2 U V
Syntax
Arguments
Value Long type.
Serial
4 V
Example Array value before:
Index 1 2 3 ... 17 ... 512
Value 98
WRITE_TO_ARRAY 17 5432
Array value after:
Index 1 2 3 ... 17 ... 512
Value 5432
Example
Explanation
Data array [17] was equal to 98. After the WRITE_TO_ARRAY
command it was changed to 5432.
See Also SET_VAR, READ_FROM_ARRAY, GET_FROM_ARRAY (Only in
immediate or sequential mode).
170 XtraWare User Manual