Omron FQ2-S/CH Series User Manual page 109

Smart camera
Hide thumbs Also See for FQ2-S/CH Series:
Table of Contents

Advertisement

• 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
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.
Variable
EIPOutput
Global variable
EIPInput
Global variable
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.
Originator device (PLC) settings
Input tag set: EIPOutput
Output tag set: EIPInput
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.
FQ2-S/CH User's Manual
for Communications Settings
Response Area
15
14
13
12
+0
ERR
+1
+2
+3
+4
+5
+6
+7
Output Area
15
14
13
12
+8
+9
+24
+25
Variable type
Network Publish
attribute
Output
Input
Controlling Operation and Outputting Data with EtherNet/IP Communications
Bits
11
10
9
8
7
6
Command code
Response code
Response data
Bits
11
10
9
8
7
6
DATA0
DATA8
Data type
S_EIPOutput
S_EIPInput
Target device (Sensor) settings
Output tag set: Input101
Input tag set: Output100
5
4
3
2
1
0
RUN OR READY
BUSY FLG
GATE
5
4
3
2
1
0
Application
For data links to the
command area
For data links to the
response and output
areas
107

Advertisement

Table of Contents
loading

Table of Contents