8 CIP Message Communications
8-46
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Specification Example for Structure Members and Array Elements
This example shows how to specify VarAA[1].MemB[1.2] for the following structure variable.
struct
{
UINT MemA;
BOOL MemB[10][10];
} VarAA[3];
Variable Name Specification Format
Specification Example for Structure Array
0x91 0x05“VarAA”0x00 0x91 0x04“MemB” 0x28 0x01 0x28 0x02
VAR://VarAA.member[1][2] VarAA.memB[1.2]
BYTE 91 hex ANSI Extended Symbol Segment
BYTE 05 hex Length of variable name in bytes
Array of
octet
'V' Variable name
'a'
'r'
'A'
'A'
Octet 00 hex Pad
BYTE 28 hex Logical Segment (Member ID)
USINT 01 hex Array index
BYTE 91 hex ANSI Extended Symbol Segment
BYTE 04 hex Length of variable name in bytes
Array of
octet
'M' Variable name
'e'
'm'
'B'
BYTE 28 hex Logical Segment (Member ID)
USINT 01 hex Array index for first element
BYTE 28 hex Logical Segment (Member ID)
USINT 02 hex Array index for second element
0x91 0x05 “VarAA” 0x00 0x91 0x04 “MemB” 0x28 0x01 0x28 0x02
VAR://VarAA.member[1][2] VarAA[1].memB[1.2]
0x28 0x01