KV-X Series × ⁨⁩DL-EP1
EtherNet/IP™ Connection Guide

Return to KV Series Connection Guide

Print this page

Applicable models

  • Digital Contact Sensor GT2/GT Series
  • Non-Wetted Electrode, Electromagnetic Flow Sensor FD-MH Series
  • Laser Thrubeam Sensor IG/IB Series
  • CMOS Multi-Function Analog Laser Sensor IL Series
  • Electrostatic Sensor SK Series

Contents

Preface 1 : Sensors That Can Be Connected to the DL-EP1

This section introduces models that can be connected to the DL-EP1.

One point

The DL-EP1 can connect to multiple sensors and these sensors can be of different types.

* There are limits on the maximum number of connected units and the type of units that can be connected at the same time.
See “ Extra 1 Precautions When Using Multiple Sensors”.

Preface 2 : Communication with the DL-EP1

DL-EP1 communication method

The DL-EP1 uses EtherNet/IP communication to transfer data to the PLC. Two communication methods are supported: cyclic communication, in which
communication is performed at a fixed cycle, and message communication, in which communication is performed with arbitrary timing.

Cyclic communication:

With this function, data is communicated between the KV Series and the DL-EP1 at a fixed cycle. This is used when reading parameters such as current values that are very frequently used.

Message communication:

With this function, commands are executed with arbitrary timing to perform communication. This is used when reading and writing parameters such as setting values that do not require punctuality.

Current value, error status, and output status monitoring → Cyclic communication (see Step 1 to Step 3)

Reading and writing detailed parameters such as setting values → Message communication (see Step 1 to Step 5)

One point

When you set the DL-EP1 (see Step 2 ), cyclic communication starts automatically when the cyclic communication settings are configured. To perform message communication, a ladder program (see Step 4 ) is required in addition to the cyclic communication settings.

To perform cyclic communication ➞ Configure the settings from Step 1 to Step 3.

To perform message communication ➞ Configure the settings from Step 1 to Step 5.

Preface 3 : Typical Parameters of Connected Models

Typical parameters and usage examples

This section introduces typical examples of parameters that can be checked with the cyclic communication and message communication of each sensor.
* For the list of cyclic communication/message communication parameters, see “ Extra 2 Parameter List”.

This document introduces an example of connecting the GT2 Series.
* Substitute references to the GT2 Series with the sensor amplifier that you are connecting.

To perform cyclic communication ➞ Configure the settings from Step 1 to Step 3.

To perform message communication ➞ Configure the settings from Step 1 to Step 5.

Step 1 : Checking the Equipment Required for Connection

This guide provides a description on communicating with the KV Series as an example.
If you are using a different unit, replace references to the KV Series with the unit that you are using.

Prepare the following equipment.

Step 2 : DL-EP1 Settings

The following two methods are available for setting the configuration of the DL-EP1.

  • Set the DL-EP1 automatically from the read sensor amplifier information.
  • Set the DL-EP1 by manually selecting the sensor amplifier (see page ”Sensor setting command explanation”).
             ➾ Use this setup method if you cannot prepare an actual device.

The following pages will explain the procedure to set the DL-EP1 automatically.

1. Open the Unit Editor of KV STUDIO.

2. On the KV Series A’s [Setup unit(2)] tab, click for the EtherNet/IP settings.

3. The following dialog will be displayed. Click “Auto Configuration (A)”.

One point

The following conditions are required in order to search for the DL-EP1.

  • The DL-EP1 and the KV Series must be connected by a LAN cable.
  • Both the DL-EP1 and the KV Series must be turned on.
  • If you are using an Ethernet switch, the DL-EP1 and KV Series must both be connected to the Ethernet switch with LAN cables, and the Ethernet switch must be turned on.

4. Click [Search(F)].

5. The unassigned DL-EP1s that were found are displayed.

One point

To clear the assignment of the DL-EP1 IP address, hold down the RST switch on the face of the DL-EP1 for 3 seconds or more. If multiple DL-EP1s are connected and you do not know which IP address corresponds to which DL-EP1, you can use the MAC address written on the DL-EP1 to differentiate the DL-EP1s.

6. Click the IP address, and then set the DL-EP1 IP address to “192.168.0.1” in the [IP address settings] dialog box.

One point

