You are on page 1of 20

CV-X200/X100 Series

Series Connection
Connection Guide
Guide

Step 1 Checking the Equipment Required for Connection Supported units (PLC)

Step 2 EtherNet/IP™ Settings of the CV-X100 Series KV-7500/5500 (built-in)


KV-EP21V
Step 3 Measurement Condition Settings of the CV-X100 Series
(KV-7500/7300/5500/5000/3000)
Step 4 KV-7500 Settings KV-NC1EP (KV-N24/N40/N60/NC32T)

Step 5 Communication Confirmation

Extra 1 High-speed Data Transfer Technique

Extra 2 Changing the Data Size

Extra 3 List of Communication Commands for Controlling the CV-X100 Series

Extra 4 Vision System Monitor Function

Extra 5 Remote Ethernet Tool

Touch panel display


VT5 Series

CPU unit equipped with High-speed, high-capacity multi-camera


Choose and Use machine vision system
a sensor network
KV-7500 CV-X200/X100 Series
CV-X200/X100 Series Connection Guide

Step 1 Checking the Equipment Required for Connection

This guide describes communication with the KV-7500 and CV-X100.


If you are using a different unit, replace references to the KV-7500 and CV-X100 with the unit that you are using.
Prepare the following equipment.

 KV-7500  CV-X100 Series*  LAN cable

* If you are using the vision system monitor function, update this unit’s firmware to version 3.2 or later. If you are not using this function, version 2.0 or later of the
firmware is sufficient.

Connection diagram Connect the KV-7500 to the CV-X200/X100 Series as shown below.
KV-7500 CV-X200/X100 Series

STP/UTP cable

One point
You can use an Ethernet switch to connect multiple CV-X200/X100 Series units.

CV-X200/X100 Series
NE-Q05(P)
KV-7500

CV-X200/X100 Series

CV-X200/X100 Series

* To achieve stable communication via EtherNet/IP™, use an Ethernet switch


that is equipped with a QoS function.

2
CV-X200/X100 Series Connection Guide

When using the touch panel display VT5 Series

Connection diagram

When using the VT5-W10


The VT5-W10 has two Ethernet ports. No Ethernet switch is necessary when connecting one KV-7500 unit and one
CV-X200/X100 Series unit.
VT5-W10 KV-7500 CV-X200/X100 Series
Rear of the VT5-W10

When using the VT5-W07(M) or when connecting multiple CV-X200/X100 Series units
VT5-W07(M) KV-7500 CV-X200/X100 Series CV-X200/X100 Series

NE-Q05(P)

One point
Connecting the CV-X200/X100 Series to the VT5 Series enables the following functions.

Vision system monitor


You can search for vision systems connected via Ethernet and show monitor displays that consist of one screen, two
screens, or four screens. There is no need to prepare a video switcher even when using multiple vision systems.

(à See page 17 for the setting method.)


Full-screen display Four-screen display

Remote Ethernet tool


You can send and receive settings through the VT5 Series by connecting the VT5 Series to the PC which is used
to set the CV-X200/X100 Series unit. This eliminates the need to reconnect cables during debugging.
(à See page 19 for the setting method.)

3
CV-X200/X100 Series Connection Guide

Step 2 EtherNet/IP™ Settings of the CV-X100 Series

Before configuring the network settings, determine the following items.


 IP address assigned to the KV Series .......................... (Example: 192.168.0.10 [default])
 IP address assigned to the CV-X100 Series ................. (Example: 192.168.0.20)

1 On the setup screen of the CV-X100 Series, select [Global], [Communications & I/O], and then
[EtherNet/IP].

On the “EtherNet/IP” screen, configure the settings as shown below.

Setting item Setting value

Enable EtherNet/IP Enable

Data Size 496 bytes (default)

Connect to Allen-Bradley SLC5/05 Disable (default)

Decimal Point Fixed-point (default)

4
CV-X200/X100 Series Connection Guide

2 On the setup screen of the CV-X100 Series, select [Global], [Communications & I/O], and then [Network].
Configure the CV-X100 Series network settings.

On the “Network” screen, configure the settings as shown below.

Setting item Setting value

IP Address 192.168.000.020 (Ensure that the IP address is not the same as that of the KV-7500.)

Subnet Mask 255.255.255.000 (default)

Default Gateway 000.000.000.000 (default)

Port 8500 (default)

Delimiter CR (default)

Port (PC Program) 8502 to 8504 (default)

3 After you finish configuring the settings, restart the CV-X100 Series.

When the CV-X100 Series restarts, the settings changed in steps 1 and 2 are applied.

One point

Changes to the [EtherNet/IP] and [Network] settings will be applied after the CV-X200/X100 Series restarts.

