Question: Variable names with the following single-byte letters (uppercase or lowercase) followed by

Answer:
single-byte numerals
• H (H000 to H511)
• W (W000 to W511)
• D (D00000 to D32767)
• E0_ to E18_(E0_00000 ... E0_32767 to E18_00000 ... E18_32767)
To specify an I/O memory address for a tag on an NJ-series CPU Unit, NX102 CPU Unit, or
NX1P2 CPU Unit, do not specify the I/O memory address for the tag directly. Instead, create a
variable, set an AT specification of the I/O memory address on the Sysmac Studio, and then
specify the variable with the AT specification for the tag.
• Size of variables
To use an EtherNet/IP Unit as an EtherNet/IP device, set an even number of bytes for the size of
the network variable used for the EtherNet/IP connections regardless of an odd number of bytes
for the tag size.
Network variable Tag
AAA AAA
(4 bytes) (3 bytes)
The CPU Unit memory is consumed in units of two bytes. To assign tags of odd numbers of bytes
to network variables, specify even byte numbers (i.e., sizes of the tags + 1) to the network variables.
• Data concurrency
To maintain concurrency in the values of network variables that are assigned to tags, you must
set refreshing tasks.
Refer to 6-1-7 Concurrency of Tag Data Link Data on page 6-14 for details.
Registering the Tag and Tag Set
Register the required tag and tag set for the EtherNet/IP connections.
You can register tags and tag sets in the EtherNet/IP Connection Setting Tab Page.
Precautions for Correct Use
Make the following settings to refresh all of the tag data in the same 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.
• If you use the NJ-series CPU Unit, 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.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-13
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
1
Select EtherNet/IP Connection Settings from the Tools Menu.
The EtherNet/IP Device List Tab Page is displayed.
2
In this example, right-click Built-in EtherNet/IP Port Settings for the originator device and se-
lect Edit from the menu to open the EtherNet/IP Connection Setting Tab Page.
3
Click the (Show Tag Set Display) icon in the EtherNet/IP Connection Setting Tab Page.
4
Click the Input tab to switch to the Input Tab Page. Register the tag set and the tag.
Use one of the following methods to register the tag set and the tag.
• Independ- : Manually registers network variables in the Controller as tags.
ent registra-
tion
• Batch regis- : Registers all network variables in the Controller as tags at the same time.
tration
5
Register tags and tag sets independently.
1) Right-click anywhere in the Input Tab Page of the EtherNet/IP Connection Setting Tab Page
and select Create New Tag Set from the menu.
2) Enter the tag set name, Net_In1, directly into the list in the Input Tab Page.
3) Right-click anywhere in the Input Tab Page and select Create New Tag from the menu.
4) Enter tag name Net_In1.
Tag set name
Tag name
Precautions for Correct Use
Any name can be specified for the tag set if the name matches one of the registered network
variable names in the Controller.
As you enter characters (or immediately after you press the Ctrl + Space Keys), the Sysmac
Studio Entry Assistance provides a list of variable names registered in the Controller. Select the
variable name from the list.
A-14 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Additional Information
You can register up to 8 tags in a tag set.
Set as shown below to register multiple tags.
Examples:
Tag set name
▼ Network_Input_Value .... (Tag set name)
Net_In1 .... (Tag name)
Net_In2 .... (Tag name)
6
Register all tags and tag sets at the same time.
1) Right-click anywhere on the Input Tab Page of the EtherNet/IP Connection Settings Tab
Page and select Register All Tag Sets or click the Registration All Button to display the
Tag Set Registration Setting Dialog Box.
This dialog box lists the variables that are registered in the Global Variable Table and
also have the Network Publish attribute set to Input or Output.
2) Select the variable to register as a tag, and then click the Register Button.
3) The automatically registered tag is added to the list in the EtherNet/IP Connection Setting
Tab Page.
With automatic registration, the tag is registered under a tag set having the same name
as the tag, i.e., a single tag is registered in a single tag set.
Tag set name
Tag name
7
Set the following settings for the registered tag and tag set.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-15
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
• Setting for Tag Sets
Name Item
Tag Set Name Enter the tag set name.
You can change the names as required.
Size (Byte) Gives the total size of the tag in bytes.
Instance ID Gives the instance ID.
• Auto
• IN_{min}...IN_{max}
{min} represents the minimum number of Produced Assembly identifica-
tion numbers recorded in the EDS files for the relevant devices.
{max} represents the maximum number of Produced Assembly identifica-
tion numbers recorded in the EDS files for the relevant devices.
Controller Status Specify whether to include the Controller status in the tag set.
• Setting for Tags
Name Item
Tag Name Enter the tag name.
Specify the tag name that matches one of the registered network variable
names in the Controller.
Bit Selection Specify whether to set the tag data size in bits.
Selected: Set the size in bits.
Not selected: Set the size in bytes.
Size (Byte) Gives the size of the tag in bytes.
Size (Bit) Gives the size of the tag in bits.
Output at Fatal Error Specify whether to clear the output data or continue to send it when a ma-
jor fault level Controller error occurs in the Controller.
• Retained
• Cleared
Setting Connections for the Originator Device
After the tag set registration, set the connection settings for transferring data using the EtherNet/IP
connections.
Make the connection settings in the originator device (i.e., Controller 1 in this example) only.
Register the tag and tag set for Controller 2 (Target device) before setting the connection settings as
described in this example.
Refer to Registering the Tag and Tag Set for the Target Device on page A-24 for the operations for
registering tags and tag sets.
A-16 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Precautions for Correct Use
If you change the IP address, model, or revision of the target device after making the connec-
tion settings, you must also change the target device settings that are included in the connec-
tion settings.
For information on how to change the target device settings in the connection settings, refer to
Changing the Target Device Settings after Making Connection Settings on page A-23.
1
Select EtherNet/IP Connection Settings from the Tools Menu to display the EtherNet/IP De-
vice List Tab Page.
2
Right-click Built-in EtherNet/IP Port Settings for Controller 1 (originator device in this exam-
ple), and select Edit from the menu.
The EtherNet/IP Connection Setting Tab Page is displayed.
3
Click the (Show Connection Display) icon in the EtherNet/IP Connection Setting Tab
Page.
4
Select CJ1W-EIP21(NJ) from Target Device in the Toolbox on the right of the tab page.
When you select CJ1W-EIP21(NJ), the target device tag set (Net_Out1) for Controller 2 is dis-
played in the Variable Name column in the Toolbox.
5
Drag the target device tag set Net_Out1 from the Variable Name column in the Toolbox to the
Connection List.
As you enter characters (or immediately after you press the Ctrl + Space Keys), a list of target
device variables that can be set for the connection is provided. Select the value from the list.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-17
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
Drag
6
Specify Originator Variable and its Size [Byte] for the tag set Net_Out1 added in step 5.
Here, specify Net_In1 for Originator Variable and 2 for its Size [Byte].
Change the other settings as required.
You can set the following items in the connection settings.
Name Setting Methods
Target Device Select the target device.
Connection Name Any name can be given to the connection (32 single-byte characters
max.).
Connection I/O Type Input Only (Tag type) is selected if the EtherNet/IP connection is es-
tablished on 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 EtherNet/IP connection for another target device,
select the connection I/O type specified in the device's EDS file.
Use the Input Only (ID type) setting when the originator is a node
from another manufacturer and does not support connection settings
with a Tag type setting.
Input/Output The connection's input/output is automatically displayed based on the
selected connection.
Input Only: Just Input is displayed.
Target Variable Select the target node's tag set to assign it.
• Input is specified for Input/Output: Select the target's output (pro-
duce) tag set.
• Output is specified for Input/Output: Select the target's input (con-
sume) tag set.
Size [Byte] The data sizes of the target variables are displayed.
A-18 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Name Setting Methods
Originator Variable Select the originator node's tag set to assign it.
• Input is specified for Input/Output: Select the originator's input
(consume) tag set.
• Output is specified for Input/Output: Select the originator's output
(produce) tag set.
Size [Byte] Enter the data sizes of the originator variables.
Connection Type Select whether the data is to be sent in the multicast or unicast (point-
to-point) form. The default setting is multicast.
• Multi-cast connection: Select when the same data is to be shared
by multiple nodes. This setting is usually used.
• Point-to-point connection: Select when the same data is not to be
shared by multiple nodes.
Since the data is sent in unicast transmission, other nodes are not
burdened with unnecessary load.
NoteRefer to 6-1-4 Overview of Operation on page 6-7 for details on
how to use multi-cast and unicast connections, and how to count
the number of connections.
RPI [ms] 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).
Timeout Value Set the time 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 inter-
val.
The default setting is RPI x 4.
The timeout value must be at least 10 ms.
*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
The Toolbox displays the target devices if the devices are registered in the same Sysmac Stu-
dio project as where the originator devices are registered.
You can use one of the following methods to add unregistered devices in the same Sysmac
Studio project as where the originator devices are registered to the Target Device List.
• Importing devices that are registered in another project
You can import NJ/NX-series Controllers registered in another project data and add them to
the Device List.
• Registering devices using user-specified settings
You can manually add target devices to the device list.
Additional Information
You can add target devices to the Device List by installing EDS files that include connection in-
formation for the devices in the Sysmac Studio and register the devices to the project.
Refer to Adding EDS Files on page A-22 for details.
8
Import devices that are registered in another project.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-19
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
1) Click the (Import a device from another project) Button in the Toolbox on the right of
the EtherNet/IP Connection Setting Tab Page.
2) The Import from Another Project Dialog Box is displayed. Click the Project Button, select a
project to import and click the Open Button.
3) The list of EtherNet/IP devices registered in the selected project will be displayed. Select
the target devices to import, and click the Import Button.
NoteOnly the project for which the EtherNet/IP connection settings are set will be displayed.
The imported EtherNet/IP devices are added to the Target Device List in the Toolbox.
A-20 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
9
Register devices as required.
1) Click the + Button under the Target Device List in the Toolbox.
The Add Target Device Pane is displayed.
2) Enter relevant items for the target devices to add.
Menu Description
Node address Enter the target device IP address.
Model name Select the target device model.
Revision Select the revision of the target device.
3) Here, set the following items for Controller 3 and click the Add Button.
The target device is added to the Target Device List in the Toolbox.
Node address: 192.168.250.3
Model name: NJ501-1500
Revision: 2
4) You can click the Import Tag Set Button to import the tag sets that are set in the Network
Configurator to the target devices.
Select To/From File - Export to File in the Tag Sets Tab Page of the Edit Device
Parameters Dialog Box, and generate CSV files to import.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-21
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
 Adding EDS Files
