Variable Table
Name
A
B
C
Data type
LWORD
WORD
LWORD
Variable A,
8 bytes
Variable B,
2 bytes
Variable C,
8 bytes
Bytes
Memory
First byte
First byte + 1
First byte + 2
First byte + 3
First byte + 4
First byte + 5
First byte + 6
First byte + 7
First byte + 8
First byte + 9
First byte + 10
First byte + 11
First byte + 12
First byte + 13
First byte + 14
First byte + 15
First byte + 16
First byte + 17
First byte + 18
First byte + 19
First byte + 20
First byte + 21
First byte + 22
First byte + 23
Not used.
First byte +
(integer multiple of 8)
First byte +
(integer multiple of 2)
First byte +
(integer multiple of 8)
Arrays
A continuous section of memory is allocated for the elements of the array based on the data size of
the data type of the array variable. The alignment of an array is the same as alignment of the data
type of the elements.
Example: Continuous variables in the following order: two BOOL variable, one BOOL array with five
elements, one BOOL array with 19 elements, and one BOOL array with four elements
Variable Table
Name
A
B
C
D
E
Data type
BOOL
BOOL
ARRAY[1..5]OF BOOL
ARRAY[0..18]OF BOOL
ARRAY[5..8]OF BOOL
Variable A,
2 bytes
Variable B,
2 bytes
Variable C,
2 bytes
Variable D,
4 bytes
Variable E,
2 bytes
Bytes
Memory
First byte
First byte + 1
First byte + 2
First byte + 3
First byte + 4
First byte + 5
First byte + 6
First byte + 7
First byte + 8
First byte + 9
First byte + 10
First byte + 11
First byte +
(integer multiple of 2)
First byte +
(integer multiple of 2)
First byte +
(integer multiple of 2)
First byte +
(integer multiple of 2)
First byte +
(integer multiple of 2)
Example: INT array with five elements
Appendices
A-50
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)