KV-X Series × MP-F Series
EtherNet/IP™ Connection Guide

Return to KV Series Connection Guide

Print this page

Contents

Step 1 : Devices required for connection

MP-F Series

※1 One Ethernet module (MP-FEN1) is required for one unit of MP-F Series.

Step 2 : EtherNet/IP setup for MP-F Series

EtherNet/IP setup for the MP-F Series is configured for MP-FEN1.
The following MP-FEN1 setup methods are available.

(1) Setup from KV STUDIO (*This setup is possible only when the MP-FEN1 is in the default state.)
(2) Setup from the MP-F Series
(3) Setup from the MP-F Monitor, which is MP-F Series software
Use setup method (2) or (3) in states other than the default state, and for the external input setting of the MP-F Series. (For method (3), refer to “One point”)

This manual describes the setup procedure from the KV STUDIO.

1. Open the Unit Editor of KV STUDIO, and click the EtherNet/IP settings icon. A configuration type selection dialog box is displayed. Click [Manual (M)].

*Step 2 is performed when a sensor configuration file needs to be imported. If a sensor configuration file has been already imported, connect KV Series and the sensor device via LAN cable, and click [Auto Configuration (A)] before proceeding to Step 3.

2. The [EtherNet/IP settings] window is displayed. Select [EDS file (D)] ⇒ [Reg (I)] to import the Keyence sensor configuration file for the MP-F Series (ez1 file).

3. With KV Series and the sensor device connected via Ethernet cable, select [File (F)] ⇒ [Auto configuration (S)] on the [EtherNet/IP settings] window.

One point

This section describes the setup procedure on the MP-F Monitor.

- MP-FEN1 and KV Series are connected with LAN cable.
- Power is supplied to MP-FEN1 and KV Series.
- When an Ethernet switch is used, the Ethernet switch is connected to the MP-FEN1 and KV Series with LAN cable, and the power is supplied to the Ethernet switch.

4. When the configuration in 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 Series connected with USB cable, click [Yes (Y)].

When the transfer of the project is completed, the [Search unit settings] dialog is displayed. Then click [Search (F)].
Select the unassigned MP-FEN1 from the search results, and click "Unassigned".
The [IP address setting] dialog box is displayed. Then, set the IP address of the MP-FEN1 to "192.168.0.1" and click [OK].

One point

Clicking in the [IP address setting] dialog box allows IP addresses that have not been used to be searched for.

One point

This section describes the setup procedure on the MP-F Monitor.

1. Connect the PC and MP-F Series using the USB cable (OP-51580: 2 m/OP-86941: 5 m), and connect the MP-F Series and
MP-FEN1 with the dedicated cable. Start the MP-F Monitor, and click [New] - [Connect].
The [Connection type selection] dialog box is displayed. Select "USB connection" and click [OK].

2. Click [Ethernet module] and configure the Ethernet settings of the MP-F Series.
Place a check in "Transfer communication setting" and configure the settings as shown below.

3. Select [Basic settings] and set "Valve control setting" to "External input control".
After the setting is complete, click [Transfer setting], and then click [OK] to transfer the setting contents to the MP-F Series.

*This setting is required to perform valve control from PLC.

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 : Sample ladder to control the shut-off valve

OPEN/CLOSE control of the shut-off valve can be performed on the PLC. This section shows the sample ladder.

*The valve control settingof the MP-F Series needsto be set to "External input control". (See One Point)

1. Put KV STUDIO in Editor Mode. On the Ladder Program, create ladders to control the shut-off valve. With the control setting set to "External input control", this program requests until the valve status is changed.

Mnemonicsymbol list

LDP bOpen
AND gstInput.ValvControlMode[#0] ANB gstInput.ValvControlMode[#1] OR gstOutput.ValveOpen
ANB gstInput.ValveStatus OUT gstOutput.ValveOpen

LDP bClose
AND gstInput.ValvControlMode[#0] ANB gstInput.ValvControlMode[#1] OR gstOutput.ValveClose
AND gstInput.ValveStatus OUT gstOutput.ValveClose

2. Transfer the created program to the PLC.
Select [Monitor/simulator (N)] ⇒ [Transfer to PLC ⇒ Monitor mode (C)] ⇒ [Transfer with PROGRAM Mode (P)], and click [Execute].

3. Set PLC to "RUN".

4. To OPEN using the above program in <KV STUDIO> monitor, set "bOpen" to ON, and to CLOSE, set "bClose" to ON to control the shut-off valve.

One point

⇒ No manual required to create ladders!

A relay number can be input only by entering a partial device comment during operand input. (RT edit function)
Eliminating time to look up relay numbers reduces man-hours to create a program.

Extra : Memory mapping

MP-F Series [EtherNet/IP] setting

The following is the list of parameters that can be exchanged in cyclic communication and message communication.

▶ List of parameters that can be obtained in cyclic communication

Since the parameters that can be obtained in cyclic communication are automatically updated between the KV Series and MP-F Series at a fixed internal, a program for reading and writing data is not required. The following is a device map where B000 and W000 are assigned to the leading device of the MP-F Series link devices.

MP-F Series → KV Series

KVSeries → MP-F Series

▶ List of parameters that can be obtained in message communication

The message communication is a communication method used when data is exchanged at an arbitrary timing such as change of setting values. The message communication requires a ladder program for communication. However, the KV Series enables communication only by using dedicated instruction words (SPWR/SPRD instruction) for communicating with Keyence sensors.

One point

When SRWR (sensor parameter writing instruction) or SPRD (sensor parameter reading instruction) is executed, a specified sensor parameter is written or read.