5
CV-X200/X100 Series Connection Guide

Step 3 Measurement Condition Settings of the CV-X100 Series

1 Select [Add Tools] for the CV-X100 Series, and then use the [Tool Catalog] to set the measurement
conditions.
When setting the measurement method to “Edge Width”

*For details on window settings, see the CV-X100 Series manual.

2 Use [Output Settings] for the CV-X100 Series to set the output.

*For details on output settings, see the CV-X100 Series manual.

3 Save the settings, and then change to Run mode.

6
CV-X200/X100 Series Connection Guide

Step 4 KV-7500 Settings

1 Under [All Programs], click [KEYENCE KV STUDIO Ver.8G (or later)], start [KV STUDIO Ver.8G (or
later)], and then select the KV-7500 for the corresponding PLC.
When connecting the KV-7500 and the CV-X100 Series via EtherNet/IP™, use KV STUDIO version 8 or later.

2 On the [Tool(T)] menu, click [Unit Editor(U)] to open the Unit Editor.

* D evice assignment is performed


automatically.
* You can also assign devices
manually from the [Setup unit(2)]
tab.

One point

When connecting through the KV-EP21V/NC1EP, add the EtherNet/IP unit (KV-EP21V/NC1EP) to the unit
configuration on the [Select unit(1)] tab. For the KV-7500/5500, this operation is not necessary.

7
CV-X200/X100 Series Connection Guide

3 On the [Setup unit(2)] tab, configure the KV-7500 Ethernet settings.

Setting item Setting value

IP address 192.168.0.10 (default)

Subnet mask 255.255.255.0 (default)

Ethernet • Ensure that the IP address is not the same as that of the CV-X100 Series.
setting precautions • Enter the same subnet mask setting as that on the CV-X100 Series.

4 Start the [EtherNet/IP settings].

Click this.

Alternative method On the [Tool(T)] menu in KV STUDIO, click [EtherNet/IP settings(W)].

5 Drag “CV-X100 Series” from the [Unit list(1)] tab.


*When using the CV-X200, drag “CV-X200 Series” from this tab.

8
CV-X200/X100 Series Connection Guide

6 The [Initial adapter settings] dialogue box is displayed. Enter the IP address, and then click [OK].

7 Save and close the EtherNet/IP settings and the Unit Editor.

One point

You can use the following procedure to automatically register the comments for the devices related to
communication with the CV-X200/X100 Series, which greatly reduces the man-hours spent entering comments.

Confirm the registered device comments.

9
CV-X200/X100 Series Connection Guide

8 Create the ladder program.


Example) Using a trigger command to obtain the measured values of the CV-X100 Series

List of mnemonics

❶ LDP @MR000
MOV #1 W0F4
❷ LDP @MR000
AND B02
OR B060
ANB B00
❸ ANB B01
OUT B060
❹ LDP B03
MOV.L W012 DM0
LD B03
OUT B063

Flow of the above ladder program

➊ #1 (trigger 1) is stored in the command input area (W0F4).


➋ The command execution request relay (B060) is turned on, which starts the command execution.
When the command execution complete relay (B00) turns on, the command execution request relay (B060) turns off.
➌ The measured value obtained from the result output area (W012) is stored in DM0.
➍W hen the data read acknowledgement notification relay (B063) turns on, the CV-X100 turns the acknowledgement complete
notification relay (B03) off.

9 Transfer the ladder program (unit setup) to the PLC.


In KV STUDIO, click [Transfer to PLC(W)] on the [Monitor/Simulator(N)] menu.

One point

When writing a ladder program, you can intuitively make inputs using the RT edit function.
RT edit: During key input, the items that can be selected will be searched for and displayed automatically when
device comments are entered directly.

Example) Inputting the CV-X100 Series[1]. Cmd ready (B02) normally open contact

Select the item and


press Enter.

There is no need to search for


the device number!
List display of the devices whose
device comments contain “cv”

10
CV-X200/X100 Series Connection Guide

List of devices used

Device number Device comment Status of setting

@MR000 Trigger input -

DM0 Measured value -


CV-X100 Series[1].
W012 Result output area
InDat(0048)
CV-X100 Series[1].
W0F4 Command input area
Cmd number
CV-X100 Series[1].
B00 Command execution complete notification
Cmd complete
CV-X100 Series[1].
B01 Command error flag
Cmd error
CV-X100 Series[1].
B02 Command preparation complete
Cmd ready
CV-X100 Series[1].
B03 Acknowledgement complete notification
Result ready
CV-X100 Series[1].
B060 Command execution request
Cmd request
CV-X100 Series[1].
B063 Data read acknowledgement notification
Result ack