NoteThe Modular EDS device is supported by the Sysmac Studio version 1.11 or higher.
1
Right-click anywhere in the Target Device List in the Toolbox of the EtherNet/IP Connection
Setting Tab Page and select Display EDS Library from the menu.
2
The EDS Library Dialog Box is displayed. Click the Install Button.
3
Select the EDS file to add, and then click the Open Button.
The EDS file is added.
4
The EtherNet/IP device with the EDS file installed is added to the EDS Library.
Devices listed in the EDS Library are used as a candidate device list when adding devices to
the Target Device List in the Toolbox of the EtherNet/IP Connection Setting Tab Page.
A-22 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Changing the Target Device Settings after Making Connection Set-
tings
If you change the IP address, model, or revision of the target device after making the connection set-
tings, you must also change the target device settings that are included in the connection settings.
You can change the target device settings entirely.
Precautions for Correct Use
When you use the Sysmac Studio version 1.10 or lower, create the connections again if you
changed the target device after configuring the connection settings.
 Changing the IP Addresses for All Target Devices
1
Right-click one of the connection lines and select Change Node Address from the menu.
2
The Node Address Change Dialog Box is displayed. Enter a new IP address in New IP
address.
To apply the same change to other connections, select the Apply the change to other
connections Check Box.
3
To apply the same change to other connections, select the Apply the change to other
connections Check Box.
4
Click the OK Button.
 Changing All Target Device Information including Model Names and Revi-
sions
1
Right-click one of the connection lines and select Change Target Device from the menu.
2
The Target Device Change Dialog Box is displayed. Select a target device from New device.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-23
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
Precautions for Correct Use
• Changeable target devices are limited to ones that have "OMRON" in the Vendor ID and is an
EDS device of the Communications Adapter in the Device Type.
• To display a device in the list of selectable new target devices, the device must be registered
as the target device in the Toolbox.
3
To apply the same change to other connections, select the Apply the change to other
connections Check Box.
4
Click the OK Button.
Registering the Network Variable for the Target Device
1
Assign the network variable to the tag used for the EtherNet/IP connection for Controller 2 (tar-
get device).
This network variable stores data to send to Controller 1 (originator device).
Set the Network Publish attribute to Input or Output in the Global Variable Table for the varia-
ble so that the variable serves as a network variable, i.e., the variable can be used for the
EtherNet/IP connections. In this example, set the network variable for Controller 1 as shown
below.
• Name: Net_Out1
• Data type: WORD
• Network Publish attribute: Output
Registering the Tag and Tag Set for the Target Device
Set the tag and tag set for the target device.
1
Select EtherNet/IP Connection Settings from the Tools Menu.
The EtherNet/IP Device List Tab Page is displayed.
A-24 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
2
Right-click CJ1W-EIP21, the EtherNet/IP Unit connected to the Controller 2 (originator device
in this example), and select Edit from the menu.
The EtherNet/IP Connection Setting Tab Page is displayed.
3
Click the (Show Tag Set Display) icon in the EtherNet/IP Connection Setting Tab Page.
4
Click the Output tab to switch to the Output Tab Page. Register the following tag and tag set.
The tag and tag set can be registered in the same way as for the target device. (Refer to Reg-
istering the Tag and Tag Set on page A-13.)
Checking the Device Bandwidth Usage
The bandwidth usage for the device can be displayed from the EtherNet/IP Connection Setting Tab
Page.
This value is for when multicast filtering is used.
Precautions for Correct Use
In the Device Bandwidth Dialog Box, you can only check the bandwidth being used for the
EtherNet/IP connections from one originator device to its target devices.
The actual bandwidth used for the EtherNet/IP network must be calculated by taking into ac-
count of all bandwidths used on the EtherNet/IP network (i.e., bandwidths used for connections
for the other devices in the EtherNet/IP network than the one given on the dialog box must be
included into the calculation).
 Procedure
Click the Device Bandwidth Button in the EtherNet/IP Connection Setting Tab Page for the target
device.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-25
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
Menu Description
PPS Gives the bandwidth used for each target device and total bandwidth used
for all target devices.
Set Packet Interval (RPI) for Changes all Packet Interval (RPI) values for all target devices.
All Connections
Additional Information
You can specify a value in Set Packet Interval (RPI) for All Connections and click the Update
Button to change packet interval (RPI) values set in the connection settings for all target devi-
ces to the specified value.
 Calculation Example for Bandwidth Used (PPS) for Each Device by the
EtherNet/IP Connections
Establishing following three EtherNet/IP connections between Controllers (1) to (3) in the
EtherNet/IP network
Device bandwidth
Connection type Relevant devices in the EtherNet/IP connections
usage (PPS)
Connection (1) NJ-series Controller 2 (target device) 50 pps
to NJ-series Controller 1 (originator device)
Connection (2) NJ-series Controller 1 (target device) 10 pps
to NJ-series Controller 2 (originator device)
Connection (3) NJ-series Controller 3 (target device) 210 pps
to NJ-series Controller 1 (originator device)
EtherNet/IP network
Connection (3) Connection (1)
Connection (2)
NJ-series Controller 3 NJ-series Controller 1 NJ-series Controller 2
(192.168.250.3) (192.168.250.1) (192.168.250.2)
Bandwidth used (PPS) for each EtherNet/IP device is as given below.
A-26 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Connection (1)
Connection (3)
EtherNet/IP connection settings for Controller 1
Connection (2)
EtherNet/IP connection settings for Controller 2
In this example, the PPS for Connection (1) is 50 pps, the PPS for Connection (2) is 10 pps, and
the PPS for Connection (3) is 210 pps. Therefore, bandwidth used (PPS) for each EtherNet/IP de-
vice is as given below.


Question: 168.250.1: 270 pps = 50 pps (for Connection (1)) + 10 pps (for Connection (2)) + 210 pps (for

Answer: Connection (3))


Question: 168.250.3: 210 pps = 210 pps (for Connection (3))

Answer:
 Adjusting Method
If the calculation result value exceeds the values in the specifications of the devices used in the
EtherNet/IP connections, re-evaluate the overall network configuration and correct it by taking
steps such as selecting a different Ethernet switch or splitting the network.
If the RPI is made longer, the PPS for the EtherNet/IP connections will decrease.
You can change the RPI values in the connection settings for all the target devices by specifying a
value in Set Packet Interval (RPI) for All Connections in this dialog box.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-27
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
Refer to 14-2-2 Tag Data Link Bandwidth Usage and RPI on page 14-9 for the relationship between
the PPS for the device and the RPI.
Transferring the Connection Settings Data
You can synchronize and transfer EtherNet/IP connection settings along with the program data. You
can also transfer all the EtherNet/IP connection settings along with the program data.
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 connection settings are set, it may cause equipment to operate unpredictably.
Even when the correct connection settings are set, make sure that there will be no effect on
equipment before you transfer the data.
• A connection error will result if the network variables that are used in the tag settings are not
set in the Controller. Before downloading the connection settings, check to confirm that the
network variables used in the tag settings are set in the Controller.
• 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 and the port on the EtherNet/IP Unit are automatically restarted
after the parameters are downloaded. This restart is required to enable the tag set and con-
nection information. Before you download the parameters, check to confirm that problems will
not occur with the equipment when the port is restarted.
• Do not disconnect the Ethernet cable or reset or turn OFF the power to the EtherNet/IP Unit
during the parameter download.
• The EtherNet/IP connections between relevant nodes is stopped during a download. Before
you download data in RUN mode, make sure that it will not affect the controlled system.
Also implement interlocks on data processing in ladder programming that uses EtherNet/IP
connections when the connections are stopped or a connection error occurs.
• In the EtherNet/IP network, if the device bandwidth usage (PPS) exceeds the Unit allowable
bandwidth (PPS), the EtherNet/IP connection operations may not agree with the settings.
If you increase the RPI value in such a case, there are cases when the problem can be re-
solved (i.e., the operations agree the settings).
 Synchronizing/Transferring a Whole Project
