Controlling Operation and Outputting Data with EtherNet/IP Communications
FQ2-S/CH User’s Manual
for Communications Settings
107
3
Controlling Operation and Outputting Data with an
Ethernet Connection
• Assignment Example for Variable Data Type That Matches the Response and Output Areas
2 Defining the Variables
Define variables for the data links for the communications area data that is used in EtherNet/IP commu-
nications.
These variables use the data types that were defined above in procedure 1.
3 Exporting the Variables That Were Defined on Sysmac Studio
Export the variables that you defined so that you can use them on the Network Configurator.
An exported CSV file is created.
4 Network Configurator Settings
(1) Import to the Network Configurator the CSV file that you exported from the Sysmac Studio.
The variables that are imported will automatically be registered as tags.
(2) Set the connections as shown in the following table.
5 Accessing the Communications Areas from the User Program
The defined variables are used to access the communications areas for the Sensor using the following
notation.
Variable Variable type Network Publish
attribute
Data type Application
EIPOutput Global variable Output S_EIPOutput For data links to the
command area
EIPInput Global variable Input S_EIPInput For data links to the
response and output
areas
Originator device (PLC) settings Target device (Sensor) settings
Input tag set: EIPOutput Output tag set: Input101
Output tag set: EIPInput Input tag set: Output100
Response Area
Output Area
Status
Flag
S_EIP
Input
Command
CodeEcho
Response
Code
Response
Data
Output
Data
+0
+1
+2
+3
+4
+5
+6
+7
Command code
Response code
Response data
Bits
15 14 13 12 11 10 9 8 76543210
ERR
BUSY
FLG
−−−−−−−−−−−−−−
−−−−−−−−−−
RUN
OR
READY
−
GATE
+8
+9
+24
+25
DATA0
DATA8
Bits
15 14 13 12 11 10 9 8 76543210
FQ2-S_CH_comm.book 107 ページ 2014年6月26日 木曜日 午前11時47分