Sunteți pe pagina 1din 12

No.

AST-142016 (1 / 12)

Connecting the FQ2 to Siemens PLC


Via PROFINET Set-Up Guide
2014 / 02 / 10

OMRON Corporation
INDUSTRIAL AUTOMATION CAMPANY
AUTOMATIONSYSTEMS DIVISION HQ
APPLICATIONSENSORS DIV.
DEVELOPMENT DEPT.
No. AST-142016 (1 / 12)

Table of contents
1. Overview ...................................................................................................... 1
2. Target devices ............................................................................................. 1
2.1. Target devices...................................................................................... 1
2.2. Devices configuration .......................................................................... 1
3. Connection procedure ................................................................................ 2
3.1. Settings ................................................................................................ 2
3.2. Setting Up PROFINET Communications in the FQ2-S ....................... 4
3.3. Setting Up the PROFINET Connection ............................................... 6
No. AST-142016 (1 / 12)

1. Overview

This guide describes how to connect a Siemens PLC to a FQ2 series Smart Camera, using
PROFINET IO communications.

2. Target devices

2.1. Target devices

Manufacturer Series Version


Siemens S7-300/400 -
Omron Smart Camera 1.90
FQ2-S1/S2/S3/S4/CH or higher

2.2. Devices configuration


Devices configuration for PROFINET communications is following.

CPU315-2 PN/NP Touch Finder


IO-Controller FQ2-D
HUB
Ethernet

Ethernet
FQ2-S
IO-Device
PC
IO-Supervisor
(Siemens Step 7 programming software)

1
No. AST-142016 (2 / 12)

3. Connection procedure

3.1. Settings

3.1.1. Network settings

CPU315-2 PN/NP FQ2-S


IP address setting - Fixed
IP Address 192.168.250.1 192.168.250.2
Subnet Mask 255.255.255.0 255.255.255.0
Default Gateway 0.0.0.0 10.5.5.1 (arbitrarily)
Fieldbus data output - PROFINET
Comm. Type
Output data size - 32 bytes

FQ2-D PC
IP Address 192.168.250.150 192.168.250.50
Subnet Mask 255.255.255.0 255.255.255.0
Default Gateway 10.5.5.1(arbitrarily) -

2
No. AST-142016 (3 / 12)

3.1.2. Memory Assignments

Output Area Input Area


Q 00 (PLC -> FQ2) I 00 (FQ2 -> PLC)
20bytes 16 + (32, 64, 128, 256)bytes
Q 19 I 271

・Output Area (PLC -> FQ2)


Bits Description
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Q00 ERCLR TRIG EXE Control flag 1-4
Q02 DSA (32 bits)
Q04 Command code Command code
Q06 (32 bits)
Q08 Command parameter 1 Command
Q10 parameter
Command parameter 2 (32 bits)
Q12
Q14
Q16 Command parameter 3
Q18

・Input Area(FQ2 -> PLC)


Bits Description
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
I00 ERR RUN OR READY BUSY FLG Status flag 1-4
I02 GATE (32 bits)
I04 Command code Command code
I06 (32 bits)
I08 Response code Response code
I10 (32 bits)
I12 Response data Response data
I14 (32 bits)
I16 Output data 1 Output data 0
I18 (32 bits)
. . .
. . .
. . .
I44 Output data 8 Output data 7
I46 (32 bits)
. . .
. . .
. . .
I76 Output data 16 Output data 15
I78 (32 bits)
. . .
. . .
. . .
I140 Output data 32 Output data 31
I142 (32 bits)
. . .
. . .
. . .
I268 Output data 64 Output data 63
I270 (32 bits)

3
No. AST-142016 (4 / 12)

3.2. Setting Up PROFINET Communications in the FQ2-S

3.2.1. Network Setting


Set the IP address of the Sensor according to the network where the external devices,
such as PLCs, are connected.
 [Sensor settings] – [Network] – [Ethernet]

1 Press [IP address setting] and


set [Fixed].

2 Set the IP address and subnet


mask according to the network
where the external devices are
connected.
Ex.
IP address: 192.168.250.2
Subnet mask: 255.255.255.0

Important
To use PROFINET communications, do not automatically assign an IP address to the FQ2-S.
Set a specific IP address and do not change it.

3.2.2. Initial Setting for PROFINET Communications


 [Sensor settings] – [Data output] – [Fieldbus data output]

1 Press [Communication type] and


set [PROFINET].

4
No. AST-142016 (5 / 12)

2 Set the PROFINET


communications parameters.

5
No. AST-142016 (6 / 12)

3.3. Setting Up the PROFINET Connection


To set up a PROFINET I/O connection between a FQ2-S and a Siemens controller, the FQ2
vision system must first be added to the controller’s hardware configuration, using the
Siemen’s HW Configuration tool.
Set the following procedure in a state which the connection between PC and a Siemens
controller is established.

3.3.1. Add a PROFINET IO nodes to the controller

1 Select the [SIMATIC 300] or


[SIMATIC 400] node, and then
double-click on the Hardware
node in the object list.

2 The HW Configuration tool will


now appear.
In order to add PROFINET IO
nodes to the controller, a
PROFINET IO system must be
present in the hardware
configuration diagram.

3 Ensure that the PROFINET IO


interface on the CPU has been
assigned a subnet address; to
verify this, double-click on the
PROFINET IO module on the
CPU.
If the PROFINET IO module’s
Networked status indicates “No,”
then click the [Properties] button
and add a new subnet.

4 Once the PROFINET IO


interface on the CPU has been
assigned a subnet, add a
PROFINET IO system to the
hardware configuration diagram
by right-clicking the PROFINET
IO module in the PLC
configuration and selecting
[Insert PROFINET IO System].

6
No. AST-142016 (7 / 12)

5 If this is the first FQ2 vision


system to be added to the
PROFINET network, the FQ2
GSD file (provided by OMRON)
will need to be installed. To
install the FQ2 GSD file, follow
these steps:
・ From the HW Config tool,
select [Options] > [Install GSD
Files] from the menu.
・ Press the [Browse] button and
select the GSD file.
・ Click the [Install] button to
install the hardware
description for the FQ-XXX
systems.

6 To add a FQ2 vision system to a


PROFINET network, browse to
the FQ2 node of the Hardware
Catalog ([PROFINET IO] >
[Additional Field Devices] >
[Sensors] > [FQ Series]), and
then drag an instance of the
FQ2 vision system into the
PROFINET IO System in the
hardware configuration.

7
No. AST-142016 (8 / 12)

7 Open the object property


window, and set the device
name and IP address to the
exact name and IP address of
the FQ2 vision system being
connected to.
Default of device name is Model.
Ex.: FQ2-S30-13, etc.

8 The FQ2 vision system should


now be displayed as a device on
the PROFINET IO system.

9 Download the completed project


to the Siemens controller.

3.3.2. Adjusting Reduction Ratios


Once the FQ2 vision system has been added to the PROFINET system in the HW Config
utility, the cyclic transfer rate can be adjusted by opening the properties window of the
PROFINET IO System.

1 Double-clicking on the
PROFINET IO System in the
hardware configuration diagram.
Select the mode of update time
“Fixed update time”. And set the
cyclic update time to the same
value as you set for the

8
No. AST-142016 (9 / 12)

Refreshing task period in


FQ2-S.

2 Download the completed project


to the Siemens controller.

3.3.3. Verify a proper I/O connection


After the project has been downloaded to the controller, cyclic data transfers will be initiated, at the
requested update time.

1 Open the HW Config tool online.


The FQ2 vision system should show
no errors, which indicates that the
I/O connection was completed
successfully.

2 From the HW Config tool, with the


FQ2 vision system selected,
right-click on the [Output Data] and
select [Monitor/Modify].

3 Change Input bit Q 0.1 from “false”


to “true”; this enables the TRG bit.

9
No. AST-142016 (10 / 12)

4 From the [Monitor/Modify] window of


the [Results Data] module, if the
Run conditionally checkbox is
checked for Monitor, the Status Flag
bit can be observed changing state
when the command completes by
repeating step 3.

10

S-ar putea să vă placă și