Question: 25. XX. XX 130. 26. XX. XX

Answer: NJ/NX-series


Question: 25.36.253 130.26.2.254

Answer:
CPU Unit Destination Node
Built-in EtherNet/IP Port IP router
The host fields are set to 0 in the destination IP address.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-7
4-1
TCP/IP
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
 Port Forward (NX502 and NX102 CPU Units)
Setting Description Default
IP Forward Select whether to transfer IP packets between communications *1
ports.
*1. For NX502 CPU Units, the default is Do not use.
For NX102 CPU Units, the default is Use.
Precautions for Correct Use
For CPU Units other than the NX502 CPU Unit and NX102 CPU Unit, there is no setting for port
forward. To disable port forward, specify the IP address of the built-in EtherNet/IP port in the
destination IP address of the Packet Filter.
 Packet Filter
For information on usage and restrictions of Packet Filter, refer to 5-4 Packet Filter on page 5-20.
Setting Description Default
Packet Filter Select whether to use Packet Filter or not. Do not use
Use
Do not use
Source Set the conditions for the source. ---
IP Address Specifi- Select the method for specifying the IP address of the source. any
cation Method any*1
IP address specification
IP Address If the IP address specification method is IP address specification, set None
the source IP address.*2
Mask If the IP address specification method is IP address specification, set None
the mask of source IP address.*3
Destination Set the conditions for the destination. ---
IP Address Specifi- Same as those for the source.
cation Method
IP Address
Mask
Protocol Set the communications protocol. any
any*4
tcp
udp
igmp*5
icmp*6
Source Port If tcp or udp is selected for Protocol, set the source port conditions. ---
4-8 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
Setting Description Default
Specification Select the method for specifying the IP packets of the source port. any
Method any*7
Port specification
Range Speci- Specify whether or not to set the port range if the specification method No check.
fication selected is Port specification.
If it is selected, reception from the source ports from the Start Number
to the End Number is allowed.
If it is not selected, reception from the source port specified by the
Start Number is allowed.
No check.
Checked.
Start Number Set the start number when Port specification is selected for the speci- None
fication method.
1 to 65535
End Number Set the end number when the specification method is Port None
specification and the range specification is selected.
1 to 65535
Destination Port Set the conditions for the destination port if tcp or udp is selected for Protocol.
Same as the settings for the source port.
Specification
Method
Range Speci-
fication
Start Number
End Number
*1. If you select any, packets from any IP addresses will be allowed.
*2. The allowed IP address is calculated by the logical AND of the IP address and the Mask. If you want to
allow more than one IP address, mask a part of the IP address by setting the Mask. In this case, set 0 to
the bits to be masked in the IP address and Mask.
The following is an example of how to calculate the allowed IP addresses.
Example 1. Allowing IP address 192.168.250.1
If you want to allow one IP address, set 255.255.255.255 to the mask.
Setting Decimal notation Binary notation
IP address 192.168.250.1 11000000.10101000.11111010.00000001
Mask 255.255.255.255 11111111.11111111.11111111.11111111
Example 2. Allowing IP address 192.168.250.***
Set 255.255.255.0 to the mask to mask the lower 8 bits of the IP address.
Setting Decimal notation Binary notation
IP address 192.168.250.0 11000000.10101000.11111010.00000000
Mask 255.255.255.0 11111111.11111111.11111111.00000000
Example 3. Allowing IP address 192.168.250.1 to 192.168.250.31
Set 255.255.255.224 to the mask to mask the lower 5 bits if the IP address.
Setting Decimal notation Binary notation
IP address 192.168.250.0 11000000.10101000.11111010.00000000
Mask 255.255.255.224 11111111.11111111.11111111.11100000
*3. Set 0 to the bits to be masked in Mask. Multiple bits can be masked, but only bits from the least signifi-
cant can be masked. It is not possible to mask the higher bits, such as 0.255.255.255, or the middle bits,
such as 255.0.255.255.
The following are examples of setting a mask.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-9
4-1
TCP/IP
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
Example 1. Masking the lower 8 bits
Set 0 to the lower 8 bits.
Setting Decimal notation Binary notation
Mask 255.255.255.0 11111111.11111111.11111111.00000000
Example 2. Masking the lower 24 bits
Set 0 to the lower 24 bits.
Setting Decimal notation Binary notation
Mask 255.0.0.0 11111111.00000000.00000000.00000000
*4. If you select any, packets from tcp, udp, igmp, and icmp will be allowed.
*5. Select igmp when EtherNet/IP tag data links are used for multicast and the built-in EtherNet/IP is speci-
fied as the originator.
*6. Select icmp for receiving Ping requests.
*7. If you select any, packets from any TCP/UDP port are allowed.
Version Information
Packet Filter is available in the following CPU Units of the stated versions.
• NJ-series, NX102, NX1P2 CPU Unit: Version 1.49 or later
• NX701 CPU Unit: Version 1.29 or later
• NX502-££££ CPU Unit: Version 1.60 or later
 Packet Filter (Simple)
You can select Use Packet Filter (Simple) on NX102 CPU Units only.
Setting Description Default
Packet Filter (Simple) Select whether or not to set conditions of IP packets to be re- Do not use
ceived at the communications port.
Pass Frame Set the following items as the conditions of IP packets to be re- ---
ceived at the communications port. You can set the conditions
under which up to 32 packets are allowed to be received.
This setting is valid only when the Use Option is selected for
Packet Filter (Simple).
Port Select the communications port to use Packet Filter (Simple). No.1: Port 1
No.2: Port 2
Specification Meth- Select the method for specifying IP packets to be received. No.1: any
od IP address specification No.2: any
any*1
IP Address Specify an IP address that is allowed to be received. None
Mask Set the mask for the IP address allowed to be received. If you None
select IP address specification for Specification Method,


Question: 255.255.255 is automatically set.

Answer:
*1. If you select any, packets from any IP addresses will be received.
4-10 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
Precautions for Correct Use
• Connections to NA-series and NS-series Programmable Terminals are restricted if this func-
tion is enabled. To make connections to these devices, register their IP addresses in the
Packet Filter (Simple) settings.
• If this function is enabled, you cannot connect the Sysmac Studio from a computer whose IP
address is not registered. Before enabling this function, confirm in advance that the IP ad-
dress of the computer is correctly registered.
• If this function is enabled, you cannot connect the Sysmac Studio to the Controller with the
Direct connection via Ethernet Option selected for the connection type. Select Controller -
Communications Setup to confirm that the connection type is Ethernet connection via a
hub.
• You can disable this function tentatively by starting the Unit in Safe Mode in case you forget
the registered IP address and cannot go online from the Sysmac Studio. Refer to
Troubleshooting When You Cannot Go Online from the Sysmac Studio in the NJ/NX-series
Troubleshooting Manual (Cat. No. W503) for details.
• You can use the Packet Filter (Simple) with Sysmac Studio version 1.49 or lower. Use the
Packet Filter instead of the Packet Filter (Simple) when you use Sysmac Studio version 1.50
or higher.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-11
4-1
TCP/IP
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
4-2 LINK Settings Display
NX701 CPU Unit NX502 CPU Unit
NX102 CPU Unit NJ-series CPU Unit
NX1P2 CPU Unit
 LINK Settings - Port 1 and Port 2 (NX701 CPU Units)
Set for each built-in EtherNet/IP port.
Setting Description Default
LINK settings Set the baud rate for the built-in EtherNet/IP ports.*1 Auto
• Auto
• 10 Mbps Half Duplex
• 10 Mbps Full Duplex
• 100 Mbps Half Duplex
• 100 Mbps Full Duplex
• 1000Mbps Full Duplex
*1. For an NX701 CPU Unit with the hardware revision B or later, Auto will be set regardless of the setting of
the Sysmac Studio. If an item other than Auto is selected and the setting is transferred from the Sysmac
Studio, Link Setting Not Supported (342B0000 hex) event will occur.
4-12 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
 LINK Settings - Port 1 and Port 2 (NX502 CPU Unit)
Set for each built-in Ethernet port.
Setting Description Default
LINK settings The baud rate for the built-in EtherNet/IP ports. Auto
This is fixed to Auto.
LLDP Specify whether to use LLDP or not. Use
 LINK Settings - Port 1 and Port 2 (NX102 CPU Units)
Set for each built-in EtherNet/IP port.
Setting Description Default
LINK settings Set the baud rate for the built-in EtherNet/IP ports. Auto
• Auto
• 10Mbps Half Duplex
• 10Mbps Full Duplex
• 100Mbps Half Duplex
• 100Mbps Full Duplex
LLDP Specify whether to use LLDP or not. Use
Version Information
A CPU Unit with unit version 1.64 or later is required to use LLDP.
 LINK Settings (NJ-series CPU Unit and NX1P2 CPU Unit)