1
Establish an online connection between the computer and the Controller, and then select
Synchronization from the Controller Menu. (Or, click the Button on the Toolbar.)
A-28 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
The Synchronization Window is displayed, and comparison of the user program and parameter
settings between the Sysmac Studio and the Controller is started.
2
The following Uploading and Downloading Data Window is displayed after the automatic com-
parison.
3
Clear the Do not transfer the EtherNet/IP connection settings (i.e., tag data link settings)
Check Box and then click the Transfer To Controller Button.
Then the EtherNet/IP connection settings are transferred along with the not-synchronized data.
If no EtherNet/IP connection settings are set in the Sysmac Studio, no data will be sent.
 Transferring all data
1
Establish an online connection between the computer and the Controller and then select
Transfer - To Controller from the Controller Menu. (Or, click the Button on the Toolbar.)
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-29
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
2
The Transfer to Controller Dialog Box is displayed.
Clear the selection of the Do not transfer the EtherNet/IP connection settings (i.e., tag data
link settings) Check Box, and then click the Execute Button.
Precautions for Correct Use
To transfer only the connection settings, execute Transfer from the EtherNet/IP Connection Set-
ting Tab Page.
Even if you clear the Do not transfer the connection setting Check Box, the connection set-
tings are not transferred from the Synchronization Window, the Transfer to Controller Dialog
Box, or the Transfer from Controller Dialog Box as long as the data in the computer is
synchronized with the data in the Controller.
 Transferring Only the EtherNet/IP Connection Settings
You can transfer tag sets and connections to the EtherNet/IP devices.
1
Establish an online connection with the Controller.
2
Click the Transfer to Controller or Transfer from Controller Button in the EtherNet/IP Con-
nection Setting Tab Page.
The tag settings and connection settings set at that time are transferred to the Controller con-
nected online.
3
If the Controller connected online is in RUN mode, the dialog box to confirm whether to switch
to PROGRAM mode before transferring the settings is displayed.
A-30 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
 Comparison
The differences in the tag set and connection settings between the project and the EtherNet/IP de-
vices can be displayed.
1
Click the Compare Button in the EtherNet/IP Connection Setting Tab Page.
Starting and Stopping EtherNet/IP Connections
 Automatically Starting EtherNet/IP Connections
The EtherNet/IP device is automatically restarted and EtherNet/IP connections are automatically
started immediately after the connection settings are downloaded from the Sysmac Studio.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-31
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-4
Making
the
EtherNet/IP
Connection
Settings
with
the
Sysmac
Studio
Appendices
Precautions for Correct Use
Connections are adversely cut off if any of the following errors occurs in the CPU Unit that is the
originator while EtherNet/IP connections are active.
• Major fault level Controller error
• Partial fault level Controller error
 Starting and Stopping the EtherNet/IP Connections for the Entire Network
You can start and stop EtherNet/IP connections from the user program or from the Sysmac Studio.
Precautions for Correct Use
Use the same method (i.e., either the user program or the tool software) to both start and stop
EtherNet/IP connections.
For example, if you use the _EIP_TDLinkStopCmd (Tag Data Link Communications Stop
Switch) system-defined variable to stop EtherNet/IP connections, you cannot start them from
the Sysmac Studio and the Network Configurator.
A-2-5 Checking Communications Status with the Sysmac Studio and
Troubleshooting
You can monitor the communications status of the EtherNet/IP connections after their settings are set.
You can also check errors.
Precautions for Correct Use
Make sure that the connection settings in both the Sysmac Studio and the Controller are con-
sistent before using the monitor functions. You can use the Comparison on page A-31 to see if
they are the same.
Checking Communications Status with the Sysmac Studio
You can check the communications status on the EtherNet/IP connections in the EtherNet/IP Connec-
tion Monitor Tab Page.
1
Select EtherNet/IP Connection Settings from the Tools Menu to display the EtherNet/IP De-
vice List Tab Page.
2
Right-click the Controller for which you want to check the communications status, and select
Monitor from the menu.
The EtherNet/IP Connection Monitor Tab Page is displayed. In the EtherNet/IP Connection
Monitor Tab Page, each communications status is displayed in six tabs.
A-32 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
3
Select one of the six tabs for which you want to confirm the communications status.
• Status Tab Page
This tab page gives the TRUE/FALSE status of the system-defined variables that monitors the tag
data link status and communication status for errors. If any of the variables is TRUE, its checkbox is
marked with .
Refer to 15-2-1 The Network Configurator's Device Monitor Function on page 15-3 for details on
each status item.
• Connection Status Tab Page
Current status of each connection is given.
Name Description
Connection Name Gives the current status of each connection with the following text colors.
Blue: Normal
Red: There is at least one connection that has not been established.
Gray: There are no connections or the connection operation is stopped.
Type Gives the connection type.
Status Gives the current status on each connection with codes.
• Normal operation: 00:0000
• Abnormal operation: Gives an error code.
This information can be used to identify the cause of EtherNet/IP connec-
tion errors. Refer to 15-2-2 Connection Status Codes and Troubleshooting
on page 15-11 for details on the connection status.
• Tag Status Tab Page
This tab page gives if the tag settings for each tag for EtherNet/IP connections are set so that data
can be exchanged with target devices.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-33
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-5
Checking
Communications
Status
with
the
Sysmac
Studio
and
Troubleshooting
Appendices
Name Description
Tag Name The current status of each tag is indicated by its color.
Red: Tag name resolution error
Blue: Tag name resolution normal
Gray: Not yet transferred (no information in device).
Input/Output Gives the type of the tag.
Status The following status is displayed depending on the status that is set.
• Normally resolved: Normal data exchange is possible.
• Different sizes: Different sizes are set for the network variables and the tag
settings.
A connection will not be established for a tag for which this error occurs.
• No tag: A network variable is not set in the variable table in the CPU Unit
for the specified tag setting. Or, instead of a member of union variable, un-
ions are specified.
A connection will not be established for a tag for which this error occurs.
• Attribute error: The following two factors cause this error.


Question: The I/O direction that is set in the tag data link settings does not agree

Answer:
with the I/O direction of the variable in the CPU Unit. There is an error in
the setting of a Network Publish attribute for a CPU Unit variable.
A connection will not be established for a tag for which this error occurs.
• Output Tag Set and Input Tag Set Tab Pages
You can monitor the status of each input/output tag set that is used for the EtherNet/IP connections.
NoteThe tag set status monitor is not available for a built-in EtherNet/IP port on NJ-series Controller version


Question: 08 or earlier.

