![Omron Sysmac NX1P2-10 1 Series Скачать руководство пользователя страница 551](http://html1.mh-extra.com/html/omron/sysmac-nx1p2-10-1-series/sysmac-nx1p2-10-1-series_user-manual_1633435551.webp)
Item
Specification
Locations in memory
At an integral multiple of the alignment starting from the start of the
variable in memory.
The alignments and the amounts of memory that are allocated for the basic data types and enumera-
tions are given below.
Data type
Alignment [bytes]
Amount of memory that is allo-
cated [bytes]
BOOL
2
2
BYTE, USINT, or SINT
1
1
WORD, UINT, or INT
2
2
DWORD, UDINT, or DINT
4
4
LWORD, ULINT, or LINT
8
8
REAL
4
4
LREAL
8
8
TIME, DATE, TIME_OF_DAY, or
DATE_AND_TIME
8
8
STRING[N+1]
1
N+1
Enumerations
4
4
*1.
N is the maximum number of characters handled. For example, if a maximum of 10 single-byte characters
are handled, the NULL character is added, so memory for 11 characters must be reserved.
The elements of arrays and the members of structures and unions are located in memory for the most
efficient access. The alignments and the amounts of memory that are allocated for arrays, structures,
and unions are determined by the variable declarations, as described below.
Data type
Alignment
Amount of memory that is allocated
Array
Same as alignment of the data type of
the elements
(Amount of memory that is allocated for the data type of
the elements) × Number of elements
Structure
The largest alignment of all of the
members
The integral multiple of the alignment that is larger than
the total amount of memory that is allocated when the
members are arranged in order at integral multiples of
the alignment of the data types of the members
Union
The largest alignment of all of the
members
The largest amount of memory that is allocated for any
of the members
*1.
BOOL arrays are an exception. Refer to
Precautions for Correct Use
, below, for the amount of memory that
is allocated for BOOL arrays.
Appendices
A-47
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
A-5
V
ariable Memory Allocation Methods
A
A-5-1 V
ariable Memory Allocation Rules
Содержание Sysmac NX1P2-10 1 Series
Страница 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 174: ...6 Testing Communications 6 4 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 354: ...8 CIP Message Communications 8 92 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 394: ...10 Modbus TCP Master Function 10 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Страница 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 577: ......