Ip Address Calculation System; Ip Address Calculation Example - Mitsubishi Electric MELSEC iQ-RJ71EN71 User Manual

Ethernet
Hide thumbs Also See for MELSEC iQ-RJ71EN71:
Table of Contents

Advertisement

■IP Address Calculation System

This system obtains the IP address of the destination station by calculating the network number and station number with the
formula described below. The UDP port number predefined for the Ethernet-equipped module is used as the UDP port
number of the destination.
IP address of the partner station =
Conversion processing of the IP address calculation system is as below.
• When a communication request message (command frame) to access other station is received, the IP address is
calculated from the network number and station number of the destination in the communication request message, which
are stored in the Ethernet-equipped module, and the communication request message is sent to the next station (relay
station or destination station).
• The response message (response) for the communication request message is returned based on the return IP address and
the stored data above.
Ex.

IP address calculation example

The logical product and logical sum are calculated differently depending on the class of the own station IP address. An IP
address is calculated as follows.
(For class A)
• When the own station IP address is 79238102H
• When the net mask pattern for routing other networks is FF000000H
• When the destination network number is 03H, and the station number is 05H
Own station IP Address
Net Mask Pattern
Logical product value
Network No. and station No.
Partner station IP Address
(For class B)
• When the own station IP address is 8438FA0AH
• When the net mask pattern for routing other networks is FFFF0000H
• When the destination network number is 03H, and the station number is 05H
Own station IP Address
Net Mask Pattern
Logical product value
Network No. and station No.
Partner station IP Address
2 PARAMETER SETTINGS
268
2.3 Application Settings
Net mask pattern for
IP address
CC-Link IE Controller Network,
Logical
of the own
CC-Link IE Field Network,
product
station
MELSECNET/H, MELSECNET/10
routing
7
Logical product
F
7
Logical sum
7
8
Logical product
F
8
Logical sum
8
9
.
2
3
.
8
F
.
0
0
.
0
9
.
0
0
.
0
0
9
.
0
0
.
0
4
.
3
8
.
F
F
.
F
F
.
0
.
.
4
3
8
0
0
4
.
3
8
.
0
Network number
Logical
and station number
sum
of the destination
1
.
0
2
0
.
0
0
0
.
0
0
3
.
0
5
3
.
0
5
A
.
0
A
0
.
0
0
.
0
0
0
.
3
0
5
3
.
0
5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents