Mitsubishi Electric MELSEC iQ-R Series User Manual page 505

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
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]
Double word [unsigned]/bit string [32 bits]
Double word [signed]
Single-precision real number
Time
Timer
Counter
Retentive timer
Long counter
Long retentive timer
Long timer
Double-precision real number
String
String [Unicode]
Structure type
Function block
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.
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
28 LABELS
28.5 Arrays
28
503

Advertisement

Table of Contents
loading

Table of Contents