Question: Creating Tags and Tag Sets with the Network Configurator’s Device Parameter Editing Function

Answer:
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-25
6-2
Setting
Tag
Data
Links
6
6-2-4
Creating
Tags
and
Tag
Sets
6 Tag Data Link Functions


Question: Importing Variables with a Network Publish Attribute Created in the Sysmac Studio to the Network

Answer:
Configurator
(1) Creating Tags and Tag Sets with the Network Configurator's De-
vice Parameter Editing Function
 Creating a Tag Set
1
Double-click the icon of the device for which to create a tag set to display the Edit Device
Parameters Dialog Box. Or, right-click the icon to display the pop-up menu, and select
Parameter – Edit.
2
Click the Tag Sets Tab at the top of the Edit Device Parameters Dialog Box.
There are two kinds of tag sets: input (consume) and output (produce).
6-26 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
 Creating and Adding Tags
1
Click the Edit Tags Button.
The Edit Tags Dialog Box is displayed. Register input (consume) tags and output (produce)
tags separately.
2
Click the In - Consume Tab, and then click the New Button.
The Edit Tag Dialog Box is displayed.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-27
6-2
Setting
Tag
Data
Links
6
6-2-4
Creating
Tags
and
Tag
Sets
6 Tag Data Link Functions
3
Enter the variable name directly into the Name Box. (Example: Var_In_a)
Additional Information
• You can use the following characters in tag names.
0 to 9, A to Z, a to z, single-byte kana, _ (underbar), and multi-byte characters (e.g., Japa-
nese)
• You cannot use the following characters in tag names.
! “ # $ & ‘ ( ) * + ‚ - . / : ; < = > ? @ [ ] ^ ‘ % spaces or text strings that start with numerals (0 to
9)
• The maximum length of a tag name is 255 bytes.
• Specify array variables, structure variables, and union variables, if any, as shown below.
• Specifying array elements
Example: array [2][3] (or array [2,3]) and array [2][3][4] (or array [2,3,4])
• Specifying structure members
Example: Struct.member (Separate the member name with a period.)
• Specifying union members
Example: Union.member (Separate the member name with a period.)
6-28 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Precautions for Correct Use
NX502 CPU Unit, NX102 CPU Unit, NX1P2 CPU Unit, and NJ-series CPU Unit
• To specify an I/O memory address for a tag, create a variable with an AT specification of the
I/O memory address on the Sysmac Studio, and then specify the variable with the AT specifi-
cation for the tag.
For NX102 and NX1P2 CPU Units, you need to set memory used for CJ-series Unit to use
the I/O memory address. For details on memory settings used for CJ-series Unit, refer to the
NJ/NX-series CPU Unit Software User's Manual (Cat. No. W501).
• If you enter the following I/O memory addresses for tag names on the Network Configurator,
the tags are directly assigned to the I/O memory addresses in the CPU Unit, and not to the
variables. Always specify variable names for tags.
a) Variable names that contain only single-byte numerals from 0000 to 6143
b) Variable names with the following single-byte letters (uppercase or lowercase) followed
by single-byte numerals
• H (H000 to H511)
• W (W000 to W511)
• D (D00000 to D32767)
• E0_ to E18_ (E0_00000 to E0_32767, to E18_00000 to E18_32767)
You can check the memory address or variable to which a tag is assigned, with icons in the
Edit Tags Dialog Box.
Tag that is directly assigned to an I/O memory address
Tag that is assigned to a variable with a Network Publish attribute
NX701 CPU Unit
• If you apply the notation that specifies the above I/O memory address for a tag name, a Tag
Name Resolution Error occurs. A tag data link will not be started.
4
Input the size of the tag in bytes in the Size Field.
Specify the tag size to be the same as the data type size of the variable.
To use a BOOL variable, select the Use Bit Data Check Box, and enter 1 in the Size Field.
5
Click the Regist Button to register the tag.
If an I/O memory address is specified as the tag name, another Edit Tag Dialog Box will be
displayed with the next address as the tag name so that you can register the next tag consecu-
tively.
After you register the tags, click the Close Button.
6
Click the Out - Produce Tab, and then click the New Button.
The Edit Tag Dialog Box is displayed. Input output tags in the same way.
In case a major fault occurs in the CPU Unit, use the Fault Action setting of the output (pro-
duce) tag to select whether to clear output data or continue to send data.
The Fault Action setting is not required for input (consume) tag sets.
• Retain output after major fault: Hold (default)
Output data maintains its previous status even after a major fault occurs.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-29
6-2
Setting
Tag
Data
Links
6
6-2-4
Creating
Tags
and
Tag
Sets
6 Tag Data Link Functions
• Clear output at major fault: Clear
Output data is cleared to 0 when a major fault occurs.
Select the Hold or Clear Option.
Precautions for Correct Use
Connections are cut off if any of the following errors occurs in the CPU Unit that is the originator
while tag data links are active.
• Major fault level Controller error
• Partial fault level Controller error
7
After you register all of the required tags, click the OK Button in the Edit Tags Dialog Box.
Precautions for Correct Use
Make the following settings to refresh all of the tag data in one tag set at the same time.
• Use the Sysmac Studio, in advance, to specify the same refreshing task for all of the varia-
bles that are assigned to tags in the tag set.
• Do not place tag variables that have AT specifications in I/O memory and tag variables that
do not have AT specifications in the same tag set.
6-30 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
8
At this point, a confirmation dialog box is displayed to check whether the registered tag names
are used as the tag set names. A tag set can contain up to eight tags, but tag sets are regis-
tered with one tag per tag set if the tag names are registered as tag set names. In this case,
click the Yes Button.
If the No Button is clicked, you can add more tags to the tag set. Refer to step 8 in Changing
and Registering Tag Sets for details on how to register new tags first and add more tags to the
tag set later.
 Changing and Registering Tag Sets
1
The following dialog box is displayed when the tags in the Edit Tags are registered directly as
tag sets.
2
If an input tag is already registered in an input tag set, and you want to change its registration
to a different input tag set, it is necessary to delete the tag from the tag set in which it was origi-
nally registered.
Open the Edit Device Parameters Dialog Box, select the tag set containing the tag that you
want to delete on the Tag Sets Tab Page, and click the Delete Button. (If there are other tags
registered in the tag set, it is possible to delete just one tag by selecting the tag that you want
to delete in the Edit Tag Set Dialog Box and clicking the Button.)
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-31
6-2
Setting
Tag
Data
Links
6
6-2-4
Creating
Tags
and
Tag
Sets
6 Tag Data Link Functions
A confirmation message is displayed.
If the No Button is clicked, only the selected tag set is deleted. Click the No Button.
3
To edit a registered tag set and add tags, either double-click the tag set, or select the tag set
and click the Edit Button.
The Edit Tag Set Dialog Box is displayed.
The Tag List on the left side of the dialog box shows tags that are already registered, and the
Candidate Tag List on the right side of the dialog box shows the other tags that are not regis-
tered yet.
6-32 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
To add a tag, select it in the Candidate Tag List and click the Button.
4
To include the Controller status in the tag set, select the Include Option for the Controller
Status at the upper-right corner of the Edit Tag Set Dialog Box.
5
To confirm the change, click the OK Button in the Edit Tag Set Dialog Box.
6
Click the OK Button in the Edit Device Parameters Dialog Box.
7
If you want to just add a new tag and register it in an existing tag set, first register the new tag
by following steps 1 in Creating a Tag Set to 7 in Creating and Adding Tags. In this example,
input tags, Var_In_e and Var_In_f, are newly added.
8
After you register the tags, click the OK Button in the Edit Tags Dialog Box.
9
At this point, a confirmation dialog box is displayed to check whether you want to use the regis-
tered tag names as tag set names. They are supposed to be added as tags in this case, so
click the No Button. Then, the tags are registered just as tags but not as tag sets.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-33
6-2
Setting
Tag
Data
Links
6
6-2-4
Creating
Tags
and
Tag
Sets
6 Tag Data Link Functions
10
To register the newly added tags in an existing tag set, either double-click the desired tag set,
or select the tag set and click the Edit Button.
The Tag List on the left side of the dialog box shows tags that are already registered in the tag
set, and the Candidate Tag List on the right side of the dialog box shows the other tags that are
not registered yet.
11
Select the tags that you want to add from the Candidate Tag List and click the Button.
You can register up to eight tags in a tag set. (If you include the Controller status in the tag set,
you can register up to only seven tags, and two bytes are added to the size.)
Tag data is sent and received in the order of tags displayed in the tag list. To change the order
of tag data, select a tag and click the or Button.
6-34 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
12
To confirm the change, click the OK Button in the Edit Tag Set Dialog Box.
13
Click the OK Button in the Edit Device Parameters Dialog Box.
(2) Importing Variables with a Network Publish Attribute Created in
the Sysmac Studio to the Network Configurator
You can create network variables in the Sysmac Studio and import these variables to the Network
Configurator to assign them to tags and tag sets. Use the following procedure.
 Exporting Global Variables on the Sysmac Studio
1
Create a global variable on the global variable table of the Sysmac Studio and select Input or
Output for the Network Publish attribute of the variable.
2
Select Export Global Variables - Network Configurator... from the Tools Menu.
Any global variables with Input or Output set for the Network Publish attribute are imported
from the csv file through the import procedure described below ( Importing to the Network Con-
figurator).
 Importing to the Network Configurator
