6
.
EtherNet/IP Settings
10
6.2. Data Types to Use for Tag Data Links
The following data types are used for tag data links to communicate with Sensor Controller.
■Defining a data type for signal access (Union)
Data type to access control signals and status signals
Data type name
Data type
U_EIPFlag
UNION
F
BOOL[32]
W
DWORD
■Defining a data type for command area access (Structure)
Data type to access the command area
Data type name
Data type
Sensor Controller data
S_EIPOutput
STRUCT
-
SensorHeadControlFlag1
U_EIPFlag
Sensor head control signal1 (32 bit)
SensorHeadControlFlag2
U_EIPFlag
Sensor head control signal2 (32 bit)
SensorHeadControlReserve
U_EIPFlag
Extended area (32 bit)
CommandCode
DWORD
Command code (32 bit)
CommandParam1
UINT
Command parameter 1 (16 bit)
CommandParam2
UINT
Command parameter 2 (16 bit)
CommandParam3
DINT
Command parameter 3 (32 bit)
■Defining a data type for response and output area access (Structure)
Data type to access the response and output areas
Data type name
Data type
Sensor Controller data
S_EIPInput
STRUCT
-
SensorHeadStatusFlag1
U_EIPFlag
Sensor head status signal1 (32 bit)
SensorHeadStatusFlag2
U_EIPFlag
Sensor head status signal2 (32 bit)
SensorHeadStatusReserve
U_EIPFlag
Extended area (32 bit)
CommandCodeEcho
DWORD
Command code Echo (32 bit)
ResponseCode
UDINT
Response code (32 bit)
ResponseData
DINT
Response data (32 bit)
OutputData
DINT[8]
Output Data0 to 7 (32 bit)
Additional Information
For details on the union and structure types, refer to
Memory Assignments and Commands
in
4-1 EtherNet/IP Connection
of the
Displacement Sensor ZW-7000 series Confocal Fiber
Type Displacement Sensor User’s Manual for Communications Settings
(Cat. No. Z363).
Additional Information
With Sysmac Studio, two methods can be used to specify an array for a data type.
After specifying, (1) is converted to (2), and the data type is always displayed as (2).
(1)BOOL[16] / (2) ARRAY[0..15] OF BOOL
In this document, the data type is simplified by displaying BOOL[16].
(The example above means a BOOL data type with sixteen array elements.)
Summary of Contents for NJ501-1500
Page 56: ...2016 0616 P653 E1 01...