Click in the [IP address settings] dialog box to search for IP addresses that are not in use.

Step 3 : KV-X Series Connection Settings

This section explains how to connect with a fictitious device called "Vendor Series". Replace the "Vender Series" with the device to be connected.

One point

For the KV Series with a CPU function version of 2.0 or later, variables can be assigned to the connection of EtherNet/IP.
When assigning variables to the connection of EtherNet/IP®, check the box of “Displays the variable setting dialog when updating the Ether- Net/IP® settings (E)” for “Other settings” of “System settings” on the “CPU system settings” dialog.
The “CPU system settings” dialog is displayed by selecting [Display (V)] ⇒ [CPU system settings (P)] from the ”KV STUDIO” menu.

When the box of "Displays the variable setting dialog when updating the EtherNet/IP settings (E)" is checked, at the timing when the EtherNet/IP setting is updated and the changed content of the unit editor is confirmed, a dialog to assign variables to the connection is displayed.

1. Start up the KV STUDIO and create a new project. Set the model option to “KV-X520” and click [OK].
A [Confirm unit configuration setting] dialog box is displayed. Click [Yes (Y)].

2. The unit editor is displayed. On the “Setup unit(2)” tab, click the icon of EtherNet/IP setting. A configuration type selection dialog box is displayed. Click [Manual (M)].

3. On the “Unit setting (2)” tab, set the IP address for KV-X Series. In this example, configure the setting as shown below.

* Step 4 needs to be performed to import a sensor setting file. When the sensor setting file has already been imported, proceed to Step 5.

4. Select [EDS file (D)] → [Reg (I)] to import the Keyence sensor setting file(ez1 file) or EDS file.

* Download the sensor setting file from the Keyence website.

5. With the KV-X Series and the EtherNet/IP devices connected using the Ethernet cable, select [File (F)] → [Auto configuration (S)] on the [EtherNet/IP settings] window.

6. When the configuration on the unit editor differs from that of the actual device, a dialog for confirming transfer of the project is displayed. With the PC and KV-X Series connected using the USB cable, click [Yes (Y)].

7. When transfer of the project is completed, the [Search unit settings] dialog is displayed. Then click [Search (F)]. After the auto configuration is completed, "Vendor Series" is automatically registered. Then click [OK] to close the [EtherNet/IP settings] window.

8. Click [OK] on the unit editor to exit.

One point

When the box of "Displays the variable setting dialog when updating the EtherNet/IP settings (E)" is checked, the [EtherNet/IP equipment Variable settings] dialog is displayed.
Enter the name of variable assigned to the connection, and click [OK].

- The way of Device Configuration Settings manually
In the [Unit list (1)] tab of “EtherNet/IP Settings”, drag and drop "Vendor Series" and create a device configuration.

Transferring and Monitoring Setting Data

1. From the menu, select [Monitor/Simulator (N)] > [Transfer to PLC (W) → Monitor mode (C)].
 In the [Send comm. cmd. to PLC] dialog box, click [Execute(E)].

2. If the following dialog box is displayed before and after transferring the data, click [Yes] both times.

3. Right-click on “Vender Series” in the workspace, and select [Sensor IO monitor (M)].
 Scores and other information can be easily monitored.

One point

The information can also be checked on a graph by starting up the real time chart monitor.
Right-click on “Sensor I/O monitor” and select [Real time chart monitor (H)].

Range adjustment is not required since the real time chart monitor performs scaling automatically.

When Manipulating Parameters with a Program
Changing the Setting Values

The setting values of the sensors can be changed by the following two methods:
A : Change from a PC
B : Change from a ladder program

A : Change from a PC

To change the settings from a PC, use the transmission adapter function in KV STUDIO.

1. Expand the unit configuration in the workspace. Right-click on "Vender Series" and select [Transmission adapter settings (A)].

2. Place a check mark in Setting Value for "Vender Series" and enter the setting value.
 Click [Write adapter (W)] to write the setting value to the sensor.

*To read the setting value of a sensor, select [Read adapter (R)].

B : Changed from a ladder program

Use message communication to change the setting values from a ladder program.

To perform message communication with KV STUDIO, use the sensor setting commands (SPWR [sensor parameter write] and SPRD [sensor parameter read]).

1. In Editor mode, create a ladder program as shown below.

