The following data format is used.
Data Format
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.*
*1. 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 per element is set to 4 bytes)
when s[0]="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.)
• Handling Multi-dimensional Array
Elements for a multi-dimensional array are given in order from the deepest elements.
For example, the data is read in the following format when Var is specified for a variable defined
with UINT Var[2][2].
Data Format
USINT
C7 hex
Data type code for UINT
USINT
00 hex
UINT
Value of
Var[0][0]
(L)
(H)
UINT
Value of
Var[0][1]
(L)
(H)
UINT
Value of
Var[1][0]
(L)
(H)
UINT
Value of
Var[1][1]
(L)
(H)
The following data format is used for a BOOL array (using BOOL b[2][3] as an example).
Data Format
USINT
C1 hex (data type code for BOOL)
USINT
00 hex
(WORD)
rsv rsv rsv
rsv rsv rsv rsv rsv
rsv rsv b[1][2]
b[1][1]
b[1][0] b[0][2]
b[0][1] b[0][0]
• Exceptions When Specifying the Num of Element Field
8 CIP Message Communications
8-90
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Summary of Contents for Sysmac NX1P2-10 1 Series
Page 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Page 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Page 577: ......