Precautions for Correct Use
Variables with a Network Publish attribute that have variable names that are the same as the
I/O memory address notation, such as, "0000" and "H0000" are not exported to CSV files.
• Variable names that contain only single-byte numerals (Example: 001)
• Variable names with the following single-byte letters (uppercase or lowercase) followed by
single-byte numerals
• H (Example: H30)
• W (Example: w30)
• D (Example: D100)
• E0_ to E18_ (Example: EA_100)
1
From the devices registered on the Network Configurator, select and double-click the icon of
the device for which you want to import the variable with a Network Publish attribute. Then, the
Edit Device Parameters Dialog Box is displayed.
Or, right-click the icon to display the pop-up menu, and select Device - Parameter - Edit.
2
Click the Tag Sets Tab at the top of the Edit Device Parameters Dialog Box. Select Import
from File from the To/From File Button.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-35
6-2
Setting
Tag
Data
Links
6
6-2-4
Creating
Tags
and
Tag
Sets
6 Tag Data Link Functions
To import all variables with a Network Publish attribute, click the Yes Button. To import only
some of these variables, click the No Button.
After you import the variables to the tags, click the Yes Button to automatically create tag sets,
or click the No Button to set up tag sets manually.
If you select the Yes Button in the previous step, the variables will be imported as shown below
on the Tag Sets Tab Page. Each variable will be imported into a separate tag set and the de-
vice parameters will be automatically edited. (The variable name will be used for the tag set
name.)
6-36 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
To place more than one input variable (input tag) imported from the Sysmac Studio into one tag
set, you must delete the input tags that were registered.
Select the tag set containing the variables you want to put into a tag set, then click the Delete
Button. A message box is displayed to confirm that you want to delete the selected tag set and
the tags contained in that tag set. You only want to delete the tag set, so click the No Button.
Click the New Button to create a new tag set. To place more than one tag in an existing tag set,
double-click the tag set, or select it and click the Edit Button.
The Edit Tag Set Dialog Box is displayed. Imported tags that are not registered in another tag
set are displayed in the Candidate Tag List on the right side of the Edit Tag Set Dialog Box.
Click the Button to add tags individually.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-37
6-2
Setting
Tag
Data
Links
6
6-2-4
Creating
Tags
and
Tag
Sets
6 Tag Data Link Functions
3
You can change tag set names in this dialog box. To confirm a change, click the Regist Button
in the Edit Tag Set Dialog Box.
4
Perform steps 1 to 3 for all the devices to which tag data links are made to import variables and
to create tag sets.
6-2-5 Connection Settings
After you create the tag sets, click the Connections Tab at the top of the Edit Device Parameters
Dialog Box, and set the following connection information.
• The target devices and tag sets with which connections are opened
• The connection type (multicast or unicast)
• The length of the packet intervals (RPI)
• Connection name (optional)
Make the connections settings on the originator only. The connections settings are not necessary on
the target device.
Precautions for Correct Use
Make the connections settings after you create tag sets for all of the devices involved in tag da-
ta links.
Connection Settings (Connections Tab Page)
 Registering Devices in the Register Device List
1
Double-click the icon of the device for which to make originator settings in the Network Config-
uration Pane of the Network Configurator. The Edit Device Parameters Dialog Box is dis-
played. Or, right-click the icon to display the pop-up menu, and select Parameter – Edit.
2
Click the Connections Tab in the Edit Device Parameters Dialog Box.
All of the devices registered in the network (except the local node) are displayed.
6-38 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
3
In the Unregister Device List, click the target device that requires connection settings so its
color changes to gray, and click the Button.
The selected target device is displayed in the Register Device List, as shown below.
4
Target node IDs are assigned to the devices that are registered in the Register Device List.
The target node ID serves as the bit array position for the following variables in the originator
Controller: Target Node Controller Mode, Target Node Controller Error Information, Target
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-39
6-2
Setting
Tag
Data
Links
6
6-2-5
Connection
Settings
6 Tag Data Link Functions
Node Error Information, Registered Target Node Information, and Normal Target Node Informa-
tion. By default, the target ID is automatically set to the rightmost 8 bits of the IP address. In
the example above, the target device's IP address is 192.168.250.2, so the target node ID is
#002. If a target node ID is duplicated and you want to change the target node ID, click the
Change Target Node ID Button and change the target ID.
 Editing Settings for Individual Connections
You can edit each connection separately.
Refer to Editing Settings for All Connections on page 6-42 for information on how to edit all the
connections in a table format.
1
Click the Connections Tab and then the click the New Button.
The following Edit Connection Dialog Box is displayed according to the type of device that is
selected.
• (A) Using Built-in EtherNet/IP Ports as Targets (for Input Only)
• (B) Using Other EtherNet/IP Devices as Targets (for Settings Other Than Input Only)
6-40 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
The settings are as follows:
Setting Description
Connection I/O Type Select Input Only (Tag type) to use tag data links with a CS1W-EIP21,
CS1W-EIP21S, CJ1W-EIP21, CJ1W-EIP21S, CJ2B-EIP21*1, CJ2M-
EIP21*2, CJ1W-EIP21 (CJ2)*3, CJ1W-EIP21 (NJ)*4, CJ1W-EIP21S
(CJ2)*5, CJ1W-EIP21S (NJ)*6, NX701, NX502-££££, NX102-££££,
NX1P2, NJ501-££££, NJ301-££££, or NJ101 CPU Unit.
When you create tag data links for other devices, select the connection
I/O type specified in that device's EDS file.
Use the Input Only (ID type) setting when another company’s node is
the originator and does not support connection settings with a Tag type
setting.
Connection Type Select whether the data is sent in multicast or unicast (point-to-point)
form. The default setting is multicast.
• Multi-cast connection:
Select when the same data is shared by multiple nodes. This setting is
usually used.
• Point-to-point connection:
Select when the same data is not shared by multiple nodes. In a uni-
cast transmission, other nodes are not burdened with an unnecessary
load.
Refer to 6-1-4 Overview of Operation on page 6-7 for details on using
multi-cast and unicast connections, and counting the number of connec-
tions.
The Connection Structure Area and the following items are not displayed if the Hide Detail Button is
clicked.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-41
6-2
Setting
Tag
Data
Links
6
6-2-5
Connection
Settings
6 Tag Data Link Functions
Setting Description
Packet Interval (RPI) Set the data update cycle (i.e., the packet interval) of each connection
between the originator and target.
The default setting is 50 ms (i.e., data is updated once every 50 ms).
• NX701 CPU Unit:
Set the RPI between 0.5 and 10,000 ms in 0.5-ms increments.
• NX502 CPU Unit and NX102 CPU Unit:
Set the RPI between 1 and 10,000 ms in 1-ms increments.
• NX1P2 CPU Unit:
Set the RPI between 2 and 10,000 ms in 0.5-ms increments.
• NJ-series CPU Unit:
Set the RPI between 1 and 10,000 ms in 1-ms increments.*7
Timeout Value Set the time elapsed until a connection timeout is detected. The timeout
value is set as a multiple of the packet interval (RPI) and can be set to 4,
8, 16, 32, 64, 128, 256, or 512 times the packet interval.
The default setting is 4 times the packet interval (RPI).
Connection Name Set a name for the connection. (32 single-byte characters max.)
*1. Built-in EtherNet/IP port in CJ2H-CPU6£-EIP CPU Unit
*2. Built-in EtherNet/IP port in CJ2M-CPU££ CPU Unit
*3. CJ1W-EIP21 mounted to CJ2 CPU Unit
*4. CJ1W-EIP21 mounted to NJ-series CPU Unit
*5. CJ1W-EIP21S mounted to CJ2 CPU Unit
*6. CJ1W-EIP21S mounted to NJ-series CPU Unit
*7. For a CPU Unit with unit version 1.02 or earlier, you can set the RPI between 10 and 10,000 ms in
1-ms increments.
2
After you make all of the settings, click the OK Button.
 Editing Settings for All Connections
You can edit the connection settings between the originator and all of the target devices selected in
the Register Device List together in a table.
1
Click the Connections Tab, and then click the Edit All Button.
The following Edit All Connections Dialog Box is displayed.
The settings are as follows:
6-42 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Setting Description
Target Device Select the target device.
Connection Name Any name can be given to the connection. (32 single-byte characters
max.)
If this field is left blank, a default name is assigned.
The connection name is used as a comment.
Connection I/O Type Select Input Only (Tag type) to use tag data links with a CS1W-EIP21,
CS1W-EIP21S, CJ1W-EIP21, CJ1W-EIP21S, CJ2B-EIP21*1, CJ2M-
EIP21*2, CJ1W-EIP21 (CJ2)*3, CJ1W-EIP21 (NJ)*4, CJ1W-EIP21S
(CJ2)*5, CJ1W-EIP21S (NJ)*6, NX701, NX502-££££, NX102-££££,
NX1P2, NJ501-££££, NJ301-££££, or NJ101 CPU Unit.
When you create tag data links for other devices, select the connection
I/O type specified in that device's EDS file.
Use the Input Only (ID type) setting when another company’s node is the
originator and does not support connection settings with a Tag type set-
ting.
In/Out The connection's I/O is automatically displayed based on the selected
connection.
Input Only: Just In is displayed.
Target Variable Select the target node's tag set to assign.
• In: Select the target's output (produce) tag set.
• Out: Select the target's input (consume) tag set.
Originator Variable Select the originator node's tag set to assign.
• In: Select the originator's input (consume) tag set.
• Out: Select the originator's output (produce) tag set.
Connection Type Select whether the data is sent in multi-cast or unicast (point-to-point)
form. The default setting is multi-cast.
• Multi-cast connection:
Select when the same data is shared by multiple nodes. This setting is
usually used.
• Point-to-point connection:
Select when the same data is not shared by multiple nodes. In a unicast
transmission, other nodes are not burdened with an unnecessary load.
Refer to 6-1-4 Overview of Operation on page 6-7 for details on using mul-
ti-cast and unicast connections, and counting the number of connections.
RPI Set the data update cycle (i.e., the packet interval) of each connection be-
tween the originator and target.
The default setting is 50 ms (i.e., data is updated once every 50 ms).
• NX701 CPU Unit:
Set the RPI between 0.5 and 10,000 ms in 0.5-ms increments.
• NX502 CPU Unit and NX102 CPU Unit:
Set the RPI between 1 and 10,000 ms in 1-ms increments.
• NX1P2 CPU Unit:
Set the RPI between 2 and 10,000 ms in 0.5-ms increments.
• NJ-series CPU Unit:
Set the RPI between 1 and 10,000 ms in 1-ms increments.*7
Timeout Value Set the time elapsed until a connection timeout is detected. The timeout
value is set as a multiple of the packet interval (RPI) and can be set to 4,
8, 16, 32, 64, 128, 256, or 512 times the packet interval.
The default setting is 4 times the packet interval (RPI).
*1. Built-in EtherNet/IP port in CJ2H-CPU6£-EIP CPU Unit
*2. Built-in EtherNet/IP port in CJ2M-CPU££ CPU Unit
*3. CJ1W-EIP21 mounted to CJ2 CPU Unit
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-43
6-2
Setting
Tag
Data
Links
6
6-2-5
Connection
Settings
6 Tag Data Link Functions
*4. CJ1W-EIP21 mounted to NJ-series CPU Unit
*5. CJ1W-EIP21S mounted to CJ2 CPU Unit
*6. CJ1W-EIP21S mounted to NJ-series CPU Unit
*7. For a CPU Unit with unit version 1.02 or earlier, you can set the RPI between 10 and 10,000 ms in
1-ms increments.
2
After you make all of the settings, Click the OK Button.
 Confirming the Connection Settings