Setting Description Default
LINK settings Set the baud rate for the built-in EtherNet/IP ports. *1 Auto
• Auto
• 10 Mbps Half Duplex
• 10 Mbps Full Duplex
• 100 Mbps Half Duplex
• 100 Mbps Full Duplex
*1. For an NJ-series CPU Unit with the hardware revision D or later, Auto will be set regardless of the setting
from the Sysmac Studio. If an item other than Auto is selected and the setting is transferred from the
Sysmac Studio, Link Setting Not Supported (342B0000 hex) event will occur.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-13
4-2
LINK
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
4-3 FTP Settings Display
Setting Description Default
FTP server Specify whether to use the FTP server or not. Do not use
FTP connections from external devices will not be possible if the
Do not use Option is selected.
Port No.*1,*2 Set the FTP port number of the built-in EtherNet/IP port. This set- 21
ting does not normally need to be changed.
The FTP control port is set here. The FTP data transfer port is al-
ways port 20.
Login name *1 Set the login name to externally connect to the built-in EtherNet/IP None
port via FTP.
(You can use up to 12 alphanumeric characters.)*3
Password*1 Set the password to externally connect to the built-in EtherNet/IP None
port via FTP.
(You can use 8 to 32 alphanumeric characters.)*3
*1. These settings are required when the Use Option is selected for the FTP server.
*2. The following ports are used by the system and cannot be set by the user: 20, 23, 25, 80, 110, 9610, and


Question: *3. The login name and password are case sensitive.

Answer:
Additional Information
Refer to Section 10 FTP Server on page 10-1 for details on the FTP server.
4-14 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
4-4 NTP Settings Display
Setting Description Default
NTP server clock infor- Set whether to obtain clock information from the NTP server to up- Do not get
mation date the clock in the CPU Unit.
Port No. *1 *2 Set the port number to use to connect to the NTP server to obtain 123
clock information. It is normally not necessary to change this set-
ting.
Server specifying meth- Set the method to use to specify the NTP server to obtain clock in- IP address
od*1 formation.
• IP address
• Host name
IP address Set the IP address of the NTP server. None
Specify this setting if the server specifying method is set to the IP
address Option.
Host name Set the host name of the NTP server (i.e., the domain name of the None
host).
Specify this setting if the server specifying method is set to the
Host name Option.
(Single-byte alphanumeric characters, dots, and hyphens: 200
characters max. with up to 63 single-byte alphanumeric characters
between dots.)
NTP operation timing*1 Set the time at which the NTP server is accessed to synchronize Specify a time
the clocks.
• Specify a time
• Specify a time interval
Time [hours:mi- The NTP server is accessed at the specified time. 00:00:00
nutes:seconds] (Setting range: 00:00:00 to 23:59:59)
Specify this setting if the NTP operation timing is set to the
Specify a time Option.
Interval [minutes] The NTP server is accessed when the specified period of time has 60 minutes
passed.
(Setting range: 1 to 1,440 minutes)
Specify this setting if the NTP operation timing is set to the
Specify a time interval Option.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-15
4-4
NTP
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
Setting Description Default
Timeout time (sec- Set the timeout detection time. 10 seconds
onds)*1 (Setting range: 1 to 255 seconds)
If the remote host does not respond, retry processing is performed
four times within the time interval that is set here.
If the Specify a time interval Option is selected for the NTP
operation timing, timing for the next execution of the NTP opera-
tion starts when the fourth retry processing times out.
*1. This setting is required when the Get Option is selected for the NTP server clock information.
*2. The following ports are used by the system and cannot be set by the user: 25, 53, 68, 110, 2222, 2223,
2224, 9600, and 44818.
Additional Information
Refer to Section 12 Automatic Clock Adjustment on page 12-1 for details on obtaining clock
information from the NTP server.
4-16 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
4-5 SNMP Settings Display
 SNMP Service
Setting Description Default
SNMP service Specify whether to use the SNMP monitor service.*1 Do not use
If the Do not use Option is selected, an SNMP manager cannot
connect from an external device.
Port No.*2 Set the port number to use to connect to the SNMP server that is 161
used to connect from an SNMP manager.
This setting does not normally need to be changed.
Address Set the communications device administrator’s name and instal- None
Location lation location as text information. You do not necessarily have to None
input all items. This information is read by the SNMP manager.
(You can input up to 255 single-byte alphanumeric characters for
each item.)
Send a recognition Set whether to send an authentication trap. Not selected
trap If you select Send a recognition trap and there is access from
an SNMP manager that is not set in Recognition 1 or Recognition
2, an authentication trap is sent to the SNMP manager.
If you select Send a recognition trap, specify the SNMP trap
settings on the SNMP Trap Tab.
*1. If you select the Use Option for the SNMP service, you also have to set Recognition 1 and 2 as descri-
bed below.
*2. The following ports are used by the system and cannot be set by the user: 25, 53, 68, 110, 2222, 2223,
2224, 9600, and 44818.
Additional Information
Refer to Section 13 SNMP Agent on page 13-1 for details on the SNMP service.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-17
4-5
SNMP
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
 Recognition 1