* T he above table refers to the case when the leading devices of the CV-X100 Series are set to B00 and W00 in KV STUDIO.
If the leading devices are changed, the assigned device numbers will be changed accordingly.

One point

Store a communication command number for control (see page 16) in the W0F4 (CV-X100 Series[1]. Cmd
number) command input area to control the CV-X100 Series.

One point

Data will also be stored in the W012 (CV-X100 Series[1]. InDat(0048)) result data area when an I/O terminal or
an operating panel is used to perform triggering.
In this case, no program (steps ➊ and ➋) for generating the triggers of the above ladder program (see page
10) is necessary.

11
CV-X200/X100 Series Connection Guide

Step 5 Communication Confirmation

1 Use a LAN cable to connect the KV-7500 to the CV-X100 Series.


KV-7500 CV-X100 Series

STP/UTP cable

2 Check that the “NS” and “LINK” LEDs of the KV-7500 are lit or flashing in green.

One point

The following are possible causes of the KV-7500 “NS” and “LINK” LEDs not being lit in green.
If the “NS” LED is not lit in green
• A setting is incorrect Alternatively, the settings were not transferred correctly.
à Check steps 2 to 4 again.
• IP addresses are duplicated.
àC  heck whether the set IP address is a duplicate of another IP address. If using an
Ethernet switch or a similar device, check whether other equipment with the same
IP address exists.

If the “LINK” LED is not lit or flashing in green


• The LAN cable is broken.
à Replace the LAN cable.
• The KV-7500 or the CV-X200/X100 Series is turned off.
à Turn on both of the devices.

12
CV-X200/X100 Series Connection Guide

3 Turn on @MR0 to confirm the change of the measured value of DM0.

If DM0 is updated each time @MR0 changes from off to on, communication is being performed normally.

If “Decimal Point” is set to “Fixed-point” in the [Global] settings (see page 4), the CV-X100 will multiply the measured value by
1000 before sending the data. In the above example, the actual measured value is 306.012.

13
CV-X200/X100 Series Connection Guide

Extra 1 High-speed Data Transfer Technique

To transfer data between the CV-X200/X100 Series and


the KV-7500 at the maximum speed, set the send trigger KV-7500 CV-X200/X100 Series
to COS (Change Of State). Data will then be transferred
between the KV-7500 and the CV-X200/X100 at the
maximum speed.
A COS (Change Of State)
occurs.

COS (Change Of State)


The CV-X200/X100 Series will send data only when the state RPI (communication cycle)
changes.

* W hen the state remains unchanged, cyclic communication will


be performed under RPI (communication cycle). Parallel data
communication will be performed only when the state changes.

How to configure settings


In the [Connection settings] dialogue box of the EtherNet/IP settings, set the send trigger to “COS(ChangeOfState).”
* Set the RPI (communication cycle) to 20.0 ms or higher.

* It is not necessary to change the settings of the CV-X200/X100 Series.

14
CV-X200/X100 Series Connection Guide

Extra 2 Changing the Data Size

If the amount of measured data of the CV-X200/X100 Series increases and the size of the data transferred to the KV-7500 becomes larger (496 bytes or
more), you can change the size of the data to transfer during cyclic communication.

How to set the CV-X200/X100 Series


Select [Global], [Communications & I/O], and then [EtherNet/IP] to change the data size.

* The cyclic communication data size can be changed to a setting between 248 and 1436 bytes (default: 496 bytes).

How to set the KV-7500


From the [EtherNet/IP settings], display the [Connection settings], click [Setup parameter], and then set the data size.
Set “Input Size” and “Output Size” to the same size as the data size of the cyclic communication of the CV-X200/X100 Series.

15
CV-X200/X100 Series Connection Guide

Extra 3 List of Communication Commands for Controlling the CV-X100 Series

The following commands can be used to switch the trigger input and run state of the CV-X100 Series.

Command list Command number Command list Command number

Trigger 1 1 Write execution condition 41

Trigger 2 2 Read execution condition number 42

Trigger 3 3 Rewrite judgement string 43

Trigger 4 4 Read judgement string 44

Execute all triggers 5 Rewrite judgement condition 45

Run mode transition 8 Read judgement condition 46

Setup mode transition 9 Rewrite damage level 47

Reset 10 Read damage level 48

Restart 11 Enable/disable trigger input 56

Save settings 12 Enable/disable output 57

Clear error 13 Clear statistic data 64

Switch run screen 14 Write statistic data 65

Switch inspection setting 24 Clear history data 66

Read inspection settings 25 Write history image 67

Set shutter speed 32 Capture image 68

Set camera sensitivity 33 Switch output file/folder 69

Set trigger delay 34 Write date/time settings 80