* For the parameter numbers, refer to Parameter list.

2. Transfer the ladder program.

3. When MR100 is turned on, the setting value is changed.

* Store the setting value in DM4 ([Leading device to store results] + 4).

One point

RT (Real-Time) Edit function

When you use a ladder program, you can input device comments or parameter names directly to have input candidates be searched for and displayed automatically.

Step 4 : Message Communication Settings

If you are only reading or writing current values then message communication is not necessary and there is no need to perform the procedure outlined in the Step4~Step5.

1. If you are in monitor mode, switch to editor mode.

2. Use the SPWR (sensor parameter write) command to write the following ladder program. Example) When MR100 turns on, the GT2 Series HI setting value changes to 1000.

List of mnemonics

LDP MR100
MOV #1000 DM104 LDP MR100
SPWR #0 #1 #1 #833 DM100 LD DM100.0
AND DM100.1 MOV DM101 DM0 MOV DM102 DM1

* For an explanation of the SPWR command, see One point.

Flow of the above ladder program

Store the value to write (#1000) into the setting value (DM104).
Write the setting value (#1000) into the KV Series (unit number: #0), the node 1 DL-EP1 (node address: #1), the slot 1 GT2-71N (slot number: #1), and the HI setting value (parameter number: #833).
If the execution of the SPWR (sensor parameter write) command fails, the completion code and the detailed completion code are stored in DM0 and DM1.

One point

Sensor setting command explanation

If you execute the SPWR (sensor parameter write) command or the SPRD (sensor parameter read) command, the specified sensor parameter is written or read, respectively.

3. Transfer the setting data and then switch to monitor mode. When MR100 is turned on, 1000 is written to the GT2 Series HI setting value.

If DM100.0 (the SPWR completion bit) turns on and DM100.1 (the SPWR execution failure bit) is off after MR100 turns on, the parameter have been written correctly. Also, if the writing operation fails, DM100.1 (the SPWR execution failure bit) turns on, and the completion code and detailed completion code are stored in DM0 and DM1, respectively. (The completion code for normal writing is “0.”)
* For details on the completion codes, see “7-8 Completion Codes” in the “EtherNet/IP Function User’s Manual.”

Step 5 : Checking Values Changed by Message Communication

Message communication can be used to check whether the GT2-71N's HI setting value has been properly set to a value of 1000. The following two methods are available for checking whether the setting value has been applied to the GT2-71N.

Check the GT2-71N sensor amplifier directly.
Use the adapter setting transfer function in KV STUDIO to read the “setting value on the HIGH side of bank 0.”

Check the GT2-71N sensor amplifier directly.

* For details on how to display the HIGH-side setting value on the sensor amplifier, see the GT2 Series manual.

Use the adapter setting transfer function in KV STUDIO to read the “setting value on the HIGH side of bank 0.”

1. Expand the unit configuration in the workspace. Right-click the GT2-71*/75*, and then click [Transmission adapter settings(A)].

2. Select the “Bank 1 HIGH setting” check box for the GT2-71*/75*.

3. On the Transmission adapter settings screen, click [Read adapter(R)] on the [Communication(T)] menu to read the setting value.

Extra 1 : Precautions When Using Multiple Sensors

You can connect the DL-EP1 to multiple sensor amplifiers that are the same or different series.

However, when using multiple sensor amplifiers, you have to pay attention to the maximum number of connected units and to the compatibility between different types of units.

Maximum number of units that can be connected to the DL-EP1

* Up to 11 sensor heads can be connected to the GT2-100N(P) by expanding 1 main unit with an expansion board.

Compatibility between different types of sensor amplifiers connected to the DL-EP1

  • The “✓” mark indicates that the combination of different types of sensor amplifiers can be connected to the DL-EP1.
  • The “×” mark indicates that the combination of different types of sensor amplifiers cannot be connected to the DL-EP1.

* Note that connecting different types of sensor amplifiers may change the functional limitations and the maximum number of connected units. For details, see the DL-EP1 manual or contact your nearest KEYENCE office.

Extra 2 : Parameter List

Parameter lists for the cyclic communication and message communication of the connectable sensors are shown below.

* For details on the parameters, see the sensor amplifier manuals.

Cyclic communication parameter list

Message communication parameter list

* n: Bank number; leading number of parameter number + 5 × n