Setting Description Default
Recognition method Set the method to use to specify SNMP managers for which ac- IP address
cess is permitted.
• IP address
• Host name
Make these settings to permit access by only certain SNMP
managers.
Access is not allowed unless an IP address or host name is set.
IP address Set the IP address of the SNMP manager. None
If the default setting of 0.0.0.0 is used, access by all SNMP man-
agers is permitted.
(Set this setting if Recognition method in Recognition 1 is set to
the IP address Option.)
Host name Set the host name of the SNMP manager. None
(Set this setting if Recognition method in Recognition 1 is set to
the Host name Option.)
(Single-byte alphanumeric characters, dots, and hyphens: 200
characters max. with up to 63 single-byte alphanumeric charac-
ters between dots.)
Community name Set the community name to enable the SNMP manager to ac- public
cess information from the built-in EtherNet/IP port.
(Single-byte alphanumeric characters, dots, and hyphens: 255
characters max.)
 Recognition 2
Setting Description Default
Recognition 2 Specify whether to use the recognition 2 settings. Do not use
• Use
• Do not use
Recognition method Set the method to use to specify SNMP managers for which ac- IP address
cess is permitted.
• IP address
• Host name
Make these settings to permit access by only certain SNMP man-
agers.
Access is not allowed unless an IP address or host name is set.
IP address Set the IP address of the SNMP manager. None
If the default setting of 0.0.0.0 is used, access by all SNMP man-
agers is permitted.
(Set this setting if Recognition method in Recognition 2 is set to
the IP address Option.)
Host name Set the host name of the SNMP manager. None
(Set this setting if Recognition method in Recognition 2 is set to
the Host name Option.)
(Single-byte alphanumeric characters, dots, and hyphens: 200
characters max. with up to 63 single-byte alphanumeric charac-
ters between dots.)
Community name Set the community name to enable the SNMP manager to ac- public
cess information from the built-in EtherNet/IP port.
(Single-byte alphanumeric characters, dots, and hyphens: 255
characters max.)
4-18 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
4-6 SNMP Trap Settings Display
 SNMP Trap
Setting Description Default
SNMP trap Specify whether to use the SNMP trap (network error detec- Do not use
tion).*1
If the Do not use Option is selected for SNMP trap, SNMP traps
are not sent to the SNMP manager
Port No.*2 Set the port number to use to connect to the SNMP server. 162
It is normally not necessary to change this setting.
*1. If you specify to use the SNMP trap, you also have to set Trap 1 and Trap 2 as described below.
*2. The following ports are used by the system and cannot be set by the user: 25, 53, 68, 110, 2222, 2223,
2224, 9600, and 44818.
Additional Information
Refer to 13-1-1 Overview on page 13-2 for details on the SNMP trap.
 Trap 1
If the Use Option is selected for SNMP trap, you need to make the following settings.
Setting Description Default
Specifying method Set the specifying method for the SNMP manager destination for IP address
SNMP traps.
• IP address
• Host name
IP address Set the IP address of the SNMP manager. None
(Set this setting if the Specifying method in the Trap 1 settings
is set to the IP address Option.)
Host name Set the host name of the SNMP manager. None
(Set this setting if the Specifying method in the Trap 1 settings
is set to the Host name Option.)
(Single-byte alphanumeric characters, dots, and hyphens: 200
characters max. with up to 63 single-byte alphanumeric charac-
ters between dots.)
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-19
4-6
SNMP
Trap
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
Setting Description Default
Community name Set the community name. public
(You can use up to 255 single-byte alphanumeric characters.)
Version Set the version of the SNMP manager. SNMPv1
• SNMPv1
• SNMPv2C
 Trap 2
If the Use Option is selected for SNMP trap, you need to make the following settings.
Setting Description Default
Trap 2 Specify whether to use the Trap 2 settings. Do not use
• Use
• Do not use
Specifying method Set the specifying method for the SNMP manager destination for IP address
SNMP traps.
• IP address
• Host name
IP address Set the IP address of the SNMP manager. None
(Set this setting if the Specifying method in the Trap 2 settings
is set to the IP address Option.)
Host name Set the host name of the SNMP manager. None
(Set this setting if the Specifying method in the Trap 2 settings
is set to the Host name Option.)
(Single-byte alphanumeric characters, dots, and hyphens: 200
characters max. with up to 63 single-byte alphanumeric charac-
ters between dots.)
Community name Set the community name. public
(You can use up to 255 single-byte alphanumeric characters.)
Version Set the version of the SNMP manager. SNMPv1
• SNMPv1
• SNMPv2C
4-20 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
4-7 CIP Settings Display
NJ-series, NX701, NX102, and NX1P2 CPU Unit NX502 CPU Unit
 CIP Message Server