Answer:
Click ▼ of each tag to display its detailed information.
Name Description
Tag Set Name Gives the connection status.
If there is a connection error, "Not connected or error" is given.
A-34 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Name Description
Tag set size Gives the size of the tag set in bytes.
Connected time Gives the total connection duration in milliseconds.
Unconnected time Gives the total disconnection duration in milliseconds.
Number of connections (in the Gives the number of connections.
Output Tag Set Tab Page)
Number of connected origina- Gives the number of the connected originator devices.
tors (in the Output Tag Set
Tab Page)
Originator list (in the Output Gives the detailed information of the connected originators.
Tag Set Tab Page), Target list
(in the Input Tag Set Tab
Page)
Originator name (in the Gives no information.
Output Tag Set Tab Page),
or Target name (in the
Input Tag Set Tab Page)
IP address (in the Output Gives the IP addresses allocated for the originators.
Tag Set Tab Page), or Re-
mote IP address (in the
Input Tag Set Tab Page)
Connected time (in the Gives the total duration of connection with the originator in milliseconds.
Output Tag Set Tab Page)
Unconnected time (in the Gives the total duration of disconnection with the originator in milliseconds.
Output Tag Set Tab Page)
Destination IP address (in Gives the destination IP addresses. If the multi-cast connections are used,
the Output Tag Set Tab its own multi-cast address is displayed.
Page)
O->T RPI (packet interval) Gives the RPI of connection from the originator to the target in milliseconds.
T->O Heartbeat transmis- Gives the heartbeat transmission period of the connections from the target
sion cycle (ms) to the originator in milliseconds.
O->T Timeout Gives the timeout time for the connections from the originator to the target
in milliseconds.
T->O Timeout Gives the timeout time for the connections from the target to the originator
in milliseconds.
O -> T API (actual packet Gives the RPI of connection from the originator to the target in milliseconds.
interval)
T->O Actual heartbeat Gives the actual heartbeat transmission period of the connections from the
transmission cycle (ms) target to the originator in milliseconds.
O->T Connection ID Gives the connection identification for the connections from the originator to
the target in hexadecimal.
T->O Connection ID Gives the connection identification for the connections from the target to the
originator in hexadecimal.
• Ethernet Information Tab Page
This tab page displays the communications status at the communications driver level of the Ether-
net/IP port.
The error counter information can be used to confirm whether communications problems have oc-
curred.
Under the Tag Data Link, you can confirm characteristics such as the bandwidth usage (PPS).
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-35
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-5
Checking
Communications
Status
with
the
Sysmac
Studio
and
Troubleshooting
Appendices
Display example for an NJ-series CPU Unit
Display example for an NJ-series CPU Unit
With an NX701 CPU Unit, the status for each port is displayed.
A-2-6 Troubleshooting
In the case that there is a setting error or a communications error in the EtherNet/IP networks, the
Sysmac Studio displays the error in the Troubleshooting Dialog Box.
Refer to the NJ/NX-series Troubleshooting Manual (Cat. No. W503) for how to identify errors and de-
tails on errors.
Troubleshooting When Transferring and Monitoring the EtherNet/IP
Connection Settings Fail with Sysmac Studio Version 1.10 or High-
er
The first time you establish an online connection between the Controller and the computer that runs
the Sysmac Studio version 1.10 or higher with Windows Firewall on the computer enabled, a dialog
box may be displayed to confirm the connection. If that occurs, make the following selection in the dia-
log box.
• Unblock (on Windows XP/Vista)
• Allow access (on Windows 7 or higher)
A-36 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
If you make other settings than above, transferring and monitoring the EtherNet/IP connection settings
may not be properly performed even if the online connection is successfully established between the
Sysmac Studio version 1.10 or higher and the Controller.
If the above problem occurs, take the following corrective method 1 or 2.
 Problems
• The connection setting data cannot be transferred.
Data Transmission Screen Problem
Synchronization Window The Sysmac Studio displays the following error message and the data will
not be transferred.
Transfer to Controller Dia- The Sysmac Studio displays the following error dialog box and the data will
log Box not be transferred.
EtherNet/IP Connection Set- The Transfer to Controller and Transfer from Controller Buttons are
ting Tab Page grayed out and the data cannot be transferred/compared.
• Monitoring cannot be performed
Monitor results in the EtherNet/IP Connection Monitor Tab Page remain as "---".
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-37
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-6
Troubleshooting
Appendices
Method 1: Disabling Windows Firewall Settings
Precautions for Correct Use
The main function of the firewall is to prevent unwanted access from external sources (e.g., the
Internet).
The changes that are made with the following procedures are to allow the Sysmac Studio and
the NJ/NX-series Controller to connect. If your computer is on an inhouse network, make sure
that security will not be jeopardized before you change the settings.
 Windows XP
1
Open the Control Panel from the Windows Start Menu and then select Windows Firewall
icon.
The Windows Firewall Dialog Box is displayed.
2
Click on the Exceptions tab and select Sysmac Studio in the Programs and Services list.
A-38 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
 Windows Vista, Windows 7, or later version
1
Open the Control Panel from the Windows Start Menu and then select Windows Firewall
icon.
The Windows Firewall Dialog Box is displayed.
2
Select Turn Windows Firewall On or Off.
The Customize Settings Dialog box is displayed.
3
Clear the Block all incoming connections, including those in the list of allowed programs
Check Box and click the OK Button.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-39
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-6
Troubleshooting
Appendices
4
Select the Advanced Tab in the Windows Firewall Dialog Box.
The Windows Firewall with Advanced Security Dialog Box is displayed.
5
Click Inbound Rules in the left pane and then double-click SysmacX86Server in the Inbound
Rules list for Sysmac Studio Ver.1.31 or later. For Sysmac Studio earlier than Ver.1.31, double-
click Sysmac Studio.
If you double-click SysmacX86Server, SysmacX86Server Properties window appears. If you
double-click Sysmac Studio, Sysmac Studio Properties window is displayed.
6
For Sysmac Studio Ver.1.31 or later, make the following settings in the SyamacX86Server
Properties window. If Sysmac Studio version is earlier than Ver. 1.31, make the following set-
tings in the Syamac Studio Properties window.
• If the Public Check Box under Profiles is not selected in the Advanced Tab Page, select it.
• If the Enabled under General is not selected in the General Tab Page, select it.
• Select Allow the connection under Action in the General Tab Page.
Method 2: Selecting the Use Option for the CIP Message Server
1
Connect the Sysmac Studio to the Controller.
A-40 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
2
Select Configurations and Setup - Controller Setup - Built-in EtherNet/IP Port Settings -
CIP Settings.
3
Change the setting to select the Use Option for CIP Message Server.
Method 3: Configuring Packet Filter Settings to Allow Packets Used
by Sysmac Studio's EtherNet/IP Connection Settings
1
Connect the Sysmac Studio to the Controllers.
2
Select Configurations and Setup - Controller Setup - Built-in EtherNet/IP Port Settings -
TCP/IP Settings.
3
Enter the settings for Packet Filter to allow packets used by Sysmac Studio's EtherNet/IP con-
nection settings. Refer to Packet Filter on page 4-8 for detailed settings.
Method 4: Cycling the Power Supply to the Controller
Cycle the power supply to the NJ/NX-series Controller and transfer/monitor the EtherNet/IP connec-
tions settings again.
NoteYou may need to cycle the power supply when reflecting the changes in the IP address of the built-in Ether-
Net/IP port or executing Transfer to the Controller.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-41
A-2
Use
the
Sysmac
Studio
to
Set
the
Tag
Data
Links
(EtherNet/IP
Connections)
A
A-2-6
Troubleshooting
Appendices
A-3 EDS File Management
This section describes the EDS file management on the Network Configurator.
Precautions for Correct Use
On Windows Vista or Windows 7:
We recommend that you select Run as administrator to start the Network Configurator for op-
erations with EDS files.
If you do not select Run as administrator, the following condition will result according to Win-
dows user management for security purposes.
The following operations are not valid if you log in with another user account, and you need to
restart the Network Configurator again: Install, Create, Delete, and Create EDS Index File un-
der EDS File.
When you start the Network Configrator, select Run as administrator as below.


Question: Select Run as administrator from the displayed pop-up menu.

