Derived Data Types - Omron Sysmac NJ-series User Manual

Machine automation controller cpu unit built-in ethernet/iptm port
Hide thumbs Also See for Sysmac NJ-series:
Table of Contents

Advertisement

8 CIP Message Communications
8-7-4

Derived Data Types

Arrays and structures are handled as derived data types.
Accessing One Member
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.
Accessing More Than One Element at the Same Time
 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
USINT
USINT
UINT
* 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.
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.)
8-66
Data Type
00 hex
Num of Elem
(L)
(H)
Data
:
Data
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
Data type of array elements (A1 hex is not used.)
Gives the number of elements in the array.
The actual data for the elements of the array are
given in order in the same format as when the
elements are accessed individually.*

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac nx-seriesSysmac nx1p2-10 seriesSysmac nx1p2-90 seriesSysmac nj501-5 seriesSysmac nj501-4 seriesSysmac nj501-3 series ... Show all

Table of Contents