![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-eip21/sysmac-cj1w-eip21_operation-manuals_742257393.webp)
A-19
Appendices
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
A-4 V
ariab
le Mem
o
ry
Allocation
Meth
od
s
App
A-4-2 Impor
tant C
ase Examples
When you exchange structure variable data between an NJ-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-series CPU Unit or in the remote device.
Additional Information
This is not necessary when you exchange data between NJ-series CPU Units.
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-series
CPU Unit and a CJ-series CPU Unit are shown below.
This section describes how to align the memory configuration for these Units.
Method 1: Changing the Memory Configuration of the Structure Variable in
the NJ-series CPU Unit
With an NJ-series CPU Unit, you can specify member offsets to change the memory configuration of
the members of a structure variable. You can change the memory configuration of the members of a
structure variable in the NJ-series CPU Unit so that it is the same as the memory configuration in a
remote device that the CPU Unit will communicate with. Specify the member offsets for a structure
variable when you register the structure data type.
To communicate with a CJ-series CPU Unit, you can set the offset type to CJ to automatically use
the CJ-series memory structure. You can set the offset type to User to freely set your own offsets.
A-4-2
Important Case Examples
Aligning the Memory Configuration with a Remote Device
Data Type Definitions
Bytes
NJ-series Structure Variable NJ_X
First byte
First byte + 4
First byte + 6
First byte + 8
Variable Table
a
b
c
Name
Structure Y
a
b
c
Data type
STRUCT
DINT
INT
DINT
Name
Variable NJ_X
Data type
Structure Y
a
b
Not used.
c
Data Type Definitions
Name
Structure Y
a
b
c
Data type
STRUCT
DINT
INT
DINT
Bytes
CJ-series Structure Variable CJ_X
First byte
First byte + 4
First byte + 6
Variable Table
Name
Variable CJ_X
Data type
Structure Y
Содержание SYSMAC CJ1W-EIP21
Страница 8: ...Manual Structure 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 10: ...Sections in this Manual 8 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 20: ...Read and Understand this Manual 18 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 42: ...Revision History 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 68: ...1 Introduction 1 26 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 80: ...2 Installing Ethernet Networks 2 12 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 130: ...6 Testing Communications 6 4 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 206: ...7 Tag Data Link Functions 7 76 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 246: ...8 Message Communications 8 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 266: ...9 FTP Server 9 20 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 374: ...13 Troubleshooting 13 56 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 431: ...Index 1 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 I Index...
Страница 436: ...Index 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 Index...
Страница 437: ......