Omron NY532-5400 User Manual page 257

Ny-series ipc machine controller industrial panel pc / industrial box pc
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

• Handling Multi-dimensional Array
Elements for a multi-dimensional array are given in order from the deepest elements. For exam-
ple, the data is read in the following format when Var is specified for a variable defined with UINT
Var[2][2].
Data Format
USINT
USINT
UINT
UINT
UINT
UINT
The following data format is used for a BOOL array (using BOOL b[2][3] as an example).
Data Format
USINT
USINT
(WORD)
• Exceptions When Specifying the Num of Element Field
The following data format is used if a specification is made in the Num of Element field for a BOOL
array. (Refer to 8-4-5 Specifying Variable Names in Request Paths for information on the Num of
Element field.) The status (TRUE/FALSE) is given in order for each element of the BOOL variable.
Data Format
USINT
USINT
UINT
USINT
:
USINT
 Structure Variables
• Accessing an Entire Structure
If a structure variable is specified, it is treated as an access request for all of the members of the
structure.
Data Format
USINT
USINT
UINT
UINT
NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (W563)
C7 hex
00 hex
Value of Var[0][0]
(L)
(H)
Value of Var[0][1]
(L)
(H)
Value of Var[1][0]
(L)
(H)
Value of Var[1][1]
(L)
(H)
C1 hex (data type code for BOOL)
00 hex
rsv
rsv
b[1][2]
rsv
rsv
rsv
Data Type
00 hex
Num of Elem
(L)
(H)
Status
:
Status
Data Type
02 hex
CRC
(L)
(H)
Num of Elem
(L)
(H)
:
Data
:
8 CIP Message Communications
Data type code for UINT
b[1][1]
b[1][0]
b[0][2]
rsv
rsv
rsv
C1 hex
Gives the number of elements in the array.
01 hex: TRUE, 00 hex: FALSE
A0 Hex (Abbreviated STRUCT)
CRC value for the structure definition
01 hex
00 hex
b[0][1]
b[0][0]
rsv
rsv
8
8-61

Advertisement

Table of Contents
loading

Table of Contents