![SEW-Eurodrive DHR41B Скачать руководство пользователя страница 19](http://html.mh-extra.com/html/sew-eurodrive/dhr41b/dhr41b_manual_1250086019.webp)
Manual – MOVI-PLC® advanced DHR41B for EtherNet/IP, Modbus/TCP and PROFINET IO
19
4
TCP/IP addressing and subnetworks
Assembly and Installation Notes for Ethernet
Subnet mask
A subnet mask is used to divide the network classes into even finer sections. Like the
IP address, the sub-network mask is represented by four decimal numbers separated
by decimal points.
Example: 255.255.255.128
Each decimal number stands for one byte (= 8 bits) of the subnetwork mask and can
also be represented using binary code (see following table).
If you compare the IP addresses with the subnet masks, you see that in the binary rep-
resentation of the subnet mask all ones determine the network address and all the zeros
determine the station address (see following table).
The class C network with the address 192.168.10. is further subdivided into
255.255.255.128 using the subnetwork mask. Two networks are created with the ad-
dress 192.168.10.0 and 192.168.10.128.
The following station addresses are permitted in the two networks:
• 192.168.10.1 ... 192.168.10.126
• 192.168.10.129 ... 192.168.10.254
The network stations use a logical AND operation for the IP address and the subnetwork
mask to determine whether there is a communication partner in the same network or in
a different network. If the communication partner is in a different network, the standard
gateway is addressed for passing on the data.
Standard gateway
The standard gateway is also addressed via a 32-bit address. The 32-bit address is rep-
resented by four decimal numbers separated by decimal points.
Example: 192.168.10.1
The standard gateway establishes a connection to other networks. In this way, a net-
work station that wants to address another station can use a logical AND operation with
the IP address and the subnet mask to determine whether the desired station is located
in the same network. If this is not the case, the station addresses the standard gateway
(router), which must be part of the actual network. The standard gateway then takes on
the job of transmitting the data packages.
If for the standard gateway, the same address is set as for the IP address, the standard
gateway is deactivated. The address of the standard gateway and the IP address must
be in the same subnet.
DHCP (Dynamic
Host Configura-
tion Protocol)
Instead of setting the three parameters IP address, subnetwork mask and standard
gateway manually, they can be assigned in an automated manner by a DHCP server in
the Ethernet network.
This means the IP address is assigned from a table, which contains the allocation of
MAC address to IP address.
Parameter P785 indicates whether the DHR41B option expects the IP parameters to be
assigned manually or via DHCP.
Byte 1
Byte 2
Byte 3
Byte 4
11111111
.
11111111
.
11111111
.
10000000
Byte 1
Byte 2
Byte 3
Byte 4
IP address
decimal
192
.
168.
.
10
.
129
binary
11000000
.
10101000
.
00001010
.
10000001
Subnetwork mask
decimal
255
.
255
.
255
.
128
binary
11111111
.
11111111
.
11111111
.
10000000
Содержание DHR41B
Страница 2: ...SEW EURODRIVE Driving the world ...
Страница 129: ...SEW EURODRIVE Driving the world ...