EasyManuals Logo
Home>Omron>Computer Hardware>Sysmac NJ-series

Omron Sysmac NJ-series User Manual

Omron Sysmac NJ-series
578 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 #312 background imageLoading...
Page #312 background image
8 CIP Message Communications
8-66
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Arrays and structures are handled as derived data types.
The data format for accessing one element of an array or one member of a structure is the same as
the data format for the corresponding elementary data type.
Example: If you specify Var[5] to access a variable defined with UINT Var[10], use the same data
format as for UINT data.
Arrays
Accessing an Entire Array
If you access an array variable without specifying an element, the entire array is accessed. The
following data format is used.
Data Format
* For STRING data, the output format differs from the format when accessing individual elements in the following
ways.
There are no fields for the text string lengths. Only the text strings (including NULL) are given.
The transferred data length is not the combined lengths of the text strings, but the memory size
that is allocated to the STRING variable.
Upper and lower bytes are reversed.
8-7-4 Derived Data Types
Accessing One Member
Accessing More Than One Element at the Same Time
Example: The outputs will be as follows for a STRING array named s that has two elements (with the
data quantity around elements is set to 4 bytes) when s[0] is “ab” and s[1] is “d”.
Individual [0]: D0 00 03 00 61 62 63 (hex)
Entire array: D0 00 62 61 ?? 00 00 64 ?? ?? (hex) (??: Invalid data.)
USINT Data Type
Data type of array elements (A1 hex is not used.)
USINT 00 hex
UINT Num of Elem (L) Gives the number of elements in the array.
(H)
Data
:
Data
The actual data for the elements of the array are
given in order in the same format as when the
elements are accessed individually.*

Table of Contents

Other manuals for Omron Sysmac NJ-series

Questions and Answers:

Question and Answer IconNeed help?

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

Omron Sysmac NJ-series Specifications

General IconGeneral
BrandOmron
ModelSysmac NJ-series
CategoryComputer Hardware
LanguageEnglish

Related product manuals