KV-X Series × IV4 Series
EtherNet/IP™ Connection Guide
Return to KV Series Connection Guide
Contents
Step 1 : Devices Required for Connection
Step 2 : IV4 Series [EtherNet/IP] Settings
Configure the IV4 Series network settings using the IV Smart Navigator. As an example, this guide describes the procedure to assign the following IP addresses to the PC, KV Series, and IV4 Series. Set an IP address for PC beforehand.
- IP address to be assigned to the PC: (example) 192.168.0.200
- IP address to be assigned to the KV Series: (example) 192.168.0.10 (initial value)
- IP address to be assigned to the IV4 Series: (example) 192.168.0.1
1. Using a LAN cable, connect the PC and the amplifier of the IV4 Series. Start up the IV Smart Navigator, and click [Settings and Operation].
2. Select the IP address of the PC set beforehand for "Network adapter", and click [Search Sensor].
3. The IV4 Series connected with the LAN cable is displayed. Click [Connect], and then click [OK].
4. Set the IP address to be assigned to the IV4 Series. In this example, enter the following values, and click [Connect].
5. The main screen is displayed. Click [Sensor Setup], and adjust the brightness, register the master image, etc. This guide describes the procedure when "Standard Mode" is selected as a mode used for judgment. For details about the sensor settings, refer to the "IV4 Series User’s Manual".
- *When controlling the imaging timing on the KV Series, set the trigger condition to "External Trigger".
6. After the sensor settings are completed, the main screen is displayed again. Click [Sensor Advanced].
7. Open the "Utility" tab, and click [FieldNet/Comm. Unit (DL)]. The [FieldNet/Comm. Unit (DL)] dialog is displayed. Configure the settings as shown below. Click [OK], and then [OK]. The settings are transfered, and the IV4 Series automatically restarts to reflect the settings.
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.
Extra 1 : Memory Mapping
List of parameters that can be obtained in cyclic communication
Since the parameters that can be obtained during cyclic communication are automatically updated between the KV Series and IV4 Series at a constant period, a program for reading and writing data is not required. Each device map in the following cases is shown in the table below.
- - When B000 and W000 are allocated to the leading device of the link devices
- - When W000 (leading device of the link devices) is allocated to variable
IV4 Series → KV Series
- *1When scaling is enabled with the width, diameter, or pitch tool. Data content is 0 with the other tools or when scaling is disabled.
- *2When the pitch or color average tool is used. Data content is 0 when those tools are not used.
- *3When the pitch, color average, or brightness average tool is used. Data content is 0 when those tools are not used.
- *4Data content varies depending on the tool to be used. For details, refer to the IV4 Series User’s Manual.
KV Series → IV4 Series
Extra 2 : Reference Programs
Reading judgment results (handshaking control disabled)
Mnemonic symbol list
LDP xTriggerReq
OR IV4_OUT.TriggerReq
ANB IV4_IN.Common.TriggerResp OUT IV4_OUT.TriggerReq
LD IV4_IN.Common.ResultAvailable
LDP IV4_IN.Common.ResultUpdateComp ORF IV4_IN.Common.ResultUpdateComp ANL
MOV IV4_IN.Tool_Info[#0].MatchRate uiMatchRate
- (1) Turns ON the trigger request, and holds until the trigger response is turned ON.
- (2) Copies the data written to the tool score when the result acquisition possible is turned ON and at the rising or falling of result update completion
One point
Program can be created with a manual-less ladder!
Relay input is possible only by entering some portion of the device comments during entry of operand. (RT edit function)
Time to search for relay numbers is eliminated, leading to the reduction of man hours for program creation.
Reading judgment results (handshaking control enabled)
Mnemonic symbol list
LDP xTriggerReq
OR IV4_OUT.TriggerReq
ANB IV4_IN.Common.TriggerResp OUT IV4_OUT.TriggerReq
LDP IV4_IN.Common.ResultAvailable
MOV IV4_IN.Tool_Info[#0].MatchRate uiMatchRate
LDP IV4_IN.Common.ResultAvailable OR IV4_OUT.ResultAcqComp
AND IV4_IN.Common.ResultAvailable OUT IV4_OUT.ResultAcqComp
- (1) Turns ON the trigger request, and holds until the trigger response is turned ON.
- (2) Copies the data written to the tool score when the result acquisition possible is turned ON.
- (3) Turns ON the result acquisition completion notification when the result acquisition possible is turned ON, and holds until the result acquisition possible is turned OFF.
Switching the program
Mnemonic symbol list
LDP xChangeProgram
MOV uiProgramNo IV4_OUT.ProgramNo
LDP xChangeProgram
OR IV4_OUT.ProgramSwitchReq
ANB IV4_IN.Common.ProgramSwitchResp OUT IV4_OUT.ProgramSwitchReq
- (1) Writes the program number.
- (2) Turns ON the program switching request, and holds until the program switching response is turned ON.
Changing the judgment threshold of tools
Mnemonic symbol list
LDP xChangeThreshold
MOV uiThresSettingNo IV4_OUT.SettingNo MOV.D udiThreshold IV4_OUT.SettingVal
LDP xChangeThreshold
OR IV4_OUT.SettingValChgReq
ANB IV4_IN.Common.SetValChgResp OUT IV4_OUT.SettingValChgReq
- (1) Writes upper/lower threshold setting numbers*1 and upper/lower thresholds.
- (2) Turns ON the setting value change request, and holds until the setting value change response is turned ON.
- *1Upper/lower threshold setting numbers differ depending on the tool number and the type of threshold.
For details, refer to the IV4 Series User’s Manual.
Changing the master text
Mnemonic symbol list
LDP xChangeMasterChar
MOV uiMasterSettingNo IV4_OUT.SettingNo SMOV strMasterChar IV4_OUT.SettingVal
LDP xChangeMasterChar
OR IV4_OUT.SettingValChgReq
ANB IV4_IN.Common.SetValChgResp OUT IV4_OUT.SettingValChgReq
- (1) Writes the master text setting number*1 and master text.
- (2) Turns ON the setting value change request, and holds until the setting value change response is turned ON.
- *1The setting number differs depending on the tool that changes the master text.
For details, refer to the IV4 Series User’s Manual
One point
The IV4 Series handles character strings using the character code UTF-8.
Since the KV Series handles character strings using the character code Shift JIS, character strings that cannot be expressed with the ASCII code cannot be specified.
One point
The default connection setting can change only up to 4 master text at a time.
Changing the connection setting allows 5 or more master text to be changed at a time.
Select [Tool (T)] → [Built-in EtherNet settings (E)] → [EtherNet/IP settings (W)], and open the [EtherNet/IP settings] window. On the [EtherNet/ IP settings] window, right-click the IV4 Series icon, and select [Connection setting (N)].
Click "Setup parameter" and increase the "External Input Size" setting value. Then the number of characters that can be changed at a time can be expanded.