A-4-2 Important Case Examples - Omron CJ1W-EIP21 Operation Manuals

For nj-series cpu unit. cj-series ethernet/ip units
Hide thumbs Also See for CJ1W-EIP21:
Table of Contents

Advertisement

A-4-2
Important Case 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.
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-series
CPU Unit and a CJ-series CPU Unit are shown below.
This section describes how to align the memory configuration for these Units.
Data Type Definitions
Name
Data type
Structure Y
STRUCT
a
DINT
b
INT
c
DINT
Variable Table
Name
Data type
Variable NJ_X
Structure Y
 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.
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
NJ-series Structure Variable NJ_X
Bytes
First byte
a
First byte + 4
b
First byte + 6
Not used.
First byte + 8
c
Data Type Definitions
Name
Data type
Structure Y
STRUCT
a
DINT
b
INT
c
DINT
Variable Table
Name
Data type
Variable CJ_X
Structure Y
Appendices
CJ-series Structure Variable CJ_X
Bytes
a
First byte
b
First byte + 4
c
First byte + 6
A-19

Advertisement

Table of Contents
loading

Table of Contents