1
An overview of the connections that were set in the Register Device List is displayed in the
Connections Tab Page.
2
Click the OK Button. The following figure is displayed.
Indicates the IP address of the
originator where the connection
was set.
3
Repeat the connections setting procedure until all of the connections are set.
6-44 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Precautions for Correct Use
After you have made all of the settings, always click the OK Button before you close the Edit
Device Parameters Dialog Box. If the Cancel Button is clicked and the dialog box is closed, all
the settings you made here are discarded.
4
If you change the size of a tag set for the originator or a target node after the connection set-
tings, a parameter data mismatch will occur due to the size difference between them.
if you change the connection settings, be sure to check the connections. (Refer to
6-2-16 Checking Connections on page 6-80 for details.)
Automatically Setting Connections (Network - Auto Connection)
You can use automatic detection of the tag set names that are set for devices to automatically set con-
nections between input and output tag sets with the same name (or the same names excluding speci-
fied ellipses).
Connections are automatically set under the following conditions.
Output tag set names for connec- Except for specified ellipses, the output tag set name must be the same as
tion setting the input tag set name.
Ellipses can be set for the beginning or end of tag set names.
Input tag set names for connection Except for specified ellipses, the input tag set name must be the same as
settings the output tag set name.
Ellipses can be set for the beginning or end of tag set names.
Connection type The connection I/O type must be Input Only.
Multicast or unicast connections can be specified for a connection.
RPI The default setting is used.
Timeout The default setting is used.
Example 1: Automatic Connections with the Same Tag Set Names
The following connections are automatically set with the same tag set name (A_Signal) if there is an
output (produce) tag set named A_Signal at node A, and input (consume) tag sets named A_Signal at
nodes B and C.
Node A Excluded characters: None Node B Node C
Output tag set: A_Signal Connection Input tag set: A_Signal Input tag set: A_Signal
Connection
EtherNet/IP
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-45
6-2
Setting
Tag
Data
Links
6
6-2-5
Connection
Settings
6 Tag Data Link Functions
Example 2: Automatic Connections with the Ellipses
The following connections are automatically set with the same tag set name (Signal) if there is an out-
put (produce) tag set named O_Signal at node A, and input (consume) tag sets named I_Signal at no-
des B and C, and O_ and I_ are set as forward ellipses.
Node A Excluded characters: O_ and I_ Node B Node C
Output tag set: O_Signal Connection Input tag set: I_Signal Input tag set: I_Signal
Connection
EtherNet/IP
1
Set the same tag set names for the output and input tag sets for the connection. The tag set
names can also include forward and backward ellipses.
2
Select Auto Connection Configuration from the Network Menu.
A dialog box will appear to set forward and backward ellipses for both output and input tag sets
as soon as automatic connection setting processing starts.
Input the ellipses and click the OK Button. Processing for automatic setting is started.
3
If there are tag sets that meet the conditions for automatic connection setting, they are dis-
played.
6-46 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Click the OK Button. Processing for automatic setting is started.
4
A device connection structure tree is displayed when processing is completed.
5
Use the device connection structure tree to change the RPI and timeout settings if necessary.
Device Connection Structure Tree
Connection settings can be displayed on the network configuration.
Select View Device’s Connection Structure Tree from the Network Menu.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-47
6-2
Setting
Tag
Data
Links
6
6-2-5
Connection
Settings
6 Tag Data Link Functions
• You can check the Display the detail of Connection Check Box to switch between device-level
and connection-level views of tag data link communications.
• An asterisk is displayed after the device name of the originator set for the connection.
• The Edit Device Parameters Dialog Box is displayed if you select a connection and click the Edit
Button. You can edit the connections in this dialog box.
6-2-6 Creating Connections Using the Wizard
You can use the Network Configurator's Wizard to easily create connections between OMRON PLCs
following the instructions provided by the Wizard.
6-48 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Additional Information
The Wizard can be used only with the following OMRON EtherNet/IP devices.
Device name Remarks
CJ1W-EIP21 (NJ) CJ1W-EIP21 mounted to NJ-series CPU Unit*1
CJ1W-EIP21 CJ1W-EIP21 mounted to CJ1 CPU Unit
CJ1W-EIP21 (CJ2) CJ1W-EIP21 mounted to CJ2 CPU Unit
CJ1W-EIP21S (NJ) CJ1W-EIP21S mounted to NJ-series CPU Unit*2
CJ1W-EIP21S CJ1W-EIP21S mounted to CJ1-series CPU Unit
CJ1W-EIP21S (CJ2) CJ1W-EIP21S mounted to CJ2-series CPU Unit
CJ2B-EIP21 Built-in EtherNet/IP port in CJ2H-CPU6£-EIP CPU Unit
CJ2M-EIP21 Built-in EtherNet/IP port in CJ2M-CPU££ CPU Unit
CS1W-EIP21 CS1W-EIP21 mounted to CS1 CPU Unit
CS1W-EIP21S CS1W-EIP21S mounted to CS1-series CPU Unit
NX701 Built-in EtherNet/IP port on NX-series CPU Unit
NX502-££££
NX102-££££
NX1P2
NJ501-££££ Built-in EtherNet/IP port on NJ-series CPU Unit
NJ301-££££
NJ101
*1. The CJ1W-EIP21 can be mounted to the NJ-series CPU Unit in the following combinations.
• CJ1W-EIP21: Unit version 2.1 or later
• NJ-series CPU Unit: Unit version. 1.01 or later
• Sysmac Studio: Version 1.02 or higher
*2. The CJ1W-EIP21S can be mounted to the NJ-series CPU Unit in the following combinations.
• CJ1W-EIP21S: Lot. number: 241001£ or later
• NJ-series CPU Unit: Unit version 1.67 or later
• Sysmac Studio: Version 1.60 or higher
Use the following procedure to create connections (i.e., tag data links) with the Wizard.
1
Set tags and tag sets for all the devices before starting the Wizard. Refer to 6-2-4 Creating
Tags and Tag Sets on page 6-25 for the setting procedure.
2
For tag data links between OMRON PLCs, a connection is created in the PLC (i.e., the origina-
tor device) that receives data as input data. First, select the registered device for which you
want to create a connection in the Network Configuration Window of the Network Configurator,
and then select Device - Parameters - Wizard from the menu.
The following message box will be displayed before the Wizard starts.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-49
6-2
Setting
Tag
Data
Links
6
6-2-6
Creating
Connections
Using
the
Wizard
6 Tag Data Link Functions
Click the Yes Button to delete the connections that are set with OMRON PLCs before starting
the Wizard.
3
Create the connection following the instructions that are given by the Wizard after the Wizard
starts. (See the following figure.)
4
A list of tag sets is displayed on the right side of the Wizard with target devices that support
receiving input data.
Select the tag sets that you want to receive at the originator device.
The following table describes the meanings of the icons and check marks displayed in the tag
set list.
Display posi-
Icon Status
tion
All All output tag sets for all devices are selected.
Device All output tag sets for the applicable device are selected.
Tag set The applicable output tag sets are selected. These are the tag
sets that will be set in the connection.
All All or some output tag sets for some devices are selected.
Device Some output tag sets for applicable devices are selected.
All All output tag sets for all devices are not selected.
Device All output tag sets for applicable devices are not selected.
Tag set The applicable output tag sets are not selected. The connections
for this tag set will be deleted.
Device No applicable tag sets.
NoteTag sets used in connections that are already set are not displayed.
The following display will appear when you click the Show Detail Button.
6-50 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
The preset values for detailed parameters will be displayed. Change the values as required.
The connection name cannot be set. They are automatically created using the following
rule.
default_N (where N is a 3-digit number (001, 002, etc.) starting from 1)
5
Click the Next Button to switch to the table in the following Wizard Dialog Box. Follow the in-
structions to select the input tag set of the originator device that receives the output tag set of
the target device from the list box.
• The blank area in the Input Tag Set Column is for the connection that you are creating.
• For the connections that are already set, values are already given in the Input Tag Set Col-
umn.
• To prevent duplicate settings, input tag sets that are used are not displayed in the list box for
input tag sets.
• If there is no applicable input tag set, you can edit a tag set or create a new one by using the
Edit Tag Sets Button and the Edit Tag Button.
6
Once the input tag set settings are completed, click the Finish Button. You can check the set
connection by selecting Network - View Devices Connection Structure Tree from the menu.
• The Wizard can be ended even if the input tag set includes a blank row. In that case, a con-
nection is not created for the blank row.
• You can delete a connection by deleting the input tag sets that were previously set.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-51
6-2
Setting
Tag
Data
Links
6
6-2-6
Creating
Connections
Using
the
Wizard
6 Tag Data Link Functions
6-2-7 Creating Connections by Dragging and Dropping Devices
You can create a connection to the originator by dragging a target device and dropping it at the origi-
nator device.
Example) Drag the target device at 192.168.250.1 and drop it at the originator device at