Setting Description Default
CIP Message Server Specify whether to use the CIP message server or not. Use
If the Use Option is selected, the following ports will be opened.
• UDP 2222
• UDP 44818
• TCP 44818
Refer to 7-3 Server Function of CIP Message Communications on page 7-39 for restrictions when
the Do not use Option is selected for CIP message server.
 CIP Safety Communications (NX502 CPU Unit)
Setting Description Default
CIP Safety Communica- Select whether to use CIP Safety communications. Use
tions However, if the task period for the primary periodic task is set to
less than 500 μs, the Use Option cannot be selected. When us-
ing CIP Safety communications, set the task period for the pri-
mary periodic task to 500 μs or more.
The relationship between the combination of CIP message server and CIP Safety
communications settings and the availability of CIP Safety communications is as follows.
CIP message server CIP Safety communications
Availability of CIP Safety communications
setting setting
Use Use CIP Safety communications are available.
Do not use CIP Safety communications are unavailable.*1
Do not use Use
Do not use
*1. If you try to use CIP Safety communications via the built-in EtherNet/IP port of the NX502 CPU Unit, an
event of CIP Safety Originator Connection Not Established Error (80310000 hex) or CIP Safety Target
Connection Timeout (80340000 hex) will occur.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 4-21
4-7
CIP
Settings
Display
4
4 Sysmac Studio Settings for the Built-in EtherNet/IP Port
 QoS (NX502 CPU Unit)
Setting Description Default
Prefer CIP safety com- Select whether to prioritize CIP Safety communications in QoS. No
munications
Version Information
CIP Safety communications via the built-in EtherNet/IP port on the NX502 CPU Unit and QoS
setting can be used with the NX502 CPU Unit with unit version 1.64 or later.
4-22 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
5
TCP/IP Functions
5-1 Determining IP Addresses............................................................................5-2
5-1-1 IP Addresses...................................................................................................5-2
5-1-2 Built-in EtherNet/IP Port IP Address Settings..................................................5-4
5-1-3 Private and Global Addresses........................................................................5-11
5-2 Default States of TCP/UDP Ports and the Changing Procedure..............5-15
5-3 Testing Communications.............................................................................5-18
5-3-1 PING Command............................................................................................5-18
5-3-2 Using the PING Command............................................................................5-18
5-3-3 Host Computer Operation.............................................................................5-18
5-4 Packet Filter..................................................................................................5-20
5-4-1 Introduction to Packet Filter...........................................................................5-20
5-4-2 Packet Filter Specifications...........................................................................5-21
5-4-3 Packet Filter Settings....................................................................................5-21
5-4-4 Case Where Packet Filter Is Used................................................................5-21
5-4-5 Settings for Devices That Access the Controller...........................................5-33
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 5-1
5
5 TCP/IP Functions
5-1 Determining IP Addresses
5-1-1 IP Addresses
IP Address Configuration
IP addresses are made up of 32 bits of binary data that specify the network number (net ID) and host
number (host ID). The net ID is an address used for identifying a network. The host ID is an address
used for identifying a host (node).
IP addresses are divided into three classes, A, B, and C, so that the address system can be selected
according to the scale of the network. (Classes D and E are not used.)
Bit 31 23 0
Class A
0 Network ID (7 bits) Host ID (24 bits)
Bit 31 15 0
Class B 1 0 Network ID (14 bits) Host ID (16 bits)
Bit 31 7 0
Class C 1 1 0 Network ID (21 bits) Host ID (8 bits)
Bit 31 0
Class D 1 1 1 0 Multicast address (Cannot be used.)
Bit 31 0
Class E 1 1 1 1 Experimental address (Cannot be used.)
The number of networks in each class and the number of hosts possible on the network differ accord-
ing to the class.
Class Number of networks Number of hosts
Class A Small 224−2 max. (16,777,214 max.)
Class B Medium 216−2 max. (65,534 max.)
Class C Large 28−2 max. (254 max.)
The 32 bits of binary data in an IP address are divided into four sections of eight bits each. IP address-
es are represented by the decimal equivalent of each of the four octets in the 32-bit address, each
separated by a period.
For example, the binary address 10000010 00111010 00010001 00100000 would be represented as