Answer:
A-3-1 Installing EDS Files
EDS File - Install
The Network Configurator can support new devices if the proper EDS files are installed.
To install the EDS file, use the following procedure.
1
Select EDS File - Install.
The Install EDS File Dialog Box is displayed.
A-42 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
2
Select the EDS file to install, and click the Open Button.
Next, select the icon file (*.ico). The EDS file is added to the Hardware List as a new device.
If the hardware already exists, the new Hardware List will overwrite the previous one.
If the hardware has different versions, each hardware version is added to the Hardware List.
A-3-2 Creating EDS Files
EDS File - Create
The EDS files are required for the Network Configurator to create a network configuration. To create
an EDS file, use the following procedure.
1
Select EDS File - Create.
2
Set the device information. You can obtain the device information from the device on the net-
work if it is online.
3
The device is added to the Hardware List as a new device, just like when you install an EDS
file.
Additional Information
You cannot set device parameters when you create an EDS file with the Network Configurator.
Obtain a proper EDS file from the manufacturer of the device to make device parameter set-
tings for the device.
A-3-3 Deleting EDS Files
EDS File - Delete
To delete an EDS file, use the following procedure.
1
Select the device from the Hardware List.
2
Select EDS File - Delete.
The following confirmation dialog box is displayed.
3
Click the Yes Button.
The selected device is deleted from the Hardware List together with the EDS file.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-43
A-3
EDS
File
Management
A
A-3-2
Creating
EDS
Files
Appendices
A-3-4 Saving EDS Files
EDS File - Save
To save the EDS file, use the following procedure.
1
Select the target hardware device in the Hardware List, and then select EDS File - Save.
2
A Save EDS File Dialog Box is displayed.
3
Input the folder and file names and click the Save Button.
The EDS file is saved.
A-3-5 Searching EDS Files
EDS File - Find
To search the devices in the Hardware List for EDS files, use the following procedure.
1
Select EDS File - Find.
The following dialog box is displayed.
2
Input the character string to search for, and click the Find Next Button.
3
If a matching device is found, the cursor moves to the position of the device.
4
To quit the search operation, click the Cancel Button.
Additional Information
• The search is performed for the device on which the cursor stays and subsequent ones in the
Hardware List.
• To search all the devices, select Hardware in the Hardware List before you perform the
search.
A-44 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
A-3-6 Displaying EDS File Properties
EDS File - Property
To display the properties of the EDS file, use the following procedure.
1
Select the desired hardware (device) from the Hardware List.
2
Select EDS File - Property.
The following dialog box is displayed.
The time and date when the EDS file was created is displayed, along with the device informa-
tion.
A-3-7 Creating EDS Index Files
EDS File - Create EDS Index File
When an EDS file is manually added or when a device is not correctly indicated in the Hardware List,
use the following procedure to recreate the EDS index file.
(This applies to Network Configurator version 3.30 or higher.)
1
Select EDS File - Create EDS Index File.
2
Restart the Network Configurator.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-45
A-3
EDS
File
Management
A
A-3-6
Displaying
EDS
File
Properties
Appendices
A-4 Precautions for Using the Network
Configurator on Windows XP, Win-
dows Vista, or Windows 7 or Higher
Better firewall security for Windows XP (SP2 or higher), Windows Vista, and Windows 7 or higher has
increased the restrictions for data communications. Before connecting the Network Configurator and
an NJ/NX-series CPU Unit and starting communications through the following procedures, you may
need to change the settings of the Windows firewall as described in this section.
• If you select Option - Select Interface - Ethernet I/F.
• If you select Option - Select Interface - NJ/NX Series Ethernet Direct I/F.
• If you select Option - Select Interface - NJ/NX Series USB Port.
Precautions for Correct Use
The main function of the firewall is to prevent illegal access from external sources (e.g., the In-
ternet). The purpose of changing the firewall settings through this procedure is to connect the
Network Configurator to an NJ/NX-series CPU Unit. If your computer is connected to an in-
house network, make such changes only after confirming that they have no security impact on
the network.
A-4-1 Changing Windows Firewall Settings
Windows XP
1
When you attempt to connect to the NJ/NX-series CPU Unit from the Network Configurator, the
Windows Security Alert Dialog Box is displayed.
2
Click the Unblock Button.
This allows USB connection and EtherNet/IP connection to the Network Configurator, and you
will be able to connect to the NJ/NX-series CPU Unit via the Network Configurator.
Windows Vista or Windows 7 or Higher
Use the following procedure to change the settings.
Always perform steps 1 to 6 if you cannot go online. The User Account Control Dialog Box may be
displayed during this procedure. If it appears, click the Continue Button and continue with the proce-
dure.
1
Select Control Panel from the Windows Start Menu, and select Classic View to change the
view.
A-46 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
2
Open Administrative Tools, and select Windows Firewall with Advanced Security in the
displayed dialog box.
3
Select Inbound Rules under Windows Firewall with Advanced Security on Local
Computer on the left side of the Windows Firewall with Advanced Security Dialog Box.
4
Select New Rule under Inbound Rules in the Actions Area on the right side of the dialog box.
5
Follow the steps below to make the settings in the New Inbound Rule Wizard Dialog Box. Se-
lect the specified option at each step, and click the Next Button to move to the next step.
Rule Type Select Custom.
Program Select All Programs.
Protocol and support Select ICMPv4 as the protocol type.
Scope Select Any IP address for all.
Action Select Allow the connection.
Profile Select Domain, Private, and Public.
Name Enter an arbitrary name (e.g., Omron_EIP).
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-47
Higher
A-4
Precautions
for
Using
the
Network
Configurator
on
Windows
XP,
Windows
Vista,
or
Windows
7
or
A
A-4-1
Changing
Windows
Firewall
Settings
Appendices
6
Click the Finish Button. The rule that you defined (i.e., Omron_EIP) is registered in the list of
Inbound Rules.
Close the Windows Firewall with Advanced Security Dialog Box.
7
When you attempt to connect to the NJ/NX-series CPU Unit from the Network Configurator, the
Windows Security Alert Dialog Box is displayed.
8
Click the Allow access Button.
(On Windows 7) This allows USB connection and EtherNet/IP connection to the Network Con-
figurator, and you will be able to connect to the NJ/NX-series CPU Unit via the Network Config-
urator.
A-48 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
A-5 Variable Memory Allocation Methods
You must be aware of the way in which memory is allocated to variables to align the memory locations
of the members of structure or union variables with variables in other devices. Adjustments are neces-
sary mainly when structure or union variables are used in the following type of communications with
other devices.
• When using EtherNet/IP tag data links or CIP messages to access variables between NJ/NX-series
CPU Units and other CPU Units
• When using structure or union variables to exchange data with devices other than CPU Units, such
as ID Tags
A-5-1 Variable Memory Allocation Rules
The amount of memory and the memory locations that are allocated for a variable depend on the data
type of the variable. The amount of memory and the memory locations that are allocated for array ele-
ments, structure members, and union members depend on the data types, but also on the declara-
tions that are made for the arrays, structures, and unions.
Data Type Alignment and Memory Allocation Amounts
The data size is determined for each data type. The data size is the minimum amount of memory that
is required to store the value or values of that data type.
On the other hand, memory for variables is automatically structured by the Controller for the most effi-
cient access. Therefore, the total amount of memory that is required for variables is not necessarily the
total of the data sizes of the variables. For example, if WORD and DWORD variables are declared, the
total of the data sizes is six bytes, but eight bytes are allocated in memory, as shown in the following
figure.
Memory Variable Table
Bytes Name Data type
Variable A First byte A WORD
First byte + 1 WORD data: 2 bytes B DWORD
First byte + 2
First byte + 3 Not used: 2 bytes
Variable B First byte + 4
First byte + 5
DWORD data: 4 bytes
First byte + 6
First byte + 7
This information for determining the location of a variable in memory is called the alignment. The align-
ment is determined for each data type. The amount of memory and the memory locations for the varia-
bles are given below.
Item Specification
Amount of memory that is allo- An integral multiple of the alignment. However, the minimum amount
cated of memory is the data size.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-49
A-5
Variable
Memory
Allocation
Methods
A
A-5-1
Variable
Memory
Allocation
Rules
Appendices
Item Specification
Locations in memory At an integral multiple of the alignment starting from the start of the
variable in memory.
The alignments and the amounts of memory that are allocated for the basic data types and enumera-
tions are given below.
Amount of memory that is allo-
Data type Alignment [bytes]
cated [bytes]
BOOL 2 2
BYTE, USINT, or SINT 1 1
WORD, UINT, or INT 2 2
DWORD, UDINT, or DINT 4 4
LWORD, ULINT, or LINT 8 8
REAL 4 4
LREAL 8 8
TIME, DATE, TIME_OF_DAY, or 8 8
DATE_AND_TIME
STRING[N+1]*1 1 N+1
Enumerations 4 4
*1. N is the maximum number of characters handled. For example, if a maximum of 10 single-byte characters
are handled, the NULL character is added, so memory for 11 characters must be reserved.
The elements of arrays and the members of structures and unions are located in memory for the most
efficient access. The alignments and the amounts of memory that are allocated for arrays, structures,
and unions are determined by the variable declarations, as described below.
Data type Alignment Amount of memory that is allocated
Array Same as alignment of the data type of (Amount of memory that is allocated for the data type of
the elements the elements) × Number of elements*1
Structure The largest alignment of all of the The integral multiple of the alignment that is larger than
members the total amount of memory that is allocated when the
members are arranged in order at integral multiples of
the alignment of the data types of the members
Union The largest alignment of all of the The largest amount of memory that is allocated for any
members of the members
*1. BOOL arrays are an exception. Refer to Precautions for Correct Use, below, for the amount of memory that
is allocated for BOOL arrays.
A-50 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Precautions for Correct Use
Amount of Memory That Is Allocated for BOOL Arrays
Two bytes are allocated in memory for individual BOOL variables, BOOL structure members, and
BOOL union variables.
However, for a BOOL array, two bytes of memory are not allocated for each element. One bit is
allocated in order for each element. For the entire array, a multiple of two bytes of memory is allo-
cated (including unused bits).
Memory Variable Table
Bytes Name Data type
Variable A First byte A BOOL
Two bytes are allocated.
First byte + 1 B ARRAY[1..5]OF BOOL
Variable B First byte + 2 C ARRAY[0..18]OF BOOL
Two bytes are allocated
First byte + 3
for 5 elements.
Variable C First byte + 4
First byte + 5
Four bytes are allocated
First byte + 6 for 19 elements.
First byte + 7
Therefore, the following formula gives the amount of memory that is allocated for a BOOL array.
For 1 to 16 elements, 2 bytes are allocated. For 17 to 32 elements, 4 bytes are allocated.
Number of
elements − 1
Amount of memory = 2 +2
16
Truncate the decimal portion of the result
of the calculation in brackets.
Specific examples of the rules for memory allocation for variables of each data type are given below.
Basic Data Types
 Variables with One-Byte Alignments (e.g., BYTE)
