Outputting Data and Controlling Operation through EtherNet/IP
306
FQ2 User’s Manual
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.
• Command Area
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
Signal name Variable name
EXE EIPOutput.ControlFlag.F[0]
TRIG EIPOutput.ControlFlag.F[1]
ERCLR EIPOutput.ControlFlag.F[15]
DSA EIPOutput.ControlFlag.F[16]
Command code EIPOutput.CommandCode
Command parameter 1 EIPOutput.CommandParam1
Command parameter 2 EIPOutput.CommandParam2
Command parameter 3 EIPOutput.CommandParam3