• Assignment Example for Variable Data Type That Matches the Command Area
Control
Flag
Command
Code
S_EIP
Command
Output
Param1
Command
Param2
Command
Param3
• 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
S_EIPInput
StatusFlag
CommandCodeEcho
ResponseCode
ResponseData
OutputData
• Assignment Example for Variable Data Type That Matches the Response and Output Areas
Status
Flag
Command
CodeEcho
Response
Code
Response
Data
S_EIP
Input
Output
Data
FQ2-S4 User's Manual
15
14
13
12
−
−
−
+0
ERCLR
−
−
−
−
+1
+2
+3
+4
+5
+6
+7
+8
+9
Data type
STRUCT
U_EIPFlag
DWORD
UDINT
DINT
ARRAY[0..7]OF DINT
Response Area
15
14
13
12
−
−
−
+0
ERR
−
−
−
−
+1
+2
+3
+4
+5
+6
+7
Output Area
15
14
13
12
+9
+10
+25
+26
Outputting Data and Controlling Operation through EtherNet/IP
Bits
11
10
9
8
7
6
−
−
−
−
−
−
−
−
−
−
−
−
Command code
Parameter 1
Parameter 2
Parameter 3
The data type that was defined above (1)
32-bit bit string data
32-bit integer data
32-bit integer data
Specifies an array of DINT
data from 0 to 7.
Bits
11
10
9
8
7
6
−
−
−
−
−
−
−
−
−
−
−
−
Command code
Response code
Response data
Bits
11
10
9
8
7
6
DATA0
DATA8
5
4
3
2
1
0
−
−
−
−
TRIG EXE
−
−
−
−
−
DSA
5
4
3
2
1
0
−
RUN OR READY
BUSY FLG
−
−
−
−
−
GATE
5
4
3
2
1
0
353