Set lighting volume value 35 Read date/time settings 81

Register reference image (recalculate reference value) 40 Read version info 82

To use the above command numbers, enter them into CV-X100 Series[1]. Cmd number.

One point

For commands that require the command number and parameters such as the switch inspection setting
command, enter the parameters starting with CV-X100 Series[1]. Cmd param1.
In addition, for commands that have multiple return values such as the read inspection settings command,
the result will be output starting at CV-X100 Series[1]. InDat(0048).

One point

There is a command that stops the CV-X200/X100 Series from capturing images.
Pay attention to this fact when using commands from external equipment on a high-speed production line.

16
CV-X200/X100 Series Connection Guide

Extra 4 Vision System Monitor Function

By connecting to a VT5 Series unit, you can display images that have been captured by the vision system controller.
You can also connect a mouse to the USB port on the front of the VT5 Series to check and change the vision system settings.

Connection diagram
Mouse VT5-W10 NE-Q05(P) KV-7500 CV-X200/X100 Series

USB connection
Ethernet connection

When using the vision system monitor function, check that the CV-X200/X100 firmware is version 3.2 or later.

1 Start VT STUDIO, and then place a vision system monitor part.

Click this icon, and then


place the part.

Double-click the part, and then


proceed to step 2 .

2 Select the “Display area size” and the “Display mode,” and then click “Vision system monitor setting.”

You can select the “Display area size” from the options shown below.
• 800 × 600
• 640 × 480
• 400 × 300
• 320 × 240
* “800 × 600” cannot be used on the VT5-W07(M).

Select this check box when you are connecting a mouse to the VT5 Series to operate the CV-X200/
X100 Series. (This is only enabled when the “Display area size” is “800 × 600” or “640 × 480.”)

17
CV-X200/X100 Series Connection Guide

3 Enter the IP address of the CV-X200/X100 Series that you will connect and the monitor number of
the vision system monitor display that you will use.

Setting item Setting value

Connection object quantity 1

Sensor 0 settings

Monitor No. Monitor 0

IP address 192.168.0.20

Controller name Arbitrary value

[When connecting multiple vision systems]


You can register up to 32 CV-X Series units and 32 XG Series units to connect to.
However, you cannot set monitor numbers (0 to 3) such that they overlap between the CV-X Series and XG Series units.

4 Connect the USB cable or the LAN cable to the VT5 Series. Then, select [Send Screen Data from PC
to VT(S)] on the [Communication(C)] menu to transfer the screen data.

One point

The vision system monitor’s dedicated system screen supports the following functions with a dedicated operation panel.
■ Operation panel area ... The following operations, such as switching the screen’s display, are possible.

(1) Connection destination information ... IP address of the vision system whose image is displayed
■ Remote desktop area
(2) Connection destination selection ... Select the connection destination from the vision systems
... Displays the vision system’s monitor
that have been registered for monitoring.
screen or setup screen
(3) Screen display selection ... Switch between the one-screen and four-screen displays.

(4) Search ... Switch to the screen for searching for vision systems connected via Ethernet.

(5) Save Image ... Save an image of the remote desktop area.

You can use the following methods to display the vision system monitor’s dedicated system screen.
A Place a switch to which the “Call up system screen” B Click [Tool] under [System Mode], and then click [Vision
function has been assigned. System Monitoring].
Double-click this.

18
CV-X200/X100 Series Connection Guide

Extra 5 Remote Ethernet Tool

By using a USB cable to connect the touch panel display VT5 Series and the PC, you can send and receive the CV-X200/X100 Series
setting data through the VT5 Series.

Connection diagram

Sending and receiving settings VT5-W10 CV-X200/X100 Series CV-X200/X100 Series

USB connection

CV-X Series Ethernet


simulation software connection

1 Turn on the CV-X200/X100 Series, and then switch the VT5 Series to Run mode.

2 In VT STUDIO, click [Remote Ethernet Tool(E)] on the [Tool(T)] menu to start the remote Ethernet
tool.

3 In the CV-X Series simulator, set the leading byte of the communication destination’s IP address to
“127” and the last three bytes to the actual IP address of the vision system.
Example) If the IP address of the CV-X200/X100 Series is “192.168.0.20,” set the IP address in the simulator to “127.168.0.20.”

4 Send and receive the setting data in the CV-X Series simulator.

One point

• You cannot start two or more remote Ethernet tools at the same time. Also, you can only connect one
VT5 Series unit and the setting software at the same time.
• Use a USB cable to connect the VT5 Series and the PC.

19
www.keyence.com

Copyright (c) 2016 KEYENCE CORPORATION. All rights reserved. KVCVX2/1Setting-WW-AG-GB 1066-1 600J08

You might also like