Controlling Operation and Outputting Data with EtherNet/IP Communications
106
FQ2-S/CH User’s Manual
for Communications Settings
• Data Type to Access the Command Area
Name of data type: S_EIPOutput
Type of derivative data type: Structure
• Assignment Example for Variable Data Type That Matches the Command Area
• Data Type to Access the Response and Output Areas
Name of data type: S_EIPInput
Type of derivative data type: Structure
Name of data type Data type
S_EIPOutput STRUCT
ControlFlag U_EIPFlag
The data type that was defined above (1)
CommandCode DWORD 32-bit bit string data
CommandParam2 UDINT 32-bit integer data
CommandParam3 DINT 32-bit integer data
CommandParam1 UDINT 32-bit integer data
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
Command code
Parameter 1
Parameter 2
Parameter 3
Control
Flag
S_EIP
Output
Command
Code
Command
Param1
Command
Param2
Command
Param3
Bits
15 14 13 12 11 10 9 8 76543210
ERCLR
TRIG
EXE
−−−−−−−−−−−−−−
−−−−−−−−−−−−−
− DSA
Name of data type Data type
S_EIPInput STRUCT
StatusFlag U_EIPFlag
The data type that was defined above (1)
CommandCodeEcho
DWORD 32-bit bit string data
ResponseData DINT 32-bit integer data
OutputData ARRAY[0..7]OF DINT Specifies an array of DINT
data from 0 to 7.
ResponseCode UDINT 32-bit integer data
FQ2-S_CH_comm.book 106 ページ 2014年6月26日 木曜日 午前11時47分