EasyManuals Logo

Omron NJ Series User Manual

Omron NJ Series
668 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 #220 background imageLoading...
Page #220 background image
6-33
6 Programming
NJ-series CPU Unit Software User’s Manual (W501)
6-3 Variables
6
6-3-5 Data Types
Precautions for Correct UsePrecautions for Correct Use
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.
DWORD data
DWORD data
WORD data
Byte
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
The beginning of the
data type is a
multiple of four.
The beginning of the
data type is a
multiple of two.
DWORD data
WORD data
Not used.
DWORD data
Byte
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
The beginning of the
data type is a multiple
of two.
The beginning of the
data type is a multiple of
four, i.e., first byte + 8.

Table of Contents

Other manuals for Omron NJ Series

Questions and Answers:

Question and Answer IconNeed help?

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

Omron NJ Series Specifications

General IconGeneral
Program CapacityUp to 128 MB
SD Card SlotYes
Power Supply Voltage24 VDC
Motion ControlYes
USB Ports1
Operating Temperature0°C to 55°C
Communication InterfacesEthernet/IP, EtherCAT, USB
Safety FunctionOptional
Storage Temperature-20°C to 75°C
Communication PortsUSB
DimensionsVaries by model
WeightVaries by model

Related product manuals