Answer:
Allocating IP Addresses
You must assign IP addresses nodes so that each IP address is assigned only once in the network or
between several networks.
5-2 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
5 TCP/IP Functions
Subnet Mask
Operation and management of a network can become very difficult if too many nodes are connected
on a single network. In such a case it can be helpful to configure the system so that a single network is
divided up into several subnetworks. Internally the network can be treated as a number of subnet-
works, but from the outside it acts as a single network and uses only a single network ID.
To establish subnetworks, the host ID in the IP address is divided into a subnet ID and a host ID by
using a setting called the subnet mask.
The subnet mask indicates which part of the host ID is to be used as the subnet ID. All bits in the sub-
net mask that correspond to the bits in the IP address used either as the network ID or subnet ID are
set to "1", and the remaining bits, which correspond to the bits in the IP address actually used for the
host ID, are set to "0".
The following example shows the subnet mask for an 8-bit subnet ID used in the class-B IP address.
Bit 31 15 0
Class B 1 0 Network ID (14 bits) Host ID (16 bits)
Subnet mask 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 FF FF FF 00
Network ID Subnet ID Host ID
Set the same subnet mask for all of the nodes on the subnetwork. The built-in EtherNet/IP port sup-
ports CIDR (Classless Inter-Domain Routing). The subnet mask can be set to 192.0.0.0 to


Answer:
If subnetworks are not used, set the following subnet mask values for IP address classes A to C.
Class Subnet mask
Class A 255.0.0.0
Class B 255.255.0.0
Class C 255.255.255.0
A network address is information derived from a subnet mask and used to identify each network. A
network address enables users to determine whether multiple nodes belong to the same network. A
network address is calculated by performing a logical AND operation on the IP address and subnet
mask of a node.
The following are examples of network address calculation.
In this example, the IP address of node 1 is set to 192.168.250.20, the IP address of node 2 is set to


Question: 168.245.30, and the subnet mask is set to 255.255.240.0. The network addresses of the two no-

Answer:
des are calculated as follows.
• Calculating network address of node 1
Item Decimal notation Binary notation
IP address 192.168.250.20 11000000.10101000.11111010.00010100
Subnet Mask 255.255.240.0 11111111.11111111.11110000.00000000
Network address 192.168.240.0 11000000.10101000.11110000.00000000
• Calculating network address of node 2
Item Decimal notation Binary notation
IP address 192.168.245.30 11000000.10101000.11111010.00010100
Subnet Mask 255.255.240.0 11111111.11111111.11110000.00000000
Network address 192.168.240.0 11000000.10101000.11110000.00000000
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 5-3
5-1
Determining
IP
Addresses
5
5-1-1
IP
Addresses
5 TCP/IP Functions
As shown in the above tables, node 1 and node 2 have the same network address, which means
these nodes belong to the same network.
CIDR
CIDR, or classless interdomain routing, is used to assign IP addresses that do not use classes.
IP addresses that use classes are separated into blocks according to network IDs and host IDs, result-
ing in inefficient usage of IP address space.
CIDR does not use classes, so IP address space can be divided as required to more efficiently use IP
address space.
For example, using a subnet mask setting with CIDR enables building a horizontally distributed net-
work exceeding 254 nodes even if a class C address block (e.g., 192, 168...) is used.
Subnet Mask Range


Question: 0.0.0 to 255.255.255.252

Answer:
5-1-2 Built-in EtherNet/IP Port IP Address Settings
Determining IP Addresses
Use one of the following methods to set an IP address of a built-in EtherNet/IP port.
 Setting a User-specified IP Address
If you need to change the default IP address of the built-in EtherNet/IP port or if you need to use
the built-in EtherNet/IP port with another EtherNet/IP node, set the IP address to a required value.
For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, you cannot set IP addresses
that make two built-in EtherNet/IP ports belong to the same network.
 Automatically Obtaining an IP Address from the BOOTP Server
There are two methods to automatically obtain an IP address.
• Obtain an IP address from the BOOTP server each time the power is turned ON.
• Obtain an IP address from the BOOTP server at initial power on and set the address as a fixed
IP address.
BOOTP server
BOOTP command
Ethernet
NJ/NX-series Controller NJ/NX-series Controller
IP address
BOOTP client
5-4 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
5 TCP/IP Functions
 Automatically Obtaining an IP Address from the DHCP Server
This method automatically obtains an IP address from the DHCP server as a DHCP client each
time the power is turned ON.
DHCP server
DHCP command Ethernet
NJ/NX-series NJ/NX-series
IP address
Controller Controller
DHCP client
Version Information
You can use the DHCP client only with the NX502 CPU Units.
Setting IP Addresses
Use the Sysmac Studio to set an IP address of the built-in EtherNet/IP port.
1
Select a method for setting the IP address.
Make the following settings on the TCP/IP Settings Display of the Built-in EtherNet/IP Port
Settings Tab Page in the Controller Setup to set the local IP address.
Used to set a user-specified IP address.
Used to obtain the IP address from the BOOTP
server each time the power is turned ON.
Used to obtain the IP address from the BOOTP
server and use the address without changing it.
Used to obtain the IP address from the DHCP
server each time the power is turned ON.
For an NX701 CPU Unit, NX502 CPU Unit, and NX102 CPU Unit, the IP addresses must be
set separately for built-in EtherNet/IP ports 1 and 2.
Precautions for Correct Use
You cannot set IP addresses that make two built-in EtherNet/IP ports belong to the same net-
work.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 5-5
5-1
Determining
IP
Addresses
5
5-1-2
Built-in
EtherNet/IP
Port
IP
Address
Settings
5 TCP/IP Functions
2
Connect the Sysmac Studio to the NJ/NX-series CPU Unit via a USB connection or the Ether-
net network.
Precautions for Correct Use
The NX502, NX102, and NX1P2 CPU Units can be connected only via Ethernet.
3
Connect the Sysmac Studio online to the NJ/NX-series CPU Unit.
Refer to Online Connection on page 5-8 for the procedure to connect online.
4
Use one of the following methods to download the IP address that was set on the Sysmac Stu-
dio to the NJ/NX-series CPU Unit.
1) Go online with the Controller, and then select Synchronization from the Controller Menu.
The data on the computer and the data in the physical Controller are compared to each oth-
er automatically.
2) Click the Transfer to Controller Button.
NoteUse the "synchronization" of the Sysmac Studio to upload and download data.
5
After the IP address settings are downloaded, the IP address is reflected in the CPU Unit as
follows:
• Setting a User-specified IP Address
After the IP address settings are downloaded, the set IP address is automatically reflect-
ed in the CPU Unit.
• Obtaining the IP Address from the BOOTP Server Each Time the Power Is Turned ON
After the IP address settings are downloaded, the IP address from the BOOTP server is
automatically reflected in the CPU Unit.
Each time the power supply is turned ON, the IP address from the BOOTP server is auto-
matically reflected in the CPU Unit.
• Obtaining the IP Address from the DHCP Server Each Time the Power Is Turned ON
After the IP address settings are downloaded, the IP address from the DHCP server is
automatically reflected in the CPU Unit.
Each time the power supply is turned ON, the IP address from the DHCP server is auto-
matically reflected in the CPU Unit.
Additional Information
• If you cannot obtain the IP address from the BOOTP server or DHCP server, or the obtained
IP address is not correct, select the Fixed setting Option in the IP Address Area and man-
ually set the IP address, subnet mask, and default gateway.
Requests to the BOOTP server or DHCP server for an IP address will continue if connecting
to the BOOTP server or DHCP server fails.
• If both built-in EtherNet/IP port 1 and EtherNet/IP port 2 are set to obtain IP addresses from
BOOTP server or DHCP server, since they are obtained in order from EtherNet/IP port 1 to
EtherNet/IP port 2, the IP address of the EtherNet/IP port 2 is disabled (0.0.0.0) until the port
obtains the IP address.
• Obtaining the IP Address from the BOOTP Server When the Power Is Turned ON and
Fixing at It
After the IP address settings are downloaded, the IP address from the BOOTP server is
automatically reflected in the Controller and set for Fixed setting.
5-6 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
5 TCP/IP Functions
Additional Information
• The TCP/IP Settings Display is not updated even if the IP address is obtained normally from
the BOOTP server.
To check the IP address that was obtained from the BOOTP server, upload the project from
the NJ/NX-series Controller and check the Controller Status Pane.
• If you cannot obtain the IP address from the BOOTP server, the Fix at the IP address
obtained from BOOTP server Option is selected on the TCP/IP Settings Display.
To stop obtaining the IP address from the BOOTP server, select Fixed setting in the IP
Address Area and manually set the IP address, subnet mask, and default gateway.
• If the Controller power supply is turned OFF and then ON after the IP address was not nor-
mally obtained from the BOOTP server, the setting remains at Fix at the IP address
obtained from BOOTP server.
• After you select Fix at the IP address obtained from BOOTP server and download the IP
address from the BOOTP server, the built-in EtherNet/IP port IP address setting is automati-
cally set to Fixed setting. Therefore, the IP address will not match when the program is veri-
fied on the Sysmac Studio.
• To use the Packet Filter, you must allow packets (UDP:68) used for BOOTP and DHCP. Re-
fer to 5-4-5 Settings for Devices That Access the Controller on page 5-33 for details on the
settings.
Additional Information
For an NX701-££20 CPU Unit, NX502 CPU Unit, and NX102 CPU Unit, when the local IP ad-
dress of the built-in EtherNet/IP port is set, the FINS node address is automatically set as
shown below. You can set the FINS node address only with the NX701-££20 CPU Unit,
NX502 CPU Unit, and NX102 CPU Unit.
Example: Pairing an IP Address and an FINS Node Address with the Automatic generation
Method
TCP/IP Settings Display FINS Settings Display
Host ID
(lower 8 bits of the IP address)
The same value as the host ID is set.
After the IP address is obtained from the If you select the Automatic generation Option,
BOOTP server, the FINS node address the value of host ID is set to FINS node
for the built-in EtherNet/IP port is set. address and it cannot be changed.
If you select the Combination or IP address
Option, you can change the set value.
The FINS node address is required for FINS communications (e.g., to connect to the CX-Inte-
grator and other Support Software).
When the Automatic generation Method is selected, do not set the lower 8 bits of the IP ad-
dress to 0 or 255.
The NX502 CPU Unit and NX102 CPU Unit have two EtherNet/IP ports. The FINS node ad-
dress is set according to the IP address of port 2.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 5-7
5-1
Determining
IP
Addresses
5
5-1-2
Built-in
EtherNet/IP
Port
IP
Address
Settings
5 TCP/IP Functions
Online Connection
Connect the Sysmac Studio online to the CPU Unit.
Additional Information
For the procedure to go online to the CPU Unit from the Sysmac Studio, refer to Online
Connections to a Controller in the Sysmac Studio Version 1 Operation Manual (Cat. No. W504).
 Types of Connection between the CPU Unit and Computer That Runs the