One byte of memory is allocated for the one-byte alignment.
Example: Two consecutive BYTE variables
Memory Variable Table
Bytes
Name Data type
First byte Variable A, 1 byte A BYTE
First byte + 1 Variable B, 1 byte B BYTE
 Variables with Two-byte Alignments (e.g., BOOL and WORD)
Two bytes of memory are allocated for the two-byte alignment.
Example: Two consecutive BOOL variables
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-51
A-5
Variable
Memory
Allocation
Methods
A
A-5-1
Variable
Memory
Allocation
Rules
Appendices
First byte + Variable Table
Memory
(integer multiple of 2)
Name Data type
Bytes
First byte + First byte A BOOL
(integer multiple of 2) First byte + 1 Variable A, 2 bytes B BOOL
First byte + 2
Variable B, 2 bytes
First byte + 3
 Variables with Four-byte Alignments (e.g., DWORD)
Four bytes of memory are allocated for the four-byte alignment.
The location of the first byte of data in memory is an integer multiple of four bytes. Therefore, if a
variable with a two-byte alignment, such as WORD data, is inserted, two bytes of unused memory
will remain.
Example: Consecutive variables in the following order: DWORD, WORD, and DWORD
First byte + Variable Table
Memory
(integer multiple of 4) Name Data type
Bytes
First byte A DWORD
First byte + 1 Variable A, B WORD
First byte + First byte + 2 4 bytes C DWORD
(integer multiple of 2)
First byte + 3
First byte + 4 Variable B,
First byte + 5 2 bytes
First byte +
First byte + 6
(integer multiple of 4) Not used.
First byte + 7
First byte + 8
First byte + 9 Variable C,
First byte + 10 4 bytes
First byte + 11
 Variables with Eight-byte Alignments (e.g., LWORD)
Eight bytes of memory are allocated for the eight-byte alignment.
The location of the first byte of data in memory is an integer multiple of eight bytes. Therefore, if a
variable with a two-byte alignment, such as WORD data, is inserted, six bytes of unused memory
will remain. If a variable with a four-byte alignment, such as DWORD data, is inserted, four bytes of
unused memory will remain.
Example: Consecutive variables in the following order: LWORD, WORD, and LWORD
A-52 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
First byte + Variable Table
(integer multiple of 8) Memory
Name Data type
Bytes
First byte A LWORD
First byte + 1 B WORD
First byte + 2 C LWORD
Variable A,
First byte + 3
8 bytes
First byte + 4
First byte + 5
First byte +
(integer multiple of 2) First byte + 6
First byte + 7
First byte + 8
Variable B,
First byte + 9
2 bytes
First byte + 10
First byte + 11
First byte + 12
Not used.
First byte + 13
First byte +
First byte + 14
(integer multiple of 8)
First byte + 15
First byte + 16
First byte + 17
First byte + 18
Variable C,
First byte + 19
8 bytes
First byte + 20
First byte + 21
First byte + 22
First byte + 23
Arrays
A continuous section of memory is allocated for the elements of the array based on the data size of
the data type of the array variable. The alignment of an array is the same as alignment of the data
type of the elements.
Example: Continuous variables in the following order: two BOOL variable, one BOOL array with five
elements, one BOOL array with 19 elements, and one BOOL array with four elements
First byte + Variable Table
Memory
(integer multiple of 2) Name Data type
Bytes
First byte + First byte Variable A, A BOOL
(integer multiple of 2)
First byte + 1 2 bytes B BOOL
First byte + First byte + 2 Variable B, C ARRAY[1..5]OF BOOL
(integer multiple of 2)
First byte + 3 2 bytes D ARRAY[0..18]OF BOOL
F (inir ts et gb ey rt e m + u ltiple of 2) First byte + 4 Variable C, E ARRAY[5..8]OF BOOL
First byte + 5 2 bytes
First byte + 6
First byte + 7 Variable D,
First byte +
First byte + 8 4 bytes
(integer multiple of 2)
First byte + 9
First byte + 10 Variable E,
First byte + 11 2 bytes
Example: INT array with five elements
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-53
A-5
Variable
Memory
Allocation
Methods
A
A-5-1
Variable
Memory
Allocation
Rules
Appendices
First byte + Memory Variable Table
(integer multiple of 2) Bytes Name Data type
First byte + A[0] First byte
Variable A ARRAY[0..4] OF INT
(integer multiple of 2)
First byte + 1
First byte + A[1] First byte + 2
(integer multiple of 2) First byte + 3 Variable A,
First byte + A[2] First byte + 4 10 bytes
(integer multiple of 2)
First byte + 5
First byte + A[3] First byte + 6
(integer multiple of 2) First byte + 7
A[4] First byte + 8
First byte + 9
Example: BYTE array with four elements for each dimension with two-dimensional array
Memory Variable Table
Bytes Name Data type
A[0, 0] First byte
Variable A ARRAY[0..3, 0..3] OF BYTE
A[0, 1] First byte + 1
A[0, 2] First byte + 2
A[0, 3] First byte + 3
A[1, 0] First byte + 4
A[1, 1] First byte + 5
A[1, 2] First byte + 6
A[1, 3] First byte + 7
A[2, 0] First byte + 8
A[2, 1] First byte + 9
A[2, 2] First byte + 10
A[2, 3] First byte + 11
A[3, 0] First byte + 12
A[3, 1] First byte + 13
A[3, 2] First byte + 14
A[3, 3] First byte + 15
Example: WORD array with three elements for each dimension with two-dimensional array
First byte + Memory Variable Table
(integer multiple of 2) Bytes
Name Data type
First byte + B[0, 0] First byte Variable B ARRAY[0..2, 0..2] OF WORD
(integer multiple of 2) First byte + 1
First byte + B[0, 1] First byte + 2
(integer multiple of 2) First byte + 3
First byte + B[0, 2] First byte + 4
(integer multiple of 2) First byte + 5
First byte + B[1, 0] First byte + 6
(integer multiple of 2) First byte + 7
First byte + B[1, 1] First byte + 8
(integer multiple of 2) First byte + 9
First byte + B[1, 2]First byte + 10
(integer multiple of 2) First byte + 11
First byte + B[2, 0]First byte + 12
(integer multiple of 2)
First byte + 13
First byte + B[2, 1]First byte + 14
(integer multiple of 2)
First byte + 15
B[2, 2]First byte + 16
First byte + 17
A-54 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Structures
For a structure variable, the members are located in memory in the order that they are declared. Each
member is located at an integer multiple of the alignment of the data type of the member. Therefore,
there can be unused memory between members or at the end of members. The alignment of a struc-
ture is the largest alignment of all of the members. The amount of memory that is allocated is the inte-
gral multiple of the alignment that is larger than the total amount of memory that is allocated when the
members are arranged in order at integral multiples of the alignment of the data types of the members.
Example: The alignments and the amounts of memory that are allocated for the four variable declara-
tions given in the following figure are given in the following table.
Amount of memory that is allocated
Variable Alignment [bytes]
[bytes]
A 4 8
B 4 8
C 4 16
D 4 16
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-55
A-5
Variable
Memory
Allocation
Methods
A
A-5-1
Variable
Memory
Allocation
Rules
Appendices
First byte + Data Type Definitions
Memory
(integer multiple of 4) Name Data type
Bytes
Structure STR_A STRUCT
A.a First byte
a DINT
First byte + 1
b INT
First byte + 2
First byte + 3 Variable A, Name Data type
A.b First byte + 4 8 bytes Structure STR_B STRUCT
First byte + 5 c INT
First byte +
First byte + 6 d DINT
(integer multiple of 4) Not used.
First byte + 7
Variable Table
B.c First byte + 8
Name Data type
First byte + 9
Variable A Structure STR_A
First byte + 10 Variable B,
Not used. Variable B Structure STR_B
First byte + 11 8 bytes
Variable C ARRAY[0..1] OF STR_A
B.d First byte + 12
Variable D ARRAY[0..1] OF STR_B
First byte + 13
First byte +
(integer multiple of 4)First byte + 14
First byte + 15
C[0].a First byte + 16
First byte + 17
First byte + 18
First byte + 19
C[0].b First byte + 20
First byte + 21
First byte + 22 Variable C,
Not used.
First byte + 23 16 bytes
C[1].a First byte + 24
First byte + 25
First byte + 26
First byte + 27
C[1].b First byte + 28
First byte + 29
First byte +
First byte + 30
(integer multiple of 4) Not used.
First byte + 31
D[0].c First byte + 32
First byte + 33
First byte + 34
Not used.
First byte + 35
D[0].d First byte + 36
First byte + 37
First byte + 38 Variable D,
First byte + 39 16 bytes
D[1].c First byte + 40
First byte + 41
First byte + 42
Not used.
First byte + 43
D[1].d First byte + 44
First byte + 45
First byte + 46
First byte + 47
Example: The alignments and the amounts of memory that are allocated for the four variable declara-
tions given in the following figure are given in the following table.
Amount of memory that is allocated
Variable Alignment [bytes]
[bytes]
E 2 4
F 2 4
A-56 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Amount of memory that is allocated
Variable Alignment [bytes]
[bytes]
G 2 8
H 2 8
Data Type Definitions
Memory
First byte +
Bytes Name Data type
(integer multiple of 2)
E.a[0] to E.a[7] First byte Structure STR_C STRUCT
First byte + 1 NNoott uusseedd.. Variable E, a ARRAY[0..7] OF BOOL
E.b First byte + 2 4 bytes b BYTE
First byte +
First byte + 3 Not used.
(integer multiple of 2) Name Data type
F.c First byte + 4 Structure STR_D STRUCT
First byte + 5 Not used. Variable F, c BYTE
First byte + F.d[0] to F.d[7] First byte + 6 4 bytes d ARRAY[0..7] OF BOOL
First byte + 7 Not used.
(integer multiple of 2)
Variable Table
G[0].a[0] to G[0].a[7] First byte + 8
Name Data type
First byte + 9 Not used.
Variable E Structure STR_C
G[0].b First byte + 10
Variable F Structure STR_D
First byte + 11 Not used. Variable G,
Variable G ARRAY[0..1] OF STR_C
G[1].a[0] to G[1].a[7] First byte + 12 8 bytes
Variable H ARRAY[0..1] OF STR_D First byte + 13 Not used.
G[1].b First byte + 14
First byte +
First byte + 15 Not used.
(integer multiple of 2)
H[0].c First byte + 16
First byte + 17 Not used.
H[0].d[0] to H[0].d[7] First byte + 18
First byte + 19 Not used. Variable H,
H[1].c First byte + 20 8 bytes
First byte + 21 Not used.
H[1].d[0] to H[1].d[7] First byte + 22
First byte + 23 Not used.
Unions
For a union variable, the members overlap in the same memory locations.
The alignment of a union is largest alignment of all of the members. The amount of memory that is
allocated is the largest amount of memory that is allocated for any of the members.
Example: The alignments and the amounts of memory that are allocated for the four variable declara-
tions given in the following figure are given in the following table.
Amount of memory that is allocated
Variable Alignment [bytes]
[bytes]
A 4 4
B 4 4
C 4 8
D 4 8
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-57
A-5
Variable
Memory
Allocation
Methods
A
A-5-1
Variable
Memory
Allocation
Rules
Appendices
First byte + Data Type Definitions
Memory
(integer multiple of 4)
Name Data type
Bytes
A.a A.b First byte Union UNI_A UNION
First byte + 1 a DWORD
First byte + First byte + 2 Variable A, b WORD
(integer multiple of 4) 4 bytes
First byte + 3 Name Data type
B.c B.d First byte + 4 Union UNI_B UNION
First byte + First byte + 5 Variable B, c WORD
(integer multiple of 4) First byte + 6 4 bytes d DWORD
First byte + 7
Variable Table
C[0].a C[0].b First byte + 8
Name Data type
First byte + 9
Variable A Union UNI_A
First byte + 10
Variable C, Variable B Union UNI_B
First byte + 11
8 bytes Variable C ARRAY[0..1] OF UNI_A
C[1].a C[1].b First byte + 12
Variable D ARRAY[0..1] OF UNI_B
First byte + 13
First byte +
First byte + 14
(integer multiple of 4)
First byte + 15
D[0].c D[0].d First byte + 16
First byte + 17
First byte + 18
Variable D,
First byte + 19
8 bytes
D[1].c D[1].d First byte + 20
First byte + 21
First byte + 22
First byte + 23
A-5-2 Important Case Examples
When you exchange structure variable data between an NJ/NX-series CPU Unit and a remote device,
you must align the memory configuration of the structure variable members with those of the remote
device.
This section describes what to do in either the NJ/NX-series CPU Unit or in the remote device.
Additional Information
This is not necessary when you exchange data between NJ/NX-series CPU Units.
Aligning the Memory Configuration with a Remote Device
There are two methods that you can use to align the memory configuration with a remote device.
For example, the differences in the memory configuration for structure variables between an NJ/NX-
series CPU Unit and a CJ-series CPU Unit are shown below.
This section describes how to align the memory configuration for these Units.
A-58 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
Data Type Definitions Data Type Definitions
Name Data type NJ/NX-series Structure Variable NJ_X Name Data type CJ-series Structure Variable CJ_X
Structure Y STRUCT Bytes Structure Y STRUCT Bytes
a DINT First byte a a DINT First byte a
b INT b INT
c DINT First byte + 4 b c DINT First byte + 4 b
Variable Table First byte + 6 Not used. Variable Table First byte + 6 c
Name Data type First byte + 8 c Name Data type
Variable NJ_X Structure Y Variable CJ_X Structure Y
 Method 1: Changing the Memory Configuration of the Structure Variable in
