365GB High-speed, High-capacity Machine Vision System CV-X Series Easy Setup Guide Control/Communication EtherNet/IP (KEYENCE KV Series)
Contents Easy Setup Guide: Control/Communication EtherNet/IP (KEYENCE KV Series) 1. Before Connecting EtherNet/IP Page 3 2. Outputting the Measured Value/Judged Value Page 6 3. Controlling the Controller Page 9 4. Data Allocation Page 15 5. Troubleshooting Page 17 KEYENCE CORPORATION. Vision System Division ‐2‐ www.keyence.
1. Before Connecting EtherNet/IP (EtherNet/IP) [Keyence KV Series] 3 This section describes how to establish EtherNet/IP. 4 [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. From "Global", select "Communications & I/O" "EtherNet/IP". Change the EtherNet/IP settings and then left-click "OK". 1.
6 2. Changing the KV-Series settings 1 2 Start KV STUDIO with the PLC connected to the computer, and select "New project" from the "File" menu. •Drag "CV-X100" from the "Unit list (1)" tab in "EtherNet/IP settings" and drop it into the scan list to add it. •In the "Initial adapter settings" screen that is displayed after start up, enter the CV-100 Series IP Address (192.168.0.10) that was set in the CV-X100 Series global settings. Enter the "Project name", select the "PLC model", and then press "OK".
11 12 Select "Transfer to PLC" from the "Monitor/Simulator" menu in KV STUDIO. Restart both the CV-X100 Series and the KV Series. 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" - "EtherNet/IP" in "Global" on the CV-X100 Series, and checking the "Cyclic Communication Status".
2. Outputting the Measured Value/Judged Value (EtherNet/IP) [Keyence KV Series] 2. Checking the format for output to the byte address, and the relationship between the byte address and the link register (W) Outputting the Measured Value/Judged 1. Setting the output data (Output Settings) 1 Use the output settings to output the measured values and judged values. This section explains how to allocate the measured/judged values below as an example.
3 4 6 From "Global", select "Communications & I/O" "EtherNet/IP", and left-click "Set" in "Data Settings". The "EtherNet/IP Communication Data Structure" screen appears. Left-click "View List" in "Send-Data". The contents that are allocated to the controller send •Judged value OK=0, NG=1 is stored using 2 words. •Decimal fraction data is multiplied by 1000 and stored using 2 words: 124.121 → 124121 •When XY data is output, it is stored in order XY using 2 words each.
KEYENCE CORPORATION. Vision System Division ‐8‐ www.keyence.
3. Controlling the Controller (EtherNet/IP) [Keyence KV Series] 4 Controlling the Controller 1. Checking the Global Settings of the CV-X100 Series 1 2 3 From "Global", select "Communications & I/O" "EtherNet/IP". 5 Click "OK". The changed settings are saved. Restart the controller. Click "Set" in "Data Settings". The "EtherNet/IP Communication Data Structure" screen appears.
KEYENCE CORPORATION. Vision System Division ‐ 10 ‐ www.keyence.
✎ Command Execution Procedure Example Save Settings (SS) Here is an example of a command execution procedure. This section shows an example of executing the SS (Save Settings) command which does not use a command parameter. The screens with blue frames show when the "Registration monitor" function of KV STUDIO is used for confirmation. Check the SS (Save Settings) command operation. 1. Enter "12", the SS command No., in the device corresponding to the PLC Command Number (W0F4 in this example). 2.
✎Command Execution Procedure Example Switch Program Setting No. (PW) Here is an example of a command execution procedure. This section shows an example of executing the PW (Switch Program Setting No.) command which uses command parameters. The screens with blue frames show when the "Registration monitor" function of KV STUDIO is used for confirmation. Check the PW (Switch Program Setting No.) command operation. 1. Enter "24", the PW command No.
✎ Command Execution Procedure Example Rewrite Judgment Conditions (DW) Here is an example of a command execution procedure. This section shows an example of executing the DW (Rewrite Judgment Conditions) command which uses command parameters and specifies integer and fractional values. The screens with blue frames show when the "Registration monitor" function of KV STUDIO is used for confirmation. Check the DW (Rewrite Judgment Conditions) command operation. 1. Enter "45", the DW command No.
✎Command Execution Procedure Example Rewrite Registered String (CW) Here is an example of a command execution procedure. This section shows an example of executing the CW (Rewrite Registered String) command which uses command parameters and specifies a string. The screens with blue frames show when the "Registration monitor" function of KV STUDIO is used for confirmation. Check the CW (Rewrite Registered String) command operation. 1. Enter "43", the CW command No.
4. Data Allocation KEYENCE CORPORATION. Vision System Division ‐ 15 ‐ www.keyence.
KEYENCE CORPORATION. Vision System Division ‐ 16 ‐ www.keyence.
5. Troubleshooting KEYENCE CORPORATION. Vision System Division ‐ 17 ‐ www.keyence.
from [Image First] . KEYENCE CORPORATION. Vision System Division ‐ 18 ‐ www.keyence.
Copyright (c) 2014 KEYENCE CORPORATION. All rights reserved.