KEYENCE CV-X User Manual

High-speed, High-capacity Machine Vision System
CV-X Series
Easy Setup Guide
365GB
Control/Communication EtherNet/IP
(KEYENCE KV Series)
Contents
Easy Setup Guide: Control/Communication EtherNet/IP (KEYENCE KV Series)
3
1. Before Connecting EtherNet/IP
6
9
2. Outputting the Measured Value/Judged Value
3. Controlling the Controller
15
4. Data Allocation
5. Troubleshooting
17
Page
Page
Page
Page
Page
KEYENCE CORPORATION. Vision System Division

1. Before Connecting EtherNet/IP (EtherNet/IP) [Keyence KV Series]

3
This section describes how to establish EtherNet/IP.
[Important] If it fails, establish a one-to-one connection between the PLC and CV-X, and follow this manual to configure the settings and check the operations. Confirm that it operates properly, and change settings if necessary.
1. Checking the Global Settings of the CV-X100 Series
1
From "Global", select "Communications & I/O" ­"Network".
2
Change the Ethernet settings and then left-click "OK".
From "Global", select "Communications & I/O" ­"EtherNet/IP".
4
Change the EtherNet/IP settings and then left-click "OK".
In this section, the set values below will be configured as an example (change the settings according to the target device).
In this section, the set values below will be configured as an example (change the settings according to the target device).
IP Address: 192.168.0.10
Subnet Mask: 255.255.255.0
Enable EtherNet/IP: Check this box.
Data Size: 496 bytes
Data Configurations: Set the desired data
allocations and allocation offset for the bit address and byte address.
Decimal Point: Fixedpoint
Process Priority: Image First
5
Restart the controller.
KEYENCE CORPORATION. Vision System Division
365GB
3 www.keyence.com
2. Changing the KV-Series settings
2
Enter the "Project name", select the "PLC model",
A "Confirm unit setting information" dialog appears.
3
Click "Read unit setting".
4
In the workspace, click the Ethernet/IP
5
Select "Convert" - "Auto-assign relay/DM" in the
6
Click the icon in "Setup unit (2)" to open
7
Save the changes and exit the "EtherNet/IP
8
Select "Device comment edit window" from the
9
Click "Details".
10
Confirm that the box for "CV-X100" is checked in
Device comments regarding CV‐X100 are
1
Start KV STUDIO with the PLC connected to the
computer, and select "New project" from the "File" menu.
and then press "OK".
"EtherNet/IP settings". Configure the CV-X100 Series and EtherNet/IP communication settings.
Drag "CV‐X100" from the "Unit list (1)" tab in erNet/IP settings" and drop it into the scan list
"Eth to add it.
In the "Initial adapter settings" screen that is
displ
ayed after start up, enter the CV
dress (192.168.0.10) that was set in the
IP Ad CV‐X100
Series global settings.
‐100 S
settings" and Unit Editor.
"Display" menu in KV STUDIO.
The "Device comment edit" screen appears.
eries
communication unit or CPU unit that will be connected to the CV-X100 Series to start "Unit Editor". Set up the IP Address of the KV Series in the "Setup unit (2)" tab.
IP Address: 192.168.0.20
Subnet Mask: 255.255.255.0
Unit Editor to allocate a device.
When automatically allocated, the bit device is allocated to B (link relay) and the byte device is allocated to W (link register).
The "Register unit device" screen appears.
the "Select unit" list, and then click "Register".
KEYENCE CORPORATION. Vision System Division
automatically registered.
11
Select "Transfer to PLC" from the
"Monitor/Simulator" menu in KV STUDIO.
12
Restart both the CV-X100 Series and the KV Series.
If the LINK LED on the KV Series Ethernet port stays lit
When the connection is successful, the LINK LED (green) will start flashing on the KV Series Ethernet port. Successful connection can also be confirmed by selecting "Communications & I/O" "Global" on the CV "Cyclic Communication Status".
(does not flash) or does not light
The EtherNet/IP may not be set up correctly, the cables may not be connected correctly, or the CV be started up. Check the connection equipment (if a crossover cable is being used as a LAN cable when connected directly, if the HUB is working, etc.)
Series, and checking the
‐X100
‐X100
rNet/IP" in
‐ "Ethe
Series may not
KEYENCE CORPORATION. Vision System Division

2. Outputting the Measured Value/Judged Value (EtherNet/IP) [Keyence KV Series]

Use the output settings to output the measured values
1
Check an example of result data stored to the
Outputting the Measured Value/Judged
3
Left-click "Select Data", select the items to output,
4
Check the byte address for output.
1
From the "Output Settings" screen, left-click
2
Left-click the "Byte Allocation Area" tab.
2
Check the relationship between the byte address
•Check the range (hexadecimal) of the link relay
2. Checking the format for output to the byte address, and the relationship between the byte
1. Setting the output data (Output Settings)
address and the link register (W)
and judged values. This section explains how to allocate the measured/judged values below as an example.
•Total Status Value
T100: Position Adjustment with Shading Pattern
(position X)
T100: Position Adjustment with Shading Pattern
(position XY)
T101: Area
T102: OCR (Recognize Strings)
T100: Position Adjustment with Shading Pattern
(tool judgment value)
T101: Area (tool judgment value)
Program Time
Date & Time
"EtherNet/IP".
The EtherNet/IP output settings screen appears.
byte address.
The EtherNet/IP output settings are set so that the result data shown below is output.
Total Status Value
T100: Position Adjustment with Shading Pattern
(position X)
T100: Position Adjustment with Shading Pattern
(position XY)
T101: Area
T102: OCR (Recognize Strings)
T100: Position Adjustment with Shading Pattern
(tool judgment value)
T101: Area (tool judgment value)
Program Time
Date & Time
and the link register (W) in KV STUDIO.
Open "EtherNet/IP settings" from the "Setup unit (2)" tab in KV STUDIO Unit Editor, and click the plus sign (+) next to "Class1" for the registered CV check the allocation status of the device. (In the notation, output from CV (input)".)
is treated as "IN
‐X100
‐X100
to
and then left-click "Add".
KEYENCE CORPORATION. Vision System Division
•When allocating output data, the destination byte address is automatically displayed in "Address".
The byte address starting position is the position allocated to "Result Data1" on the "Data
igurations"
Conf
he example above, it is byte address 048.)
(In t
‐ "Send‐Data" ‐ "Vie
w List" screen.
(B)/link register (W) allocated to the registered CV‐X100 changed
Byte addresses 0000‐0011 are for the link relay
(fro 0012 onwards are for the link register. Allocation begins at the start from W0000, with 1 register used for each 2‐byte address.
Series controller. (The range can also be
as desired by clicking "Edit".)
m B0000 onwards), and byte addresses from
Loading...
+ 14 hidden pages