EasyManuals Logo

Omron NX102-12 Series User Manual

Omron NX102-12 Series
578 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
Page #553 background imageLoading...
Page #553 background image
Variable Table
Name
A
B
Data type
BOOL
BOOL
Bytes
Memory
First byte
First byte + 1
First byte + 2
First byte + 3
Variable A, 2 bytes
Variable B, 2 bytes
First byte +
(integer multiple of 2)
First byte +
(integer multiple of 2)
Variables with Four-byte Alignments (e.g., DWORD)
Four bytes of memory are allocated for the four-byte alignment.
The location of the first byte of data in memory is an integer multiple of four bytes. Therefore, if a
variable with a two-byte alignment, such as WORD data, is inserted, two bytes of unused memory
will remain.
Example: Consecutive variables in the following order: DWORD, WORD, and DWORD
Variable Table
Name
A
B
C
Data type
DWORD
WORD
DWORD
Variable A,
4 bytes
Variable B,
2 bytes
Variable C,
4 bytes
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
Not used.
First byte +
(integer multiple of 2)
First byte +
(integer multiple of 4)
First byte +
(integer multiple of 4)
Variables with Eight-byte Alignments (e.g., LWORD)
Eight bytes of memory are allocated for the eight-byte alignment.
The location of the first byte of data in memory is an integer multiple of eight bytes. Therefore, if a
variable with a two-byte alignment, such as WORD data, is inserted, six bytes of unused memory
will remain. If a variable with a four-byte alignment, such as DWORD data, is inserted, four bytes of
unused memory will remain.
Example: Consecutive variables in the following order: L
WORD, WORD, and LWORD
Appendices
A-49
NJ/NX-series CPU Unit Built-in EtherNet/IP Port Users Manual (W506)
A-5 Variable Memory Allocation Methods
A
A-5-1 Variable Memory Allocation Rules

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX102-12 Series and is the answer not in the manual?

Omron NX102-12 Series Specifications

General IconGeneral
BrandOmron
ModelNX102-12 Series
CategoryController
LanguageEnglish

Related product manuals