8-45
8 CIP Message Communications
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
8-4 Specifying Request Path
8
8-4-5 Specifying Variable Names in Request Paths
This example shows how to specify VarAA.MemB[1.2] for the following structure variable.
struct
{
UINT MemA;
BOOL MemB[10][10];
} VarAA;
Variable Name Specification Format
The variable name that is specified in the symbolic segment (ANSI extended symbol segment) must be
converted to a text string to pass it to the communications thread. The following conversion rules apply.
Specification Examples
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 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