the NJ/NX-series CPU Unit
With an NJ/NX-series CPU Unit, you can specify member offsets to change the memory configura-
tion of the members of a structure variable. You can change the memory configuration of the mem-
bers of a structure variable in the NJ/NX-series CPU Unit so that it is the same as the memory con-
figuration in a remote device that the CPU Unit will communicate with.
Specify the member offsets for a structure variable when you register the structure data type.
To communicate with a CJ-series CPU Unit, you can set the offset type to CJ to automatically use
the CJ-series memory configuration.
You can set the offset type to User to freely set your own offsets.
Version Information
The following table gives the unit version of the CPU Units and the Sysmac Studio version that
are required to specify member offsets.
Sysmac Studio version
Unit version of CPU Unit
Ver.1.01 or lower Ver.1.02 Ver.1.03 or higher
Ver.1.01 or later Not possible. Possible.*1 Possible.
Ver.1.00 Not possible. Not possible. Not possible.
*1. You cannot select the memory offset type. You can set member offsets.
If you change the memory configuration of a structure variable by setting offsets, you must make
the same changes for the same structure variable in other NJ/NX-series CPU Units on the network.
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for the procedure to
change the memory configuration of a structure variable.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-59
A-5
Variable
Memory
Allocation
Methods
A
A-5-2
Important
Case
Examples
Appendices
Example: The following example shows how the memory configuration of the structure variable in
the NJ/NX-series CPU Unit is changed to match the memory configuration of the structure variable
in the CJ-series CPU Unit.
Data Type Definitions NJ/NX-series Structure Data Type Definitions CJ-series Structure
Name Data type Variable NJ_X Name Data type Variable CJ_X
Structure Y STRUCT Bytes Structure Y STRUCT Bytes
a DINT First byte a a DINT First byte a
b INT b INT
c DINT First byte + 4 b c DINT First byte + 4 b
Communications is
Variable Table First byte + 6 Not used. not possible Variable Table First byte + 6 c
Name Data type First byte + 8 c because the memory Name Data type
Variable NJ_X Structure Y configuration is not Variable CJ_X Structure Y
the same.
To align the memory configurations in the NJ-series and CJ-series CPU Units, offsets are set in the Sysmac Studio.
Here, the following offsets are set for member c of data type Y of the structure variable NJ_X.
(1) Offset type is set to CJ.
(3) Bit Offset
Set the location of the first bit of the member variable.
(2) Byte Offset
Set the location of the first byte of the member from
the beginning of the structure variable.
(1) Offset Type
Specify User.
Memory Bytes Memory Bytes
First byte First byte
(2) Byte Offset
First byte + 1 First byte + 1 Variable c starts from the 6th
First byte + 2 Variable a First byte + 2 Variable a byte from the start of the
structure.
First byte + 3 First byte + 3
First byte + 4 First byte + 4
Variable b Variable b
First byte + 5 First byte + 5
First byte + 6 First byte + 6
Not used.
First byte + 7 First byte + 7
Variable c
First byte + 8 The location of First byte + 8
variable c changes
First byte + 9 First byte + 9
Variable c according to the
First byte + 10 offsets. First byte + 10
First byte + 11 First byte + 11
(3) Bit Offset
Set a byte offset of 6 and a bit offset Variable c starts from the 0th
of 0 (no offset) for variable c. bit from the start of the byte.
A-60 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
 Method 2: Changing the Memory Configuration of the Structure Variable in
