Omron NJ-series User Manual page 228

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

Item
Number of mem-
bers
Nesting depth of
structures
Maximum size of
one structure vari-
able
Data Types of Structure Members
Classification
Basic data types
Derivative data types
POU instances
 Arrays and Structures
You can set an array in which the elements are structures. You can also set a structure in which the
members are arrays.
 Specifying Structure Member Offsets
When you specify an offset for a member, you can set the memory configuration of the members as
required for each structure data type. This allows you to align the memory configuration of the mem-
bers of the structure data type when you use tag data links with CJ-series CPU Units or with other
external devices. You can select NJ, CJ, or User as the offset type for structure members. If you
select NJ, the memory configuration that is optimum for the NJ Series is automatically used. Refer to
A-7 Variable Memory Allocation Methods for details on the memory configuration of NJ-series Con-
trollers. Refer to A-7-2 Important Case Examples for examples of tag data lings with CJ-series CPU
Units.
The meanings of the offset type are as follows:
Offset type
NJ
CJ
User
NJ-series CPU Unit Software User's Manual (W501)
1 to 2,048
Maximum of 8 levels (however, a member name must be 511 bytes or less, including the
variable name)
No restrictions
Boolean, bit string, integer, real, duration, date, time of day, date
and time, or text string data
Array of Boolean, bit string, integer, real, duration, date, time of
day, date and time, or text string data
Arrays (see note), unions, and enumerations
Note Recursions and loops are not allowed. (An error will occur
when the program is checked.)
Array specifications for structures, unions, and enumerations
The memory configuration that is optimum for the NJ-series Controllers is
automatically used and operating speed is maximized.
The memory configuration for CJ-series PLCs is automatically used. This
allows you to use the same memory configuration as a CJ-series CPU Unit.
You can set the memory offsets for each member. This allows you to use the
same memory configuration as external devices other than CJ-series CPU
Units.
Specification
Data type
Meaning
6 Programming
Usage
Supported.
Supported.
Supported.
Supported.
Not sup-
ported.
6
6-41

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents