11 - 59 11 - 59
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
• The DIM instruction initializes all element values of the specified numeric value array to 0,
and all element values of a character string array to an empty character string.
• A “Redimensioned array” error occurs if the DIM instruction defines an array variable
specified by the DIM instruction again.
In order to redefine, delete the definition by the ERASE instruction, then use the DIM
instruction to define it again.
REMARK
• See the ERASE instruction and Section 3.8.
• For defining variable types, see DEFINT/DEFSNG/DEFDBL instructions.