Answer:
Drag & Drop
Additional Information
The EtherNet/IP originator device (i.e., a device in which connections can be set) must be one
of the following OMRON EtherNet/IP devices.
Device name Remarks
CJ1W-EIP21 (NJ) CJ1W-EIP21 mounted to NJ-series CPU Unit*1
CJ1W-EIP21 CJ1W-EIP21 mounted to CJ1 CPU Unit
CJ1W-EIP21 (CJ2) CJ1W-EIP21 mounted to CJ2 CPU Unit
CJ1W-EIP21S (NJ) CJ1W-EIP21S mounted to NJ-series CPU Unit*2
CJ1W-EIP21S CJ1W-EIP21S mounted to CJ1-series CPU Unit
CJ1W-EIP21S (CJ2) CJ1W-EIP21S mounted to CJ2-series CPU Unit
CJ2B-EIP21 Built-in EtherNet/IP port in CJ2H-CPU6£-EIP CPU Unit
CJ2M-EIP21 Built-in EtherNet/IP port in CJ2M-CPU££ CPU Unit
CS1W-EIP21 CS1W-EIP21 mounted to CS1 CPU Unit
CS1W-EIP21S CS1W-EIP21S mounted to CS1-series CPU Unit
NX701 Built-in EtherNet/IP port on NX-series CPU Unit
NX502-££££
NX102-££££
NX1P2
NJ501-££££ Built-in EtherNet/IP port on NJ-series CPU Unit
NJ301-££££
NJ101
*1. The CJ1W-EIP21 can be mounted to the NJ-series CPU Unit in the following combinations.
• CJ1W-EIP21: Unit version 2.1 or later
• NJ-series CPU Unit: Unit version. 1.01 or later
• Sysmac Studio: Version 1.02 or higher
*2. The CJ1W-EIP21S can be mounted to the NJ-series CPU Unit in the following combinations.
• CJ1W-EIP21S: Lot. number: 241001£ or later
• NJ-series CPU Unit: Unit version 1.67 or later
• Sysmac Studio: Version 1.60 or higher
Use the following procedure to create connections (i.e., tag data links) by dragging and dropping devi-
ces.
6-52 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
1
Set the tags and tag sets for the target device that will be dragged.
• Refer to 6-2-4 Creating Tags and Tag Sets on page 6-25 for information on the settings if the
target is one of the OMRON EtherNet/IP devices given above.
• If the target is another EtherNet/IP device, refer to the manual of that device and perform
settings as required.
2
A dialog box as in the following figure for connection allocation will be displayed when you drag
the target device and drop it at the OMRON EtherNet/IP device.
• Using One of the Above OMRON EtherNet/IP Devices As Target
Select an output tag set from the Target Device Area on the right side of the Edit
Connection Dialog Box, and then select an input tag set to receive the output tag set in the
Originator Device Area on the left.
• If there is no applicable input tag set at the originator, you can create a new one by using
the Edit Tag Sets Button and the Edit Tag Button.
• Using Other EtherNet/IP Devices as Target
The Connection I/O Type list box in the upper part of the Edit Connection Dialog Box lists
connection I/O types. Select a connection I/O type according to your application.
• The connection I/O types that can be selected depend on the target device.
• Items that can be selected depend on the connection I/O type that is selected.
• Select the output, input, or both output and input tag sets at the target and specify the cor-
responding input, output, or both input and output tag sets at the originator.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-53
6-2
Setting
Tag
Data
Links
6
6-2-7
Creating
Connections
by
Dragging
and
Dropping
Devices
6 Tag Data Link Functions
• If there is no applicable tag set at the originator, you can create a new one by using the
Edit Tag Sets Button and the Edit Tag Button.
The following view will appear when you click the Show Detail Button.
The specified values for detailed parameters will be displayed. Change the values as required.
Connection names are automatically created using the following rule.
default_N (where N is a 3-digit number (001, 002, etc.) starting from 1)
Additional Information
The following dialog box will be displayed if a target device that does not have I/O data is drop-
ped.
Before dropping again, refer to the manual of the applicable device and create the I/O data (i.e.,
output tag sets) required to create a connection.
3
After you complete the settings, click the Regist Button to create the connection. When the
connection is completed, the input tag set box and the output tag set box will be blank. You can
continue to create another connection by selecting a next connection I/O type and setting a tag
set.
6-2-8 Connecting the Network Configurator to the Network
This section describes how to connect the Network Configurator to the network.
Precautions for Correct Use
Connection may not be possible if the following settings are made on an NJ/NX-series Control-
ler on the connection path or on a connection destination NJ/NX-series Controller. If connection
fails, check the following settings. For the details on the settings, refer to CIP Message Server
on page 4-21 and Packet Filter on page 4-8.
• The Do not use Option is selected for the CIP message server.
• The Use Option is selected for Packet Filter.
6-54 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Additional Information
Although NX502 CPU Units, NX102 CPU Units, and NX701 CPU Units provide two EtherNet/IP
ports, the Network Configurator treats these two ports as two different Units and connects them
individually.
Connecting through Ethernet
Connect to the built-in EtherNet/IP port on the CPU Unit via an Ethernet switch.
Precautions for Correct Use
The first time you connect via Ethernet with Windows XP (SP2 or higher), Windows Vista, or
Windows 7, you must change the Windows firewall settings.
For the procedure, refer to A-4 Precautions for Using the Network Configurator on Windows XP,
Windows Vista, or Windows 7 or Higher on page A-46.
1
Select Option - Select Interface - Ethernet I/F.
2
Select Network - Connect.
If there are multiple Ethernet interfaces on the computer, the Select Interface Dialog Box is
displayed. Select the interface to connect, and press the OK Button.
The following dialog box is displayed.
3
Click the OK Button.
Select the network to connect to.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-55
6-2
Setting
Tag
Data
Links
6
6-2-8
Connecting
the
Network
Configurator
to
the
Network
6 Tag Data Link Functions
The Network Configurator will connect to the EtherNet/IP network. If the Network Configurator
goes online normally, On-line is displayed in the status bar at the bottom of the window.
The network connection icon is displayed in blue on the Network Tab Page in which the Net-
work Configurator is connected.
Network connection icon
Select Network - Change Connect Network to switch the connected network.
4
The following dialog box is displayed.
6-56 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
5
Click the OK Button.
Select the network to connect to.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-57
6-2
Setting
Tag
Data
Links
6
6-2-8
Connecting
the
Network
Configurator
to
the
Network
6 Tag Data Link Functions
Additional Information
If the following dialog box appears in the Network Configurator when you go online with an
NJ/NX-series CPU Unit, refer to the following table for possible causes and corrections.
Assumed cause Correction
The cable is not connected cor- Check if the cable is disconnected or loose.
rectly.
Connection with the Controller is If connection with the Controller is blocked due to the firewall set-
blocked due to the firewall set- tings, disable the blocking.
tings. For the firewall settings, refer to A-4 Precautions for Using the Net-
work Configurator on Windows XP, Windows Vista, or Windows 7 or
Higher on page A-46.
Communications with Network Allow communications with Network Configurator.
Configurator are blocked due to For details on Packet Filter settings, refer to Packet Filter on page
Packet Filter of the Controller. 4-8.
The server function of CIP mes- Enable the server function of CIP message communications. Refer
sage communications is disa- to CIP Message Server on page 4-21 for details on setting CIP mes-
bled. sage server.
Connections through CPU Unit’s USB Port
Use the following procedure to connect to the built-in EtherNet/IP port via the USB port on the CPU
Unit.
Precautions for Correct Use
NX701 CPU Units with hardware revision A or later and NX502, NX102, and NX1P2 CPU Units
do not support connections via USB port.
1
Select the communications interface.
Select Option - Select Interface - NJ/NX Series USB Port.
2
Select Network - Connect.
The following dialog box is displayed.
6-58 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
3
Select TCP:2 and then click the OK Button.
The following dialog box is displayed.
4
Select the network to connect and click the OK Button.
The Network Configurator will connect to the EtherNet/IP network. If the Network Configurator
goes online normally, On-line is displayed in the status bar at the bottom of the window.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-59
6-2
Setting
Tag
Data
Links
6
6-2-8
Connecting
the
Network
Configurator
to
the
Network
6 Tag Data Link Functions
Additional Information
If the following dialog box appears in the Network Configurator when you go online with an
NJ/NX-series CPU Unit, refer to the following table for possible causes and corrections.
Assumed cause Correction
The cable is not connected cor- Check if the cable is disconnected or loose.
rectly.
Connection with the Controller is If connection with the Controller is blocked due to the firewall set-
blocked due to the firewall set- tings, disable the blocking.
tings. For the firewall settings, refer to A-4 Precautions for Using the Net-
work Configurator on Windows XP, Windows Vista, or Windows 7 or
Higher on page A-46.
The USB driver is not installed Install the USB driver correctly.
correctly. For how to install the USB driver, refer to the Sysmac Studio Version
1 Operation Manual (Cat. No. W504).
The server function of CIP mes- Enable the server function of CIP message communications. Refer
sage communications is disa- to CIP Message Server on page 4-21 for details on setting CIP mes-
bled. sage server.
Direct Connection via Ethernet to Built-in EtherNet/IP Port
Use the following procedure to directly connect to a built-in EtherNet/IP port on an NJ/NX-series CPU
Unit via Ethernet.
You can connect to the built-in EtherNet/IP port even if the IP address is not set on the computer.
1
Select the communications interface.
Select Option - Select Interface - NJ/NX Series Ethernet Direct I/F.
2
Select Network - Connect.
The Select Interface Dialog Box is displayed if there are several CPU Units that you can con-
nect to.
6-60 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
3
Select the Interface Card to connect and click the OK Button.
When you select one of the options listed as CPU Unit model (IP number), the following dia-
log box is displayed.
4
Select TCP:2 and then click the OK Button.
The following dialog box is displayed.
5
Select the network to connect to.
The Network Configurator will connect to the EtherNet/IP network. If the Network Configurator
goes online normally, On-line is displayed in the status bar at the bottom of the window.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-61
6-2
Setting
Tag
Data
Links
6
6-2-8
Connecting
the
Network
Configurator
to
the
Network
6 Tag Data Link Functions
Additional Information
If the following dialog box appears in the Network Configurator when you go online with an
NJ/NX-series CPU Unit, refer to the following table for possible causes and corrections.
Assumed cause Correction
The cable is not connected cor- Check if the cable is disconnected or loose.
rectly.
Connection with the Controller is If connection with the Controller is blocked due to the firewall set-
blocked due to the firewall set- tings, disable the blocking.
tings. For the firewall settings, refer to A-4 Precautions for Using the Net-
work Configurator on Windows XP, Windows Vista, or Windows 7 or
Higher on page A-46.
6-2-9 Downloading Tag Data Link Parameters
To make tag data links, you must download tag data link parameters, such as tag set settings and con-
nection settings, to all devices in the EtherNet/IP network.
When the download operation is executed, the tag data link parameters are transferred to the Ether-
Net/IP devices that require the settings.
The following procedure shows how to download the tag data link parameters.
For details on how to connect to the network from the Network Configurator, refer to 6-2-8 Connecting
the Network Configurator to the Network on page 6-54.
6-62 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Precautions for Correct Use
• If the node addresses (IP addresses) are not set correctly, you may connect to the wrong
Controller and set incorrect device parameters. Download data only after you confirm that
you are connected to the correct Controller.
• If incorrect tag data link parameters are set, it may cause equipment to operate unpredictably.
Even when the correct tag data link parameters are set, make sure that there will be no effect
on equipment before you transfer the data.
• When network variables are used in tag settings, a connection error will result if the variables
are not set in the CPU Unit. Before downloading the tag data link parameters, check to con-
firm that the network variables are set in the CPU Unit. Check whether the network variable,
tag, and connection settings are correct on the Connection Tab Page and the Tag Status
Tab Page as described in 15-2-1 The Network Configurator's Device Monitor Function on
page 15-3.
• If a communications error occurs, the output status depends on the specifications of the de-
vice being used. When a communications error occurs for a device that is used along with
output devices, check the operating specifications and implement safety countermeasures.
• The built-in EtherNet/IP port is automatically restarted after the parameters are downloaded.
This restart is required to enable the tag set and connection information. Before you down-
load the parameters, make sure that restarting the port will not adversely affect the controlled
system.
• Make sure that the major CIP revision of the device registered with the Network Configurator
is the same as the major CIP revision of the CPU Unit that you use. If the major CIP revisions
are not the same, the parameters may not be downloaded. To determine whether download-
ing is possible, refer to 6-2-3 Registering Devices on page 6-23.
• Do not disconnect the Ethernet cable or reset or turn OFF the power to the EtherNet/IP Unit
during the parameter download.
• Tag data links (data exchange) between relevant nodes are stopped during a download. Be-
fore you download data in RUN mode, make sure that it will not adversely affect the control-
led system.
Also implement interlocks on data processing in ladder programming that uses tag data links
when the tag data links are stopped or a tag data link error occurs.
• For EtherNet/IP Units with revision 1, you can download tag data link parameters only when
the CPU Unit is in PROGRAM mode.
• Even for Units with revision 2 or later, all CPU Units must be in PROGRAM mode to down-
load the parameters if any Units with revision 1 are included in the network.
1
Connect the Network Configurator to the network.
2
There are two ways to download the parameters.
• Downloading to All Devices in the Network
Select Network - Download.
The following dialog box is displayed.
• Downloading Individually to Particular Devices
Select the icon of the EtherNet/IP Unit to which you want to download. To select multiple no-
des, hold down the Shift Key or the Ctrl Key while you click the icons. (In the following exam-
ple, 2 nodes are selected: 192.168.250.1 and 192.168.250.2.)
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-63
6-2
Setting
Tag
Data
Links
6
6-2-9
Downloading
Tag
Data
Link
Parameters
6 Tag Data Link Functions
Right-click the icon to display the popup menu, and select Parameter - Download.
The following dialog box is displayed.
3
Click the Yes Button to download the tag data link parameters to the EtherNet/ IP Unit.
The following dialog box is displayed if any of the CPU Units is not in PROGRAM mode.
If the Download after changed to Program mode Button is clicked, all CPU Units are
changed to PROGRAM mode and the parameters are downloaded. Confirm safety for all con-
trolled equipment before you change the CPU Units to PROGRAM mode. You can restore the
operating modes after the parameters are downloaded.
You can click the Download with Current mode Button to download the parameters even
when one or more CPU Units is in RUN mode.
The Download with Current mode Button is disabled if the EtherNet/IP Unit does not support
the Download with Current mode Button (e.g., revision 1 of CJ1W-EIP21 or CS1W-EIP21).
6-64 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
During the download, the following progress indicator is displayed to show the progress of the
download.
If the operating mode of one or more CPU Units was changed to download the parameters,
you can return the CPU Units to the previous operating modes. If the No Button is clicked, the
CPU Units remain in PROGRAM mode.
4
The following dialog box is displayed to show that the download was completed.
6-2-10 Uploading Tag Data Link Parameters
You can upload tag data link parameters (such as tag set settings and connection settings) from Ether-
Net/IP devices in the EtherNet/IP network.
The following procedure shows how to upload the parameters. For details on how to connect to the
network from the Network Configurator, refer to 6-2-8 Connecting the Network Configurator to the Net-
work on page 6-54.
Precautions for Correct Use
• Make sure that the major CIP revision of the device registered with the Network Configurator
is the same as the major CIP revision of the NJ/NX-series CPU Unit that you use. If the major
CIP revisions are not the same, the parameters may not be uploaded. To determine whether
uploading is possible, refer to 6-2-3 Registering Devices on page 6-23.
There are two ways to upload the parameters.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-65
6-2
Setting
Tag
Data
Links
6
6-2-10
Uploading
Tag
Data
Link
Parameters
6 Tag Data Link Functions
Uploading from All Devices in the Network
1
Connect the Network Configurator online, and then select Upload from the Network Menu.
2
The following dialog box is displayed.
• Clicking the Yes Button:
The tag data link parameters in the current project are uploaded.
• Clicking the No Button:
You open a new project to upload the tag data link parameters. The current project is closed.
• Clicking the Cancel Button:
The upload operation is canceled. The upload is not performed.
3
If you click the Yes Button in step 2, the following dialog box is displayed.
• Clicking the Yes Button:
Parameters are uploaded only from the devices registered in the Network Configuration
Pane. Parameters are not uploaded from devices that are not registered in the Network Con-
figuration Pane.
• Clicking the No Button:
Performing a Batch Upload over the Network
Parameters are uploaded from all devices on the network.
The current Network Configuration Information will be lost.
The following dialog box will be displayed. Select the devices for which to upload parameters
and click the OK Button.
6-66 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
• Clicking the Cancel Button:
The upload operation is canceled. The upload is not performed.
4
If you click the No Button in step 2, the following dialog box is displayed.
Select the devices for which to upload parameters and click the OK Button.
Uploading Individually from Particular Devices
1
Connect the Network Configurator to the network.
Select the icon of the EtherNet/IP Unit from which you want to upload parameters. To select
multiple nodes, press and hold the Shift Key or the Ctrl Key while you select additional icons.
(In the following example, 2 nodes are selected: 192.168.250.1 and 192.168.250.2.)
Right-click the icon to display the pop-up menu, and select Parameter - Upload.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-67
6-2
Setting
Tag
Data
Links
6
6-2-10
Uploading
Tag
Data
Link
Parameters
6 Tag Data Link Functions
2
The following dialog box is displayed.
Click the Yes Button or the No Button.
3
During the upload, the following progress indicator is displayed to show the progress of the up-
load.
4
The following dialog box is displayed to show that the upload was completed.
6-2-11 Verifying Tag Data Link Parameters
Tag data link parameters (such as tag set settings and connection settings) can be compared with the
parameters of the built-in EtherNet/IP ports in the EtherNet/IP network.
6-68 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
The following procedure shows how to compare the parameters. For details on how to connect to the
network from the Network Configurator, refer to 6-2-8 Connecting the Network Configurator to the
Network on page 6-54.
Precautions for Correct Use
• Make sure that the major CIP revision of the device registered with the Network Configurator
is the same as the major CIP revision of the NJ/NX-series CPU Unit that you use. If the major
CIP revisions are not the same, the parameters may not be compared. To determine whether
comparison is possible, refer to 6-2-3 Registering Devices on page 6-23.
Verifying the Network Configuration
You can use the following procedure to compare the list of registered devices in the Network Configu-
ration Pane with the devices connected on the EtherNet/IP network, and check the IP addresses and
device types.
This function does not verify device parameters.
1
Connect the Network Configurator to the network.
2
Select Network - Verify Structure.
The following progress indicator is displayed to show the progress as data is read from the net-
work and compared.
3
The result of the comparison between the network configuration file and data from the network
is displayed as shown below.
• Differences Not Found in the Comparison
• Differences Found in the Comparison
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-69
6-2
Setting
Tag
Data
Links
6
6-2-11
Verifying
Tag
Data
Link
Parameters
6 Tag Data Link Functions
• Differences Found in the Device Type
Click the OK Button or the Close Button.
Verifying the Device Parameters
Use the following procedure to compare the device parameters for the devices selected in the Network
Configuration Pane with those of the devices connected on the EtherNet/IP network.
The IP addresses, device types, and device parameters are compared.
1
Connect the Network Configurator to the network.
2
Click the icon of the built-in EtherNet/IP port to verify. To select multiple nodes, press and hold
the Shift Key or the Ctrl Key while you select additional icons. (In the following example, 2 no-
des are selected: 192.168.250.1 and 192.168.250.2.)
Right-click the icon to display the pop-up menu and select Parameter - Verify.
6-70 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
3
The following dialog box is displayed.
Click the Yes Button or the No Button.
4
The following dialog box is displayed.
• Differences Not Found in the Comparison
• Differences Found in the Comparison
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-71
6-2
Setting
Tag
Data
Links
6
6-2-11
Verifying
Tag
Data
Link
Parameters
6 Tag Data Link Functions
• Differences Found in the Device Type
Click the OK Button or the Close Button.
5
If multiple nodes have been selected and compared, the following message is displayed. Click
the Yes Button.
The comparison results are displayed in order of the selected nodes.
6-2-12 Starting and Stopping Tag Data Links
This section describes the procedure for starting/stopping tag data links. For details on how to connect
Network Configurator to a network, refer to 6-2-8 Connecting the Network Configurator to the Network
on page 6-54.
Automatically Starting Tag Data Links
Tag data links are automatically started immediately after the data link parameters are downloaded
from the Network Configurator.
6-72 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
(They are automatically started after the CPU Unit's power is turned ON or the Unit is restarted.)
Additional Information
With a CPU Unit with unit version 1.04 or later that operates as the originator device, a Tag
Data Link Connection Timeout error will occur if a connection is not established with the target
device within one minute after the tag data links are started.
Even after this error occurs, reconnection processing is continued periodically until automatic
recovery is performed.
If the application environment allows you to ignore this error, such as when a target device is
started later than the originator device, you can change the event level to the observation level.
Starting and Stopping Tag Data Links for the Entire Network
You can start and stop tag data links for the entire network from the user program or from the Network
Configurator.
Precautions for Correct Use
Use the same method (i.e., either the user program or the Network Configurator) to both start
and stop tag data links.
For example, if you use the _EIP_TDLinkStopCmd (Tag Data Link Communications Stop
Switch) system-defined variable stop tag data links, you cannot start them from the Network
Configurator.
 Using Commands in the User Program
You can start and stop tag data links on a device basis by changing the values of the following sys-
tem-defined variables from FALSE to TRUE in the user program. (Refer to Section 3 System-de-
fined Variables Related to the Built-in EtherNet/IP Port on page 3-1.)
• NX701 CPU Unit, NX502 CPU Unit, and NX102 CPU Unit:
You can individually start and stop tag data links for each built-in EtherNet/IP port.
• Tag data links start/stop operation switch for built-in EtherNet/IP port 1
_EIP1_TDLinkStartCmd (CIP Communications1 Tag Data Link Communications Start Switch)
_EIP1_TDLinkStopCmd (CIP Communications1 Tag Data Link Communications Stop Switch)
• Tag data links start/stop operation switch for built-in EtherNet/IP port 2
_EIP2_TDLinkStartCmd (CIP Communications2 Tag Data Link Communications Start Switch)
_EIP2_TDLinkStopCmd (CIP Communications2 Tag Data Link Communications Stop Switch)
• NX1P2 CPU Unit:
_EIP1_TDLinkStartCmd (CIP Communications1 Tag Data Link Communications Start Switch)
_EIP1_TDLinkStopCmd (CIP Communications1 Tag Data Link Communications Stop Switch)
• NJ-series CPU Unit:
_EIP_TDLinkStartCmd (Tag Data Link Communications Start Switch)
_EIP_TDLinkStopCmd (Tag Data Link Communications Stop Switch)
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-73
6-2
Setting
Tag
Data
Links
6
6-2-12
Starting
and
Stopping
Tag
Data
Links
6 Tag Data Link Functions
Additional Information
• Change the Tag Data Link Communications Start Switch to TRUE, while the Tag Data Link
Communications Stop Switch is FALSE.
If the Tag Data Link Communications Stop Switch is TRUE, the tag data links do not start
even if the Tag Data Link Communications Start Switch is changed to TRUE.
Furthermore, if the Tag Data Link Start Switch and the Tag Data Link Stop Switch are both
TRUE, an error occurs, the Multiple Switches ON Error system-defined variable changes to
TRUE, and the event is recorded in the event log.
• After you start the tag data links, do not force the Tag Data Link Communications Start Switch
to change to FALSE from the user program or from the Sysmac Studio. It will change to
FALSE automatically.
 Using the Network Configurator
You can select I/O Connection - Start or Stop from the Network Menu to start and stop tag data
links for individual devices.
Starting and Stopping Tag Data Links for Individual Devices
 Using the Network Configurator
You can start and stop tag data links on a device basis (at the originator) by selecting Monitor from
the Device Menu and performing the following operation in the Connection Tab Page in the
Monitor Device Dialog Box.
When using an NX701 CPU Unit, NX502 CPU Unit, or NX102 CPU Unit, you can start and stop tag
data links for each of the built-in EtherNet/IP port 1 and 2 connected to the Network Configurator.
Start Connection Button:
Starts all connections for which the device is the originator.
Stop Connection Button:
Stops all connections for which the device is the originator.
6-74 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
6-2-13 Clearing the Device Parameters
You can clear the tag data link settings (or return them to their factory settings) that are saved in the
registered EtherNet/IP device.
The following shows how to clear tag data link parameters. For details on how to connect to the net-
work from the Network Configurator, refer to 6-2-8 Connecting the Network Configurator to the Net-
work on page 6-54.
Precautions for Correct Use
For a CPU Unit with Unit Version 1.10 or Later
• Use the Network Configurator version 3.58 or higher to perform the following procedure to
clear the tag data link settings.
• If you perform the following procedure from the Network Configurator version 3.57 or lower,
the tag data link settings are not cleared. Refer to Additional Information in this section for the
procedure to clear the tag data link settings from the Network Configurator version 3.57 or
lower.
1
Connect the Network Configurator to the network.
2
Select the icon of the device from which you want to clear the device parameters.
In the following example, two nodes are selected: 192.168.250.1 and 192.168.250.2. To select
multiple nodes, press and hold the Shift Key while you select additional icons.
3
Select Device - Reset.
You can also right-click the icon and select Reset from the pop up menu.
4
The following dialog box is displayed.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-75
6-2
Setting
Tag
Data
Links
6
6-2-13
Clearing
the
Device
Parameters
6 Tag Data Link Functions
• If you click the Yes Button:
The following dialog box is displayed.
Restart the device.
Clear the tag data link settings and restart
the device.
NOTE : The Controller will not be restarted.
Select the Initialize tag data link configuration, and then emulate cycling power Option,
and then click the OK Button.
Precautions for Correct Use
The Controller is not restarted. Only the built-in EtherNet/IP port is reset.
• If you click the No Button:
The tag data link settings will not be cleared and the built-in EtherNet/IP port will not be re-
set.
Additional Information
You can also execute the Reset service of the Identity Object for the CPU Unit to clear the tag
data link settings. The procedure to execute the service from the Network Configurator is given
below.


Question: Select Tool - Setup Parameters in the main window.

Answer: Then the dialog box for the general parameter settings are displayed.


Question: Specify the target device and message to send.

Answer:
• Target Node Address : Enter the IP address of the target device.
• Service : Select Reset.
• Class : Enter 01.
• Instance : Enter 01.
• Attribute : Enter 00.
• Data : Enter 02*1.


Question: Click the Send Button.

Answer:
*1. For a CPU Unit with unit version 1.09 or earlier, specify 01.
6-76 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
6-2-14 Saving the Network Configuration File
You can save device parameters set in the Network Configurator or device parameters uploaded from
the network in a network configuration file.
1
Select File - Save As.
The following dialog box is displayed.
Untitled.nvf is displayed as the default file name.
2
Input the file name, and then click the Save Button.
This completes the network configuration file save operation.
3
When the network configuration is changed later, you can overwrite the existing network con-
figuration file if you select File - Save, or click the Button.
4
You can select the Select target network Check Box in the Option Area to select and save
only the required network configuration files from the existing multiple files.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-77
6-2
Setting
Tag
Data
Links
6
6-2-14
Saving
the
Network
Configuration
File
6 Tag Data Link Functions
Select the check boxes of the networks to save and click the OK Button.
6-2-15 Reading a Network Configuration File
You can read out a previously saved network configuration file into the Network Configurator.
1
Select File - Open, or click the Button.
The following dialog box is displayed.
6-78 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
If the network configuration file that you want to read out is not displayed, change to another
folder.
2
If you select the network configuration file that you want to read out, that file name is displayed
in the File name Field.
3
Click the Open Button to read out the network configuration file.
4
The Network Configurator's Title Bar will display the name of the file that was read out.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-79
6-2
Setting
Tag
Data
Links
6
6-2-15
Reading
a
Network
Configuration
File
6 Tag Data Link Functions
5
Select options in the Option Area as necessary.
The options are listed below.
Setting Description
Select target network Allows you to select specific networks from the network configura-
tion and open them.
Add to current document Allows you to add the networks from the network configuration file
that is currently open to the current configuration file.
Additional Information
The save format will depend on the version of the Network Configurator. You can import config-
uration files (*.ncf) created with the Network Configurator for EtherNet/IP (version 2 or lower) if
you select External Data - Import from the File Menu.
6-2-16 Checking Connections
You can check the consistency of connection parameters for network configuration files with device
parameters that were set with the Network Configurator or device parameters uploaded from the net-
work.
1
Select Check Connection from the Network Menu.
The following dialog box is displayed if parameters are normal.
The following dialog box is displayed if there are parameter errors. Check the displayed details
and review the settings.
6-80 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
If an inconsistency is found, open the originator’s Edit Device Parameter Dialog Box and click
the Connection Tab. The inconsistent connection in the Register Device List is displayed
with a icon (instead of the normal icon).
To change the connection setting and select a different target variable, select the connection as
shown below and click the Edit Button.
icon (normally )
6-2-17 Changing Devices
You can change devices that are registered in a network configuration with the Network Configurator.
Select Change Device from the Device Menu to display a list of the possible devices to change.
You can change a device only when there is complete or upward compatibility with the device.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-81
6-2
Setting
Tag
Data
Links
6
6-2-17
Changing
Devices
6 Tag Data Link Functions
Device Changes
Model after change
NX- CS1W- CS1W CJ1W- CJ1W- CJ1W CJ1W- CJ1W CJ1W CJ2B- CJ2M
Model be- EIP20 EIP21 - EIP21 EIP21 - EIP21 - - EIP21
CIP
fore 1 EIP21 (CJ2) EIP21 (NJ) EIP21 EIP21
Rev.
change S S S S (NJ)
(CJ2)
Rev 2 Rev 3 Rev 4 Rev 3 Rev 3 Rev 4 Rev 3 Rev 4 Rev 4 Rev 3 Rev 2
NX-EIP201 Rev 2 --- No No No r2/6/7 No r2/4/7 r2/6/ r2/4/ r2/6/ r2/4/7
7 7 7
CS1W- Rev 3 No --- Yes Yes Yes Yes r5 Yes r5 Yes r3
EIP21
CS1W- Rev 4 No Yes --- Yes Yes Yes r5 Yes r5 Yes r3
EIP21S
CJ1W- Rev 3 No Yes Yes --- Yes Yes r5 Yes r5 Yes r3
EIP21
CJ1W- Rev 3 r5 r1 r1 r1 --- r1 r5 Yes r5 Yes r3
EIP21
(CJ2)
CJ1W- Rev 4 No Yes Yes Yes Yes --- r5 Yes r5 Yes r3
EIP21S
CJ1W- Rev 3 Yes r1/2 r1/2 r1/2 r2 r1/2 --- r2 Yes r2 r2/6
EIP21 (NJ)
CJ1W- Rev 4 r5 r1 r1 r1 Yes r1 r5 --- r5 Yes r3
EIP21S
(CJ2)
CJ1W- Rev 4 Yes r1/2 r1/2 r1/2 r2 r1/2 Yes r2 --- r2 r2/6
EIP21S
(NJ)
CJ2B- Rev 3 r5 r1 r1 r1 Yes r1 r5 Yes r5 --- r3
EIP21
CJ2M Rev 2 r5 r1 r1 r1 Yes r1 r5 Yes r5 Yes ---
NJ501 Rev 1 No r1/2 r1/2 r1/2 r2 r1/2 Yes r2 Yes r2 r2/6
NJ301 Rev 2 Yes r1/2 r1/2 r1/2 r2 r1/2 Yes r2 Yes r2 r2/6
NJ101 Rev 2 Yes r1/2 r1/2 r1/2 r2 r1/2 Yes r2 Yes r2 r2/6
NX701 Rev 2 Yes No No No r2 No Yes r2 Yes r2 r2/6
NX502 Rev 2 Yes No No No r2/7 No r2/7 r2/7 r2/7 r2/7 r2/6/7
NX102 Rev 2 Yes No No No r2 No Yes r2 Yes r2 r2/6
NX1P2 Rev 2 Yes No No No r2 No Yes r2 Yes r2 r2/6
Model after change
NJ501 NJ101 NX701 NX502 NX102 NX1P2
Model before
CIP Rev NJ301
change
Rev 1 Rev 2 Rev 2
Rev 2 Rev 2 Rev 2 Rev 2
*1 *2 *2
NX-EIP201 Rev 2 No r4/7 r4/7 r6/7 r4 r4/7 r4/7
CS1W-EIP21 Rev 3 r4/5 r4/5 r4/5 No No No No
CS1W-EIP21S Rev 4 r4/5 r4/5 r4/5 No No No No
CJ1W-EIP21 Rev 3 r4/5 r4/5 r4/5 No No No No
CJ1W-EIP21 Rev 3 r4/5 r4/5 r4/5 r5 r4/5 r4/5 r4/5
(CJ2)
CJ1W-EIP21S Rev 4 r4/5 r4/5 r4/5 No No No No
CJ1W-EIP21 Rev 3 r4 r4 r4 Yes r4 r4 r4
(NJ)
6-82 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
Model after change
NJ501 NJ101 NX701 NX502 NX102 NX1P2
Model before
CIP Rev NJ301
change
Rev 1 Rev 2 Rev 2
Rev 2 Rev 2 Rev 2 Rev 2
*1 *2 *2
CJ1W-EIP21S Rev 4 r4/5 r4/5 r4/5 r5 r4/5 r4/5 r4/5
(CJ2)
CJ1W-EIP21S Rev 4 r4 r4 r4 Yes r4 r4 r4
(NJ)
CJ2B-EIP21 Rev 3 r4/5 r4/5 r4/5 r5 r4/5 r4/5 r4/5
CJ2M Rev 2 r4/5 r4/5 r4/5 r5 r5 r4/5 r4/5
NJ501 Rev 1 ---- Yes r4 No No No No
NJ301 Rev 2 Yes --- r4 Yes Yes Yes r4
NJ101 Rev 2 Yes Yes --- Yes Yes Yes r4
NX701 Rev 2 No r4 r4 --- r4 r4 r4
NX502 Rev 2 No r4/7 r4/7 r7 --- r4/7 r4/7
NX102 Rev 2 No Yes Yes Yes Yes ---- r4
NX1P2 Rev 2 No Yes Yes Yes Yes Yes ----
*1. CPU Unit with a unit version 1.00 to 1.02
*2. CPU Unit with a unit version 1.03 or later
Yes Can be changed.
No: Cannot be changed.
r0 Cannot be changed if a Japanese variable is specified in the tag.
r1 Cannot be changed if a network variable is specified as a tag.
r2 Cannot be changed if the maximum size of a tag name or tag set name (size after conversion into
UTF-8) exceeds 48 bytes.
r3 Cannot be changed if the following items exceed the permissible settings of the device after the
change:
• Number of I/O connections, number of tags, number of tag sets, and size of one tag set.
r4 Cannot be changed in any of the following cases:
• The number of I/O connections, number of tags, number of tag sets, or size of one tag set ex-
ceeds the permissible settings for the device after the change.
• RPI exceeds the permissible settings or is set in 0.5-ms increments (such as 10.5ms)
r5 Cannot be changed if a tag set size is an odd number of bytes.
r6 Cannot be changed if tags, tag sets, or refreshing sizes exceed the permissible settings.
r7 Cannot be changed if the maximum number of tags per tag set exceeds the permissible setting.
6-2-18 Displaying Device Status
Device status is displayed using the following icons in Maintenance Mode.
To enter Maintenance Mode, select Large Icons - Maintenance Mode from the View Menu.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-83
6-2
Setting
Tag
Data
Links
6
6-2-18
Displaying
Device
Status
6 Tag Data Link Functions
Icon Status
Offline
(white)
Default (including no Controller Configurations and Setup)
(gray)
Idle (including when the Controller is in PROGRAM mode)
(green)
Normal communications state (including when the Controller is in RUN mode)
(blue)
Warning status (including when there is a partial fault or non-fatal error in the Con-
troller)
(yellow)
Alarm status (including when there is a major fault or fatal error in the Controller)
(red)
6-84 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
6-3 Ladder Programming for Tag Data
Links
6-3-1 Ladder Programming for Tag Data Links
The following conditions 1 to 3 should be fulfilled if you use tag data link data for a ladder program.
The additional conditions 4 and 5 should be also fulfilled if you input the Controller information of the
target node.
 Conditions for enabling tag data links for the built-in EtherNet/IP port on a
NJ/NX-series CPU Unit
The following conditions 1 and 2 should be both fulfilled.
No. Condition
1 The following error status bits in the _EIP_ErrSta (EtherNet/IP Error) variable are
FALSE.
• Major fault: Bit 7
• Partial fault: Bit 6
• Minor fault: Bit 5
2 The _EIP_EtnOnlineSta (Online) variable*1 is TRUE.
 Condition for Tag Data Links with Connection Established to the Target
Device
The following condition 3 should be fulfilled.
No. Condition
3 In the _EIP_EstbTargetSta (Normal Target Node Information) variable*2, the bit corre-
sponding to the target node address is TRUE.
 Condition of the Controller Operating Mode (Operating or Stopped) (Only
for OMRON Controllers)
The following condition 4 should be fulfilled.
No. Condition
4 In the _EIP_TargetPLCModeSta (Target PLC Operating Mode) variable*3, the bit cor-
responding to the target node address is TRUE.
 Condition of the Controller Error Status (Fatal or Non-fatal Error) of the
Target Node (Only for OMRON Controllers)
The following condition 5 should be fulfilled.
No. Condition
5 In the _EIP_TargetPLCErr (Target PLC Error Information) variable*4, the bit corre-
sponding to the target node address is FALSE.
When you want to use the Target Node Controller Error Flag, the Controller status
must be included in the tag sets for both the originator and target. Include the Control-
ler status by using the Network Configurator to select the Include Option in the Edit
Tag Set Dialog Box.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-85
6-3
Ladder
Programming
for
Tag
Data
Links
6
6-3-1
Ladder
Programming
for
Tag
Data
Links
6 Tag Data Link Functions
*1. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_EtnOnlineSta
Built-in EtherNet/IP port 2: _EIP2_EtnOnlineSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_EtnOnlineSta
*2. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
Built-in EtherNet/IP port 2: _EIP2_EstbTargetSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
*3. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCModeSta
Built-in EtherNet/IP port 2: _EIP2_TargetPLCModeSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCModeSta
*4. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCErr
Built-in EtherNet/IP port 2: _EIP2_TargetPLCErr
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCErr
 Programming Example for Normal Operation Detection
The following program can be used to confirm that normal communications are being performed for
each target node. If the Controller status is included in the tag data, the status of the Controller can
also be detected.
• Normal Operation Detection Programming Example 1
Normal Target Node Target PLC Operating Target PLC Error
Online Information (#1) Mode (#1) Information (#1)
(_EIP_EtnOnlineSta)*1 _EIP_EstbTargetSta[1]*2 _EIP_TargetPLCModeSta[1]*3 _EIP_TargetPLCErr[1]*4
Node 01 data
link operation
normal
Normal Target Node
Information Target PLC Operating Target PLC Error
(#2) Mode (#2) Information (#2)
_EIP_EstbTargetSta[2]*2 _EIP_TargetPLCModeSta[2]*3 _EIP_TargetPLCErr[2]*4
Node 02 data
link operation
normal
• Normal Operation Detection Programming Example 2
6-86 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
All Tag Data Link
Online Communications Status
(_EIP_EtnOnlineSta)*1 _EIP_TDLinkAllRunSta*5
Data link
operation
normal
Target PLC Target PLC
Operating Mode (#1) Error Information (#1)
_EIP_TargetPLCModeSta[1]*2 _EIP_TargetPLCErr[1]*4
Node 01 data
link operation
normal
Target PLC Target PLC
Operating Mode (#2) Error Information (#2)
_EIP_TargetPLCModeSta[2]*2 _EIP_TargetPLCErr[2]*4
Node 02 data
link operation
normal
*1. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_EtnOnlineSta
Built-in EtherNet/IP port 2: _EIP2_EtnOnlineSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_EtnOnlineSta
*2. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
Built-in EtherNet/IP port 2: _EIP2_EstbTargetSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
*3. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCModeSta
Built-in EtherNet/IP port 2: _EIP2_TargetPLCModeSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCModeSta
*4. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCErr
Built-in EtherNet/IP port 2: _EIP2_TargetPLCErr
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCErr
*5. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_TDLinkAllRunSta
Built-in EtherNet/IP port 2: _EIP2_TDLinkAllRunSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_TDLinkAllRunSta
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-87
6-3
Ladder
Programming
for
Tag
Data
Links
6
6-3-1
Ladder
Programming
for
Tag
Data
Links
6 Tag Data Link Functions
 Programming Example for Error Detection
The following program can be used to check for tag data link errors for each target node. This pro-
gramming is used to detect errors which may occur after the data links for all the nodes are started
normally.
Normal Target
Online Node Information (#1)
(_EIP_EtnOnlineSta)*1 _EIP_EstbTargetSta[1]*2
Node 01 error output
Normal Target
Node Information (#1) Node 01
_EIP_EstbTargetSta[1]*2 error output
Normal Target
Node Information (#2)
_EIP_EstbTargetSta[2]*2
Node 02 error output
Normal Target
Node Information (#2) Node 02
_EIP_EstbTargetSta[2]*2 error output
*1. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_EtnOnlineSta
Built-in EtherNet/IP port 2: _EIP2_EtnOnlineSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_EtnOnlineSta
*2. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
Built-in EtherNet/IP port 2: _EIP2_EstbTargetSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
 Data Processing Programming Example
• The following shows an example where data processing is performed only when data links are
operating normally.
6-88 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
The parts of the ladder
Normal operation flag program that use the data
Additional parts
link area for the relevant
node are processed only
when the corresponding
Normal operation flag normal operation flag is ON.
• The following shows an example where data processing is performed only when data links are
operating normally with MC and MCR instructions, or with JMP instructions.
Node A data link
normal operation flag
MC
Node A data processing
MCR
Node B data link
normal operation flag
MC
Node B data processing
MCR
Node C data link
normal operation flag
MC
Node C data processing
MCR
Precautions for Correct Use
Even if an error occurs in communications with a target device, the input data from the target
device will remain stored in words allocated in memory to the local node. To prevent malfunc-
tions, write the user program so that no input processing is performed when any of the following
bits of the _EIP_ErrSta (EtherNet/IP Error) variable is TRUE.
• Major fault: Bit 7
• Partial fault: Bit 6
• Minor fault: Bit 5
6-3-2 Status Flags Related to Tag Data Links
The status of the tag data links is reflected in the following system-defined variables.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-89
6-3
Ladder
Programming
for
Tag
Data
Links
6
6-3-2
Status
Flags
Related
to
Tag
Data
Links
6 Tag Data Link Functions
Variable Description
_EIP_TargetPLCModeSta[255]*1 (Target This variable shows the operating status of the target node Control-
PLC Operating Mode) ler that is connected with the built-in EtherNet/IP port as the origina-
(Corresponds to the Controller Operating tor.
Flag in the Controller status.) The information in this area is valid only when the corresponding
Normal Target Node Information is TRUE. If the value is FALSE, the
Target Node Controller Operating Information indicates the previous
operating status.
Array[x] is TRUE: The target Controller with a node address of x
is in operating status.
Array[x] is FALSE: Other than the above.
_EIP_TargetNodeErr[255]*2 (Target Node This variable indicates that the connection for Registered Target
Error Information) Node Information is not established or that an error has occurred in
(Corresponds to the Controller Error Flag the target the Controller.
in the Controller status.) The array elements are valid only when the Registered Target Node
Information is TRUE.
Array[x] is TRUE: The Registered Target Node Information for a
node address of x is TRUE, and the Normal
Target Node Information is FALSE or the Target
PLC Error Information is TRUE.
Array[x] is FALSE: When the Registered Target Node Information
for a node address of x is FALSE, or when the
Registered Target Node Information is TRUE,
the Normal Target Node Information is TRUE,
and the Target PLC Error Information is
FALSE.
_EIP_EstbTargetSta[255]*3 (Normal Tar- This variable gives a list of nodes that have normally established
get Node Information) EtherNet/IP connections.
(This status is not included in the Control- Array[x] is TRUE: The connection to the node with a node ad-
ler status.) dress of x is established normally.
Array[x] is FALSE: A connection is not established yet, or an error
has occurred.
*1. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCModeSta
Built-in EtherNet/IP port 2: _EIP2_TargetPLCModeSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_TargetPLCModeSta
*2. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_TargetNodeErr
Built-in EtherNet/IP port 2: _EIP2_TargetNodeErr
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_TargetNodeErr
*3. This is a system-defined variable for NJ-series CPU Units.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, the variable varies depending on the
built-in EtherNet/IP port, as shown below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
Built-in EtherNet/IP port 2: _EIP2_EstbTargetSta
For NX1P2 CPU Units, the variable is as below.
Built-in EtherNet/IP port 1: _EIP1_EstbTargetSta
6-90 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
6-4 Tag Data Links with Other Models
The performance of tag data links depends on the CPU Unit model and EtherNet/IP Unit model as
shown below.
When you use tag data links between the built-in EtherNet/IP port on an NJ/NX-series CPU Unit and
another CPU Unit or EtherNet/IP Unit, configure the tag data link settings based on the Unit which has
the lower level of communications performance.
 Differences in Tag Data Link Performance Specifications
CPU CS1W-EIP21
NX-series CPU Unit NJ-series CPU CJ2M-CPU3£
Unit CS1W-
Unit
Unit version EIP21S
CJ1W-EIP21
Item
NX- Ver. CJ1W-
NX701 NX502 NX102 NX1P2 1.03 or 2.1 or
EIP201 1.00 to 2.0 EIP21S
later later


Question: 02 CJ2H-

Answer:
CPU6£-EIP
Tag Total 184,832 184,832 46,208 9,600 9,600 words 640 words 184,832
size of words words words words words
all tags (total of (total of (total of (total of
369,664 369,664 92,416 19,200
words words words words
with two with two with two with two
ports) ports) ports) ports)
Maxi- 722 722 words 300 words 20 640 722 words
mum words (721 words when (299 words when the tag set includes the words words (721 words
size of (721 the tag set includes Controller status) (19 (639 when the tag
tag words the Controller sta- words words set includes
when tus) when when the Controller
the tag the tag the tag status)
set in- set in- set in-
cludes cludes cludes
the Con- the Con- the Con-
troller troller troller
status) status) status)
Number 1024 256 256*1 32 256
of regis- (total of (total of 512 with two ports)
trable 2048
tags with two
ports)
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 6-91
6-4
Tag
Data
Links
with
Other
Models
6
6 Tag Data Link Functions
CPU CS1W-EIP21
NX-series CPU Unit NJ-series CPU CJ2M-CPU3£
Unit CS1W-
Unit
Unit version EIP21S
CJ1W-EIP21
Item
NX- Ver. CJ1W-
NX701 NX502 NX102 NX1P2 1.03 or 2.1 or
EIP201 1.00 to 2.0 EIP21S
later later


Question: 02 CJ2H-

Answer:
CPU6£-EIP
Tag set Maxi- 722 722 words 300 words 20 640 722 words
mum words (721 words when (299 words when the tag set includes the words words (721 words
size of 1 (721 the tag set includes Controller status) (19 (639 when the tag
tag set words the Controller sta- words words set includes
when tus) when when the Controller
the tag the tag the tag status)
set in- set in- set in-
cludes cludes cludes
the Con- the Con- the Con-
troller troller troller
status) status) status)
Number 64 8 64 8
of tags (63 tags (7 tags (63 tags (7 tags when the tag set includes the Controller status)
per tag when when when Note: Input and output variables cannot be combined in one tag set.
set the tag the tag the tag
set in- set in- set in-
cludes cludes cludes
the Con- the Con- the Con-
troller troller troller
status) status) status)
Note: In- Note: In- Note: In-
put and put and put and
output output output
varia- varia- varia-
bles bles bles
cannot cannot cannot
be com- be com- be com-
bined in bined in bined in
one tag one tag one tag
set. set. set.
Number 256 256 64 32 (total 32 32 256
of regis- (total of (total of (total of of 40
trable 512 with 512 with 128 with with two
tag sets two two two ports)*2
ports) ports) ports)
Connec- Number 256 256 64 32 (total 32 32 256
tion of con- (total of (total of (total of of 64
nections 512 with 512 with 128 with with two
two two two ports)
ports) ports) ports)
Maxi- 722 722 words *3 300 words 20 640 252 or 722
mum words *3 (Data concurrency (Refer to 6-1-7 Concurrency of Tag Data words words words*3
data (Data is maintained at Link Data on page 6-14 for the conditions (Data concurrency (Data concur-
size per concur- each connection.) for maintaining data concurrency on a is maintained at rency is main-
connec- rency is connection basis.) each connection.) tained at each
tion main- connection.)
tained at
each
connec-
tion.)
6-92 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
6 Tag Data Link Functions
CPU CS1W-EIP21
NX-series CPU Unit NJ-series CPU CJ2M-CPU3£
Unit CS1W-
Unit
Unit version EIP21S
CJ1W-EIP21
Item
NX- Ver. CJ1W-
NX701 NX502 NX102 NX1P2 1.03 or 2.1 or
EIP201 1.00 to 2.0 EIP21S
later later


Question: 02 CJ2H-

Answer:
CPU6£-EIP
Packet intervals 1.0 to 0.5 to 1 to 10,000 ms in 1- 2 to 10 to 1 to 1 to 10,000 ms in 0.5 to 10,000
(RPIs) 10,000 10,000 ms increments 10,000 10,000 10,000 0.5-ms increments ms in 0.5-ms
ms in ms in ms in 1- ms in 1- ms in 1- increments