![Omron Sysmac NY512-1300 User Manual Download Page 256](http://html.mh-extra.com/html/omron/sysmac-ny512-1300/sysmac-ny512-1300_user-manual_742451256.webp)
8 CIP Message Communications
8-60
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User’s Manual (W563)
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.*
Summary of Contents for Sysmac NY512-1300
Page 459: ......