![Omron Sysmac NY512-1300 Скачать руководство пользователя страница 438](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451438.webp)
Appendices
A-52
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
The alignments and the amounts of memory that are allocated for the basic data types and enumera-
tions are given below.
*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.
* BOOL arrays are an exception. Refer to
Precautions for Correct Use
, below, for the amount of memory that is
allocated for BOOL arrays.
Precautions for Correct Use
Precautions for Correct Use
Amount of Memory That Is Allocated for BOOL Arrays
Two bytes are allocated in memory for individual BOOL variables, BOOL structure members,
and BOOL union variables. However, for a BOOL array, two bytes of memory are not allocated
for each element. One bit is allocated in order for each element. For the entire array, a multiple of
two bytes of memory is allocated (including unused bits).
Data type
Alignment [bytes]
Amount of memory that
is allocated [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
1
N+1
Enumerations
4
4
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 mem-
bers are arranged in order at integral multiples of the align-
ment 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
Variable Table
Name
A
B
C
Data type
BOOL
ARRAY[1..5]OF BOOL
ARRAY[0..18]OF BOOL
Variable A
Variable B
Variable C
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
Two bytes are allocated.
Two bytes are allocated
for 5 elements.
Four bytes are allocated
for 19 elements.
Содержание Sysmac NY512-1300
Страница 290: ...9 Socket Service 9 32 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 310: ...10 FTP Server 10 20 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 324: ...11 FTP Client 11 14 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 452: ...Appendices A 66 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 ...
Страница 453: ...Index 1 NY series Industrial Panel PC Industrial Box PC Built in EtherNet IP Port User s Manual W563 I Index ...
Страница 459: ......