Sysmac Studio
The CPU Unit and the computer that runs Sysmac Studio are connected via USB or Ethernet as
shown below:
• USB Connection
Direct Connection via USB
Sysmac Studio
USB connection
*1. NX701 CPU Units with hardware revision A or
later and NX502, NX102, and NX1P2 CPU
Units do not support USB connection.
• Ethernet Connection
Direct Connection via Ethernet (1:1 Connection
Ethernet Connection via a Hub (1:N Connection)
with Auto IP)
Ethernet
Ethernet
*1. An Ethernet switch is required to connect. Refer
to 2-1-4 Precautions for Ethernet Switch Selec-
*1. An Ethernet switch is not necessarily required. tion on page 2-4 for details.
*2. You can use a straight or cross Ethernet cable
to connect.
*3. For NX701 CPU Units, NX502 CPU Units, and
NX102 CPU Units, 1:1 connection is supported
only for the built-in EtherNet/IP port 1.
• Connection from USB Across Ethernet
5-8 NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
5 TCP/IP Functions
Remote Connection via USB
(1:N Connection)
Ethernet
USB
*1. An NJ/NX-series Controller with a USB port is
required to connect.
*2. An Ethernet switch is required to connect. Re-
fer to 2-1-4 Precautions for Ethernet Switch
Selection on page 2-4 for details.
Precautions for Correct Use
If you connect the computer that runs the Sysmac Studio to the EtherNet/IP port on the CPU
Unit, you cannot use direct connection via Ethernet. Use the Ethernet connection via a hub
through an Ethernet switch. In that case, you must specify the destination IP address.
Additional Information
• Auto IP automatically assigns IP addresses in Windows 98 and later operating systems.
Unique IP addresses are automatically assigned from the address 169.254.0.0 to


Answer:
• If the Sysmac Studio is connected online via a built-in EtherNet/IP port, changing the IP ad-
dress of the connected built-in EtherNet/IP port will cause a timeout on the Sysmac Studio.
In the case, switch the Sysmac Studio status to offline, restore the original IP address of the
connected built-in EtherNet/IP port, and then switch back the Sysmac Studio status to online.
This will allow you to reconnect.
Precautions for Correct Use
If there is more than one node with the same IP address in the EtherNet/IP network, the built-in
EtherNet/IP port will connect to the node that is detected first.
Note that an IP Address Duplication Error will not be detected in this case.
 Online Connection Procedure
Connect the CPU Unit and the computer that runs the Sysmac Studio via USB or Ethernet, and
then perform the following procedure.
1
Select Controller - Communications Setup and click the OK Button in the Sysmac Studio
Project Window.
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506) 5-9
5-1
Determining
IP
Addresses
5
5-1-2
Built-in
EtherNet/IP
Port
IP
Address
Settings
5 TCP/IP Functions
1:1 Connection 1:N Connection
Direct Connection Ethernet Connection
·Remote connection via USB
·Direct connection via USB
EtherNet/IP Connection
·Ethernet connection via a hub
·Direct connection via Ethernet
Additional Information
If there is any error in the set IP address, the CPU Unit behaves as follows:
• The NET RUN indicator on the CPU Unit does not light and the NET ERR indicator flashes
red. For NX701 CPU Units, NX502 CPU Units, and NX102 CPU Units, indicators will indicate
the status of each built-in EtherNet/IP port.
• An IP Address Setting Error is recorded in the event log.
Precautions for Correct Use
• If the IP address is duplicated or not set correctly, communications are not possible via the
EtherNet/IP network. Use the Sysmac Studio to set the IP address again in direct connection
via Ethernet.
• The IP address range shown below is used by the system and cannot be specified.