You are on page 1of 5

Mitsubishi Electric Automation, Inc.

500 Corporate Woods Parkway, Vernon Hills, IL 60061 • phone: 847.478.2100


An ISO9001 Certified Company

Technical Bulletin
How to connect a Cognex In-Sight camera to iQ-R PLC

Using SLMP scanner function, it is possible to quickly setup data transfer between a Cognex In-Sight
Micro vision sensor and iQ-R PLC over Ethernet.

1) GX Works 3 Parameter Settings

From the project tree, select ‘Parameter’ -> ‘RxxCPU’ -> ‘Module Parameter’. Enable online
change for SLMP and then configure the communication in External Device Configuration.

1|Page R72-195-SLSASG-001-*
Mitsubishi Electric Automation, Inc.
500 Corporate Woods Parkway, Vernon Hills, IL 60061 • phone: 847.478.2100
An ISO9001 Certified Company

On the right-hand side, select the desired In-Sight from the available Ethernet profiles and drag
over to the network diagram. Enter the IP address for the camera and also select a port no. to
use in the range of 5010-65534. Then select ‘Close with Reflecting the Setting’. Apply the
Module Parameter changes to the GX Works 3 project and then download settings to the PLC. If
you do not see all the Cognex profiles registered to GX Works 3, refer to the link at the end of
the document to download the profile from the Knowledge Base.

2) In-Sight Explorer Communication Settings


In In-Sight Explorer, go to ‘Communications -> Add Device -> Device = PLC -> Manufacturer =
Mitsubishi -> Protocol = SLMP Scanner’. Make sure iQ-R controller type (3E Frames) is selected
and the host port matches the port no. used in the PLC settings. If the connection is good, it
should say ‘Connected’ in the lower right hand corner.

2|Page R72-195-SLSASG-001-*
Mitsubishi Electric Automation, Inc.
500 Corporate Woods Parkway, Vernon Hills, IL 60061 • phone: 847.478.2100
An ISO9001 Certified Company

Next, go to the Device Addressing tab. Here is where the PLC addresses for word data and bit
data are defined. Select the desired PLC devices addresses.

Refer to In-Sight Explorer Help for data block definitions.

Output data is the area of data of the vision sensor that is sent to the PLC. Add desired data
from job to the output section. Note the data type that applies to the data being sent. Here we
will transfer the job’s pass count to the PLC at device register D205.

3) Test Connection
Save job and go online. Manually trigger to see ‘Pass Count’ data increase in In-Sight
Explorer.

3|Page R72-195-SLSASG-001-*
Mitsubishi Electric Automation, Inc.
500 Corporate Woods Parkway, Vernon Hills, IL 60061 • phone: 847.478.2100
An ISO9001 Certified Company

In GX Works 3, go to ‘Online’ -> ‘Watch’ -> ‘Register to Watch’ and add destination data to the
Watch Window 1. Select ‘Online’ -> ‘Watch’ -> ‘Start Watching’ and verify data is transferring to
the PLC.

At this point, the rest of the application is ready to be programmed.

References:

Link to download Cognex camera profiles (*.espp files) from Knowledge Base
https://us.mitsubishielectric.com/fa/en/support/technical-support/knowledge-
base/getdocument/?docid=3E26SJWH3ZZR-37-1129

*********** Related Documents**********

Link to LCPU connection to Cognex In-Sight which shows features of iQSS sensors (diagnostics, etc.)
https://us.mitsubishielectric.com/fa/en/support/technical-support/knowledge-
base/getdocument/?docid=3E26SJWH3ZZR-38-1577

Link to QCPU (Front Port) SLMP (MC Protocol) connection to Cognex In-Sight which shows more details
on Cognex setup
https://us.mitsubishielectric.com/fa/en/support/technical-support/knowledge-
base/getdocument/?docid=3E26SJWH3ZZR-41-8982

Link to QCPU (QJ71E71-100) SLMP (MC Protocol) connection to Cognex In-Sight


https://us.mitsubishielectric.com/fa/en/support/technical-support/knowledge-
base/getdocument/?docid=3E26SJWH3ZZR-41-8921

Link to Cognex In-Sight SLMP connection to NZ2GF-ETB SLMP to IE Field Bridge Module
https://us.mitsubishielectric.com/fa/en/support/technical-support/knowledge-
base/getdocument/?docid=3E26SJWH3ZZR-37-1239

4|Page R72-195-SLSASG-001-*
Mitsubishi Electric Automation, Inc.
500 Corporate Woods Parkway, Vernon Hills, IL 60061 • phone: 847.478.2100
An ISO9001 Certified Company

This book applies to the Mitsubishi Electric Corporation product components and to all subsequent
releases and modifications until otherwise indicated in new editions. Make sure you are using the
correct edition for the level of the product.
MITSUBISHI ELECTRIC CORPORATION PROVIDES THIS BOOK "AS IS," WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANT ABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
This book could contain technical inaccuracies or typographical errors. Changes are made periodically to
the information herein. Mitsubishi Electric Corporation may make improvements and changes at any
time to the product(s) and/or program(s) described in this book.

5|Page R72-195-SLSASG-001-*

You might also like