Arrays - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

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

Advertisement

22.5

Arrays

An array represents a consecutive aggregation of same data type labels as a single name.
Primitive data types and structures can be defined as arrays.
Ex.
Array image and setting in engineering tool
One-dimensional array (The number of elements is 4.)
bLabel1
[0]
[1]
Label name Index
Three-dimensional array (The number of elements is 6 × 5 × 4.)
[1,0,0]
bLabel3
[0,0,0]
[0,0,1]
[0,1,0]
[0,1,1]
[0,4,0]
[0,4,1]
Settings in the engineering tool
[2]
[3]
[5,0,0]
[5,0,1]
[5,0,2]
[5,0,3]
[1,0,1]
[1,0,2]
[1,0,3]
[0,0,2]
[0,0,3]
[0,1,2]
[0,1,3]
[0,4,2]
[0,4,3]
Two-dimensional array (The number of elements is 5 × 4.)
bLabel2
[0,0]
[0,1]
[0,2]
[1,0]
[1,1]
[1,2]
[4,0]
[4,1]
[4,2]
[5,4,3]
[0,3]
[1,3]
[4,3]
22 LABELS
377
22.5 Arrays
22

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents