![background image](http://html1.mh-extra.com/html/omron/sysmac-cj1w-eip21/sysmac-cj1w-eip21_operation-manuals_742257395.webp)
A-21
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
Set a byte offset of 6 and a bit offset
of 0 (no offset) for variable c.
To align the memory configurations in the NJ-series and CJ-series CPU Units, offsets are set in the Sysmac Studio.
Here, the following offsets are set for member c of data type Y of the structure variable NJ_X.
Data Type Definitions
Name
Structure Y
a
b
c
Data type
STRUCT
DINT
INT
DINT
a
b
c
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
Variable Table
Name
Variable NJ_X
Data type
Structure Y
Memory Bytes
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
Not used.
Memory Bytes
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
Variable a
Variable b
Variable c
Bytes
NJ-series Structure
Variable NJ_X
First byte
First byte + 4
First byte + 6
First byte + 8
a
b
Not used.
c
Bytes
CJ-series Structure
Variable CJ_X
First byte
First byte + 4
First byte + 6
Communications is
not possible
because the memory
configuration is not
the same.
The location of
variable c changes
according to the
offsets.
Variable a
Variable b
Variable c
(2) Byte Offset
Variable c starts from the 6th byte
from the start of the structure.
(3) Bit Offset
Variable c starts from the 0th
bit from the start of the byte.
(2) Byte Offset
Set the location of the first byte of the member
from the beginning of the structure variable.
(3) Bit Offset
Set the location of the first bit of the member variable.
(1) Offset Type
Specify User.
(1) Offset type is set to CJ.
Содержание 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: ......