the Remote Device
You can insert a member into the structure variable of the remote device to change it to match the
memory configuration of the structure variable in the NJ/NX-series CPU Unit.
Both the memory configuration and the data types must be the same between the two structure
variables. You therefore need to create the same members in both the remote device and the
NJ/NX-series CPU Unit.
Example: The following example shows how the memory configuration of the structure variable in
the CJ-series CPU Unit is changed to match the memory configuration of the structure variable in
the NJ/NX-series CPU Unit.
Data Type Definitions Data Type Definitions
NJ/NX-series Structure Variable NJ_X CJ-series Structure Variable CJ_X
Name Data type Name Data type
Structure Y STRUCT Bytes Structure Y STRUCT Bytes
a DINT First byte a a DINT First byte a
b INT b INT
c DINT First byte + 4 b c DINT First byte + 4 b
Variable Table First byte + 6 Not used. Variable Table First byte + 6 c
Name Data type First byte + 8 Name Data type
Variable NJ_X Structure Y c Variable CJ_X Structure Y
Make the following changes to align the memory
configurations in the NJ/NX-series and CJ-series CPU Units.
Data Type Definitions Data Type Definitions
Name Data type NJ/NX-series Structure Variable NJ_X Name Data type CJ-series Structure Variable CJ_X
Structure Y STRUCT Bytes Structure Y STRUCT Bytes
a DINT First byte a a DINT First byte a
b INT b INT
b2 INT First byte + 4 b b2 INT First byte + 4 b
c DINT First byte + 6 b2 c DINT First byte + 6 b2
Variable Table First byte + 8 c Variable Table First byte + 8 c
Name Data type Name Data type
Variable NJ_X Structure Y Variable CJ_X Structure Y
(2) Add the dummy variable b2 that you created in the (1) Add a dummy member variable b2 that matches the
CJ-series CPU Unit to the NJ/NX-series CPU Unit as well. unused memory location on the NJ/NX-series CPU Unit.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-61
A-5
Variable
Memory
Allocation
Methods
A
A-5-2
Important
Case
Examples
Appendices
A-6 Precautions When Accessing Exter-
nal Outputs in CPU Units
Observe the following precautions when you access variables or I/O memory addresses that are as-
signed to external outputs in an NJ/NX-series CPU Unit.
 Precaution on Writing from External Devices, Variables That Are Assigned
to External Outputs
Any value that is written to a variable that is assigned to an external output in an NJ/NX-series CPU
Unit through a tag data link or communications instruction will be overwritten by the execution re-
sults of the user program.
The value that is written from the tag data link or communications instruction will therefore not be
output to the external device.
The following types of variable are assigned to the external outputs.
CPU Unit Common
• The device variables (or global variables) that are assigned to an I/O port of an EtherCAT output
slave
NJ-series CPU Unit
• The devices variables (or global variables) that are assigned to an I/O port of a CJ-series Basic
Output Unit
• The global variables with AT specifications to output bits that are assigned to CJ-series Basic
Output Units
NX502 CPU Unit, NX102 CPU Unit, and NX1P2 CPU Unit
• The global variables with AT specifications to the memory used for CJ-series Units, of which Net-
work Publish attributes are set to output
 Precaution When Directly Writing to I/O Memory Addresses Assigned to
Output Bits for CJ-series Basic Output Units
Any value that is written to an I/O memory address that corresponds to an output bit that is as-
signed to a CJ-series Basic Output Unit through a tag data link will be overwritten by the execution
results of the user program.
The value that is written directly to the I/O memory address from the tag data link will therefore not
be output to the external device.
A-62 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
A-7 TCP State Transitions
There are 11 types of TCP connection state.
You can check the TCP state with the TCP connection status that is output by the SktGetTCPStatus
(Read TCP Socket Status) instruction.
The table below shows the TCP states and what each state means.
TCP state Definition
CLOSED The connection is closed.
LISTEN The server is waiting for a connection request (SYN) with a passive open.
SYN SENT The client sent a connection request (SYN) for an active open and is waiting for acknowl-
edgment (SYN + ACK).
SYN RECEIVED The server sent an acknowledgment (SYN + ACK) to a connection request (SYN) and is
waiting for acknowledgment (ACK).
ESTABLISHED A connection is established.
CLOSE WAIT The server sent acknowledgment (ACK) to a connection close request (FIN) and is wait-
ing for the server application to be ready to close.
FIN WAIT-1 The client sent a connection close request (FIN) and is waiting for acknowledgment
(ACK).
CLOSING The client and server simultaneously received a connection close request (FIN) and are
waiting for acknowledgment (ACK).
LAST-ACK The server sent a connection close request (FIN) and is waiting for acknowledgment
(ACK).
FIN WAIT-2 The client is waiting for a connection close request (FIN).
TIME WAIT The client received acknowledgment (ACK) to a connection close request (FIN) and is
waiting for it to be received and processed by the server.
The TCP state changes as requests and acknowledgments are received from the remote node, and
as TCP socket connection and close instructions are executed in the user program.
When the state changes, a connection request (SYN), close request (FIN), and acknowledgment
(ACK) to those requests are sent to and received from the remote node.
The following figure shows TCP state transitions.
The TCP states are given in £ in the figure. Between states, the text in the upper row indicates the
condition for the state change, and the text in the lower row indicates the action that is performed at
the state change. (If no action is performed, none is given.)
Example: When SYN and ACK are received in SYN SENT state, ACK is sent and the state changes to
ESTABLISHED.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-63
A-7
TCP
State
Transitions
A
Appendices
CLOSED
Active OPEN
SYN sent.
Passive OPEN CLOSE
CLOSE
LISTEN
SYN received. SEND
SYN + ACK sent. SYN sent.
SYN SYN received. SYN
RECIEVED ACK sent.
SENT
ACK for SYN received. SYN + ACK received.
ACK sent.
CLOSE
FIN sent.
ESTABLISHED
CLOSE FIN received.
FIN sent. ACK sent.
FIN WAIT-1 CLOSE WAIT
FIN received.
ACK for FIN received. CLOSE
ACK sent.
FIN sent.
FIN WAIT-2 CLOSING LAST-ACK
FIN received. ACK for FIN received. ACK for FIN received.
ACK sent.
Timeout=2MSL
TIME WAIT CLOSED
A-64 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
Appendices
A-8 Example of NX Unit Setting Using NX
Configuration Object Service
You can change the settings for the NX Unit mounted to the CPU Rack by using the NX Configuration
object service.
This section provides examples of the procedure for NX Unit setting using the NX Configuration object
service.
Refer to 7-5-3 NX Configuration Object (Class ID: 74 hex) on page 7-53 for details on the NX Configu-
ration object.
The following three types of procedure are given as the examples.
• Changing the Unit operation settings for a singe NX Unit.
• Changing the Unit operation settings for multiple NX Units.
• Initializing the Unit operation settings for a singe NX Unit.
Precautions for Correct Use
Refer to 15-2 Checking Status with the Network Configurator on page 15-3 for troubleshooting
errors that may occur while setting NX Units using the NX Configuration object service.
Version Information
You can perform the NX Unit setting using the NX Configuration object service only with NX502
CPU Units and NX102 CPU Units.
A-8-1 Changing the Unit Operation Settings for Singe NX Unit
Change the Unit operation settings for a single NX Unit mounted to the Controller. In this example, the
unit number of the NX Unit is 1.
The following table gives the setting procedure.
CIP Object to use
Step Description Unit
Class ID Instance ID Service code
number
1 Change the parameter write 0x74 0x01 0x37 0x01
mode of the NX Unit to Write NX Configuration Switch parameter
mode. object write mode
2 Write values to the NX object 0x74 0x01 0x34 0x01
of the NX Unit. NX Configuration Write NX object
object
3 Save the values that are set in 0x74 0x01 0x36 0x01
the NX Unit. NX Configuration Save parameter
object
4 Restart the NX Unit. 0x74 0x01 0x35 0x01
NX Configuration Restart NX unit
object
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) A-65
A-8
Example
of
NX
Unit
Setting
Using
NX
Configuration
Object
Service
A
A-8-1
Changing
the
Unit
Operation
Settings
for
Singe
NX
Unit
Appendices
A-8-2 Changing the Unit Operation Settings for Multiple NX Units
Change the Unit operation settings for multiple NX Units mounted to the Controller. In this example,
the unit numbers of the NX Units are 1 and 2.
The following table gives the setting procedure.
CIP Object to use
Step Description Unit
Class ID Instance ID Service code
number
1 Change the parameter write 0x74 0x01 0x37 0x01
mode of the NX Unit with unit NX Configuration Switch parameter
number 1 to Write mode. object write mode
2 Change the parameter write 0x74 0x01 0x37 0x02
mode of the NX Unit with unit NX Configuration Switch parameter
number 2 to Write mode. object write mode
3 Write values to the NX object 0x74 0x01 0x34 0x01
of the NX Unit with unit num- NX Configuration Write NX object
ber 1. object
4 Write values to the NX object 0x74 0x01 0x34 0x02
of the NX Unit with unit num- NX Configuration Write NX object
ber 2. object
5 Save the values that are set in 0x74 0x01 0x36 0x01
the NX Unit with unit number NX Configuration Save parameter


Question: object

Answer:
6 Save the values that are set in 0x74 0x01 0x36 0x02
the NX Unit with unit number NX Configuration Save parameter