MC Protocol Communications For In-Sight (English)
MC Protocol Communications For In-Sight (English)
MC Protocol Communications For In-Sight (English)
Executive Summary
This document is intended to assist users to configure Ethernet based MC Protocol communications
between In-Sight vision systems and Mitsubishi Q-Series PLCs. MC Protocol communication enables In-
Sight vision systems to communicate directly with Mitsubishi PLCs without requiring ladder logic.
Examples in this document are based on In-Sight Explorer software version 4.3, using the EasyBuilder
interface, and Mitsubishi’s GX Developer software, version 8.
Ethernet
In-Sight
Ethernet Module Run
Vision System
Online
QJ71E71-100
In-Sight opens the communication
connection with the first MC Protocol
communication. Connection
Request Connection
Permitted
Connection
Complete
Image
Acquired
MC Protocol Message
Message Sent Accepted
Reply
Reply
Accepted
Job
Processing Message
Compelete MC Protocol
Accepted
Message Sent
Reply
Reply
Accepted
Configure the
network settings
of the In-Sight
vision system.
Go to the Get
Connected Step
Go to the Set Up
Image step
Go to the Locate
Part
Select PatMax
Patterns and press
Add
Note that the Rotation Tolerance is currently set to 15. This is the value that we will update by
reading a new value from the PLC.
Go to the
Communication step
Set the:
• Device to PLC
• Manufacturer
to Mitsubishi
• Protocol to
MC Protocol
Select the type of register and the offset to read from the plc. In this example, we will read from a data
register with an offset of 120.
Select the type of register and the offset to write to the plc. In this example, we will write to a data register
with an offset of 100.
The MC Protocol Settings should be configured to look like the image below:
Select the items to write to the PLC. Go to the Format Output Data tab:
.
Press the Add button, and select the
items to send to the PLC.
Select the items to send to the PLC. By pressing the CRTL or Shift key, you can select multiple items.
Angle, X and Y
data is selected.
Press OK to
accept.
The Format Output Data tab should now look like this:
Inspection count,
Angle, X and Y
are selected to
send to the PLC.
Now, we will select the items to read from the PLC. Go to the Format Input Data tab and press Add:
Rotation
Tolerance will be
read from the
PLC.
Press OK to
accept.
Select the data type from the list. In this example, we use a 32 bit float:
The Ethernet module for this Mitsubishi PLC for this example is model number QJ1E71-100. Set up the
parameters as shown below:
Communication
data code set to Initial Timing Set
Binary Code to “Always Wait for
OPEN”
IP address set to a
different IP
address than In-
Sight
Press END to
Enable Write at accept changes.
RUN time is
checked.
Starting Interval=10
Interval Timer=10
Resend=8
Set Fixed
buffer to
“Send” Set Procedure to Paring open=Disable
“Procedure Exist”
Confirm for Existence Confirmation
Write the settings to the PLC through the icon or OnlineÆWrite to PLC menu:
or
Reset the PLC by cycling power or through the reset switch on the PLC’s CPU.
Monitoring Communication
Start the Batch Monitor in GX Developer through the icon or OnlineÆMonitorÆDevice Batch menu
Begin monitoring
Set to Real Number
at D100
to match setting in
In-Sight
In-Sight
begins writing
to the PLC at
D100
In-Sight
begins reading
Press Device
from the PLC
at D120 Test to set a
value for D120
Press Device Test to set a value for D120, which In-Sight will read to set the Rotation Tolerance of
PatMax.
Now, trigger In-Sight by pressing the trigger icon or pressing F5, and monitor the settings in the batch
monitor of GX Developer.
PatMax
Results
Trigger by pressing this icon, or by
pressing F5.
Inspection count,
PatMax Angle, X
and Y values are
written to the PLC.
180 is written
to In-Sight.