![Omron Sysmac NX1P2-10 1 Series Скачать руководство пользователя страница 143](http://html1.mh-extra.com/html/omron/sysmac-nx1p2-10-1-series/sysmac-nx1p2-10-1-series_user-manual_1633435143.webp)
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.
0
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
Host ID
Subnet ID
Network ID
Host number (16 bits)
Network number (14 bits)
Subnet mask
Class B
Bit 31
15
1
0
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
255.255.255.252.
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
192.168.245.30
, and the subnet mask is set to
255.255.240.0
. The network addresses of the two no-
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
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.
4-1-4
CIDR
CIDR, or classless interdomain routing, is used to assign IP addresses that do not use classes.
4 Determining IP Addresses
4-3
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
4-1 IP Addresses
4
4-1-4
CIDR
Содержание Sysmac NX1P2-10 1 Series
Страница 8: ...Manual Structure 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 34: ...Revision History 32 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 174: ...6 Testing Communications 6 4 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 354: ...8 CIP Message Communications 8 92 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 388: ...9 Socket Service 9 34 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 394: ...10 Modbus TCP Master Function 10 6 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 430: ...12 FTP Client 12 14 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 569: ...I Index I 1 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506 I...
Страница 576: ...Index I 8 NJ NX series CPU Unit Built in EtherNet IP Port User s Manual W506...
Страница 577: ......