Data Type Definitions
Name
Union
UNI_A
a
b
Data type
UNION
DWORD
WORD
Variable A,
4 bytes
Variable B,
4 bytes
Variable C,
8 bytes
Variable D,
8 bytes
A.a A.b
B.c B.d
C[0].a C[0].b
C[1].a C[1].b
D[0].c D[0].d
D[1].c D[1].d
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
Variable Table
Name
Variable A
Variable B
Variable C
Variable D
Data type
Union
UNI_A
Union
UNI_B
ARRAY[0..1] OF UNI_A
ARRAY[0..1] OF UNI_B
Name
Union
UNI_B
c
d
Data type
UNION
WORD
DWORD
First byte +
(integer multiple of 4)
First byte +
(integer multiple of 4)
First byte +
(integer multiple of 4)
First byte +
(integer multiple of 4)
A-5-2
Important Case Examples
When you exchange structure variable data between an NJ/NX-series CPU Unit and a remote device,
you must align the memory configuration of the structure variable members with those of the remote
device.
This section describes what to do in either the NJ/NX-series CPU Unit or in the remote device.
Additional Information
This is not necessary when you exchange data between NJ/NX-series CPU Units.
Aligning the Memory Configuration with a Remote Device
There are two methods that you can use to align the memory configuration with a remote device.
For example, the differences in the memory configuration for structure variables between an NJ/NX-
series CPU Unit and a CJ-series CPU Unit are shown below.
This section describes how to align the memory configuration for these Units.
Appendices
A-55
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
A-5
V
ariable Memory Allocation Methods
A
A-5-2 Important Case Examples
Summary of Contents for Sysmac NX1P2-10 1 Series
Page 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Page 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 577: ......