Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual page 382

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

Range of the number of array elements
The maxim number of array elements varies depending on the data type.
Data type
Bit
Word [unsigned]/bit string [16 bits]
Word [signed]
Timer
Counter
Retentive timer
Double word [unsigned]/bit string [32 bits]
Double word [signed]
Single-precision real number
Time
Long counter
Long retentive timer
Long timer
Double-precision real number
String
String [Unicode]
Structure type
Precautions
■When an interrupt program is used
When a label or device is specified for the array index, the operation is performed with a combination of multiple instructions.
For this reason, if an interrupt occurs during operation of the label defined as an array, data inconsistency may occur
producing an unintended operation result.
To prevent data inconsistency, create a program using the DI/EI instructions that disables/enables interrupt programs as
shown below.
Program of the label defined as an array
For the DI/EI instructions, refer to the following.
 MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard Functions/Function Blocks)
■Array elements
When accessing the element defined in an array, access it within the range of the number of elements.
If a constant out of the range defined for the array index is specified, a compile error will occur.
If the array index is specified with data other than a constant, a compile error will not occur. The processing will be performed
by accessing another label area or latch label area.
22 LABELS
380
22.5 Arrays
DI
EI
Setting range
1 to 2147483648
1 to 1073741824
1 to 32768
1 to 536870912
1 to 67108864
1 to 33554432
1 to 32768

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents