OMRON#Let’s Establish EtherNet/IP Tag Communication Between the NX102-9000 and KV8000!

This article explains step-by-step how to establish EtherNet/IP communication between the OMRON NX102-9000 and the KEYENCE KV8000.

Let’s get started.

Reference Link

Project#Omrn NX-CSG320 x RJ71EIP91 Ethernet/IP Class1 Tag Communication

Tag Communication?

When an EtherNet/IP unit sends data to another scanner, tag configuration is required. However, tag configuration is not required when executing cyclic (I/O) messages only between adapters or when receiving data from another scanner.

In that case, if another scanner opens a connection to the EtherNet/IP unit’s tag configuration data (tag names), the EtherNet/IP unit sends the device data assigned in the tag configuration to the scanner at the configured RPI (communication cycle).

In the KV8000,

  • EtherNet/IP units support tag configuration for up to 256 tags (64 tags for KV-NC1EP) depending on the connection settings.
  • Devices assigned to tags are R, B, DM, W.
  • Up to 8 area devices can be assigned to a single tag.
  • The total data size per tag ranges from 2 to 1448 bytes (1 to 724 words).
  • Only InputOnly can be opened for EtherNet/IP unit tag configuration.

Download EDS File

KV8000

Please download the KV8000 EDS file from this link.

https://www.keyence.co.jp/products/controls/plc-building/kv-8000/downloads/?mode=so&modelId=PM_0848000&o=72

NX102-9000

Please download the EDS file for NX102-9000 from this link.

https://www.fa.omron.co.jp/member/product/tool/44/eds/download.htm

Implementation

KV8000 Side

We will build it from the Keyence side.

Ethernet/IP Setting

Create a new project in KV Studio, click KV-8000, and configure the Ethernet/IP settings.

IP Setting

Select KV8000 and configure the IP address using the IP address in the port settings.

Next, select KV8000 > right-click > click EtherNet/IP Setting.

Register EDS File

To register the EDS file for NX102-9000, click EDS file>Reg.

Please install the EDS file you downloaded earlier from the Omron website.

Done!NX102-9000 has been added.

Add NX102-9000

Add the NX102-9000 to the EtherNet/IP network.

The EtherNet/IP Adapter initial setup screen appears. Set the IP address and proceed by selecting OK.

Configure OMRON Tags

One IP Type connection has been added by default. Click that connection.

Connection Name

The Connection Settings screen appears. This article covers Tag communication, so set the Connection name to Input Only (Tag Type).This tag represents output data from OMRON.

Connection Point

Connection Point becomes the tag name.

Set the Connection Point to MyOmronTags1. This tag name must match the Omron NX102-9000 side, so we will explain how to configure the Sysmac Studio side later.

Setup parameter

Next, click Setup Parameter and configure the Connection parameters.

Set the size of the OMRON communication tag. This must be matched to the OMRON NX102-9000 side, so we will explain how to configure the Sysmac Studio side later.

RPI

Set the update cycle according to your application.

Assign device

Click the Assign Device button and configure the KV8000 internal memory to be linked with the Tag Connection.

Configure the registers according to the application.

Add More tags

Add another communication tag using the same procedure as before.

These are the newly added Input Only Tags.

  • MyOmronTags1
  • MyOmronTags2

The settings are as shown in the figure below.

Configure Tags in KV8000

Next, configure the Ethernet/IP Tag for the KV8000 unit itself. This Tag represents OMRON’s output data. Select the KV8000, right-click, and click Tag setting.

This is the KV8000 tag settings screen.

Add Tags

Click the Add button to add a new tag.

Done!A tag has been added.

Tag name

Change the tag name. This tag name must be matched when configuring the Ethernet/IP connection in Sysmac Studio.

Class3 Tag

Set to Not used (This is only available on the KV8000).

Device assign area

Configure the KV8000 register to associate with the Tag in the Device Assign Area.

Set the first register and size according to the application.

Done!As shown in the figure below, two 20-byte tags have been added.

Result

MyKeyenceTags1 and MyKeyenceTags2 each occupy 20 bytes.

Download

Finally, download the project to KV8000.

OMRON Side

Next, configure the Omron NX102-9000 side.

Global Variable

To define the Global Variables used in this article, configure Data > Data Type > Global Variables.

Define the 4 Word array variables as shown below.

  • MyOmronTags1
  • MyOmronTags2
  • MyKeyenceTags1
  • MyKeyenceTags2

IP Address

To set the IP address of the NX102-9000, open Controller Setup > Built-in EtherNet/IP Port Settings.

Set the IP addresses of Port 1 and Port 2 according to your application.

Configure Ethernet/IP Network

To set up the EtherNet/IP network, click Tools > EtherNet/IP Connection Settings.

Since we are using Port 2 this time, select Port 2 > Edit.

Install EDS File

To add an EDS file, click Sysmac Studio > Display EDS Library and install the EDS file.

Click Install to add the new EDS file.

Add the EDS file downloaded earlier from the Keyence website.

Done!

Register Data

Next, click Registration All to map the variables defined in the project to the EtherNet/IP network.

Add Devices

To add the previously added EtherNet/IP Adapter to the network, click the + button in the Toolbox.

The Node settings screen will be displayed.

Configure the IP address and other settings for the KV8000.

Done!

Next, add the KV8000 to the EtherNet/IP network.

Done!

Conenction

Configure Connection settings as shown in the figure below.

Match the Tag settings in Originator Variables to the KV8000 Tag settings previously configured in KV Studio.

Next, set the Tag name configured in KV Studio for connecting with the NX102-9000 to match the Global Variables in Sysmac Studio.

Don’t forget to match the data sizes as well.

Download

Transfer the EtherNet/IP settings to the Controller. Also, download the project to the CPU main unit.

Result

Done! A success response was received for the Forward Open request.

It was also present in the CIP I/O Message.

Although the figure is a bit small, Tag communication was established between the NX102-9000 and the KV8000.

シェアする

  • このエントリーをはてなブックマークに追加

フォローする