Anda di halaman 1dari 6

Modicon M340 for Ethernet

IP Parameters
31007131 07/2012

IP Parameters

5
About this Chapter
This chapter describes the assignment of IP parameters to the BMX NOE 01x0 and
BMX P34 20x0 CPUs. Each network address must be valid and unique on the
network.
Elsewhere in this guide you can find information about:
z address management for Ethernet modules (see page 333)
z IP address classes (see page 344)

What Is in This Chapter?


This chapter contains the following topics:
Topic Page
Methods for IP Addressing 56
Modicon M340 Rotary Switches 57
Deriving IP Parameters from the MAC Address 59
The IP Address Assignment Process 61
Ethernet Port Status 64

31007131 07/2012 55
IP Parameters

Methods for IP Addressing

Addressing Methods
The Modicon M340 modules and CPUs with Ethernet functionality can have their
addresses set through the rotary switches (see page 57), the Unity Pro IP
Configuration tab (see page 137), and combinations of the two:

Address Method Description


STORED The lower rotary switch is set to STORED (manufacturer default setting), and the module uses the
application’s configured parameters.
device name There are two components of the device name:
(over DHCP) z default device name of the module:
z BMX_2020_xxy (BMX P34 2020 CPU)
z BMX_2030_xxy (BMX P34 2030/20302 CPU)
z BMX_0100_xxy (BMX NOE 0100 and BMX PRA 0100 modules)
z BMX_0110_xxy (BMX NOE 0110 module)

z numeric value between 00 and 159 set on the rotary switches (see page 57)

(For the default device name, xx is the value of the upper rotary switch and y is the value of the
lower rotary switch.)
Example: For a BMX NOE 0100 module, values of 120 (12 x 10) and 6 (6 x 1) on the respective
upper and lower rotary switches indicate a value of 126. The value is appended to the default
device name (BMX_0100_xxy) to create the valid DHCP device name of BMX_0100_126.
CLEAR IP The lower rotary switch is set to CLEAR IP, and the module uses its MAC-based default IP
address (see page 59).
BOOTP Set the lower rotary switch (see page 57) to one of its BOOTP positions to get an address over
BOOTP (see note).
Note: To configure the module in the application to get its address from a BOOTP server, see
"from a server," below.
from a server A server-assigned IP address can then be obtained from either a BOOTP or DHCP server
(STORED) (see page 81).
BOOTP:
z Set the lower rotary switch to one of its STORED positions.
z Select From a server on the IP Configuration tab (see page 137).
z Leave the Device Name field empty.

DHCP:
z Set the lower rotary switch to one of its STORED positions.
z Select From a server on the IP Configuration tab (see page 137).
z Enter a valid device name in the Device Name field.

Note: The M340 Ethernet modules will not receive an IP address from a BOOTP/DHCP server on
application download if the IP configuration has not changed.
disabled Communications are disabled.
Note: An error can occur when the assigned address is a mismatch for the address in the application. Details of these
errors are at Ethernet Port Status (see page 64).

56 31007131 07/2012
IP Parameters

Modicon M340 Rotary Switches

Introduction
The BMX NOE 01•0 or BMX P34 20x0 operates as a single node on an Ethernet
LAN and possibly other networks. The module must have a unique IP address. The
two rotary switches on the back of the module provide a simple way to select an IP
address:

NOTE: Set the arrow firmly into the desired position. If you do not feel the switch
click into place, the value of the switch may be incorrect or undetermined.

Summary of Valid IP Address Settings


Each rotary switch position that you can use to set a valid IP address is marked on
the module. The following information summarizes the valid address settings:
z device name: For a switch-set device name, select a numeric value from 00 to
159. You can use both switches:
z On the upper switch (Tens digit), the available settings are 0 to 15.
z On the lower switch (Ones digit), the available settings are 0 to 9.

The device name is calculated from the sum of the two switch values. For
example, a BMX P34 2020 CPU with the switch setting in the above figure is
assigned the DHCP device name BMX_2020_123.
The selection on the lower switch of any non-numeric (BOOTP, STORED,
CLEAR IP, DISABLED) makes the setting on the upper switch inconsequential.
z BOOTP: To get an IP address from a BOOTP server, select either of the two
BOOTP positions on the bottom switch.
z STORED: The device uses the application’s configured (stored) parameters.
z CLEAR IP: The device uses the default IP parameters.
z DISABLED: The device does not respond to communications.
The functionality of the rotary switch when used in conjunction with the Unity Pro
IP Configuration tab (see page 137) is discussed throughout the IP Address chapter
(see page 55).

31007131 07/2012 57
IP Parameters

Deriving IP Parameters from the MAC Address

Introduction
If no IP parameters are received from the application when the rotary switch
(see page 57) is set to either of its STORED positions, the module is configured at
power-up with its default IP address. The default IP address for the module is
derived from its hardware MAC address in accordance with a default IP address
format.

Default IP Address Format


The default IP address format is 84.x.x.x:
z 84: a fixed value
z x: The last three fields in the default IP address are composed of the decimal
equivalents of the last three hexadecimal bytes in the MAC address.

Example
For example, with the MAC address of 0000531201C4, you are concerned only with
the last three bytes, 12-01-C4. Convert these bytes from hexadecimal to decimal.
(See the procedure below if you don’t know how to do this.) The hexadecimal values
12, 01, and C4 have corresponding decimal values of 18, 1, and 196, respectively.
These values are combined with the default IP address format (84.x.x.x) to yield a
default IP address of 84.18.1.196.

31007131 07/2012 59
IP Parameters

The IP Address Assignment Process

Determining the IP Address


The IP addressing methods for the Modicon M340 module are shown in the figure:

31007131 07/2012 61
IP Parameters

Ethernet Port Status

Port Status
The status of the Ethernet port depends on the IP address configuration in the
application and the setting on the rotary switches (see page 57):

Switch Setting
DHCP (device BOOTP STORED CLEAR IP DISABLED
Application name from rotary
switches)
None DEFAULT: Get IP DEFAULT: Get IP DEFAULT: Use DEFAULT: This LED off. This
address. (1) address. (1) default IP switch setting switch setting
address. (1) implements stops
device’s default IP communications
Configured MISMATCH: Get MISMATCH: Get NO ERROR: Get
parameters between the
IP address. (1) IP address. (1) IP address from
application. (2) regardless of the module and the
application type. network, so the
From a server NO ERROR: Get NO ERROR: Get NO ERROR: Get application type is
without device IP address. (2) IP address. (2) IP address with inconsequential.
name (3) BOOTP. (2)
From a server NO ERROR: Get MISMATCH: Get NO ERROR: Get
with device IP address. IP address. (1) IP address with
name Device name DHCP (device
derived from name from
switches (2) (5) application). (2)(4)
Note 1: start default services only
Note 2: start application-configured services
Note 3: Leaving the From a server/Device Name field empty on the IP Configuration tab (see page 137) facilitates
communications that are compatible with any rotary switch setting.
Note 4: To use the device name from the IP Configuration tab (see page 137) in the Unity Pro application, the lower
rotary switch much be set to one of its STORED positions.
Note 5: When the server returns a name that matches the one you configure on the IP Configuration tab
(see page 137), communications are OK. When there is a mismatch, there is a communications error.
Note 6: The M340 Ethernet modules will not receive an IP address from a BOOTP/DHCP server on application
download if the IP configuration has not changed.

Elsewhere in this guide is a detailed discussion about deriving the default IP address
(see page 59).

64 31007131 07/2012

Anda mungkin juga menyukai