The total amount of memory required by all variables is not equal to the total of the data sizes of
each of those variables. This is because the first position where data is stored in memory is auto-
matically set to a multiple of the alignment value for that data type. This results in some empty
space in memory between data types. For example, even if the data types are the same, the
overall memory space required depends on the order of data types, as shown below.
Example:
You must be aware of the alignment values for different data types when you exchange data
such as structure variables between devices so that you can properly align the position of the
data in memory. Refer to A-7 Variable Memory Allocation Methods for details.
Derivative Data Types
A derivative data type is a data type with user-defined specifications. Derivative data types are reg-
istered in the Data Type View in the Sysmac Studio. The following is a list of the derivative data
types.
Refer to 6-3-6 Derivative Data Types for details.
Specifications for Data Types
The following array specifications and range specifications are possible for all data types.
Refer to 6-3-7 Array Specifications and Range Specifications for Data Types for details.
DWORD -> DWORD -> WORD: Requires a total of
10 bytes.
DWORD -> WORD -> DWORD: Requires a total of
12 bytes.
Type Description
Structures This data type consists of multiple data types placed together into a single lay-
ered structure.
Unions This data type allows you to handle the same data as different data types
depending on the situation.
Enumerations This data type uses one item from a prepared name list as its value.
Type Description
Array specification An array is a group of elements with the same data type. You specify the number
(subscript) of the element from the first element to specify the element. You can
specify arrays for both basic data types and derivative data types.
Range specification You can specify a specific range for a data type in advance.
You can specify a range for any integer basic data type.