EasyManua.ls Logo

Omron NJ Series

Omron NJ Series
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A-101
Appendices
NJ-series CPU Unit Software User’s Manual (W501)
A-7 Variable Memory Allocation Methods
App
A-7-2 Important Case Examples
Method 2: Changing the Memory Configuration of the Structure Variable in
the Remote Device
You can insert a member into the structure variable of the remote device to change it to match the
memory configuration of the structure variable in the NJ-series CPU Unit. Both the memory configu-
ration and the data types must be the same between the two structure variables. You therefore need
to create the same members in both the remote device and the NJ-series CPU Unit.
Example: The following example shows how the memory configuration of the structure variable in
the CJ-series CPU Unit is changed to match the memory configuration of the structure variable in
the NJ-series CPU Unit.
a
b
b2
c
a
b
b2
c
a
b
c
Data Type Definitions
Name
Structure Y
a
b
b2
c
Data type
STRUCT
DINT
INT
INT
DINT
Bytes
CJ-series Structure Variable CJ_
X
First byte
First byte + 4
First byte + 6
First byte + 8
Variable Table
Name
Variable CJ_X
Data type
Structure Y
Data Type Definitions
Name
Structure Y
a
b
b2
c
Data type
STRUCT
DINT
INT
INT
DINT
Bytes
NJ-series Structure Variable NJ_X
First byte
First byte + 4
First byte + 6
First byte + 8
Variable Table
Name
Variable NJ_X
Data type
Structure Y
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
Data Type Definitions
Name
Structure Y
a
b
c
Data type
STRUCT
DINT
INT
DINT
Bytes
a
b
Not used.
c
NJ-series Structure Variable NJ_X
First byte
First byte + 4
First byte + 6
First byte + 8
Variable Table
Name
Variable NJ_X
Data type
Structure Y
(2) Add the dummy variable b2 that you created in the
CJ-series CPU Unit to the NJ-series CPU Unit as well.
(1) Add a dummy member variable b2 that matches the
unused memory location on the NJ-series CPU Unit.
Make the following changes to align the memory
configurations in the NJ-series and CJ-series CPU Units.

Table of Contents

Other manuals for Omron NJ Series

Related product manuals