How To Connect To S7 300 Via Ethernet

ETH-MPI(DP) is the most popular Simatic s7 300 ethernet module for Siemens S7-300 Ethernet Communication, which is easy to use and entirely transparent for communication with siemens s7-300 plc via ethernet. It converts the MPI/DP protocol of Siemens S7-300 to Siemens Profinet protocol (TCP/IP protocol), which allows it to communicate with various well-known host software (such as Wincc, Configuration King, Force Control, Intouch, KEPServerEX, etc.) at high speed (up to 1.5M) over long distances, and to connect to Step-7 and Step-7 at the same time. It can program the Siemens S7-300 at the same time. It can automatically detect the baud rate. It enables cross-territory data transfer via the Internet. It is similar in function to the Siemens Ethernet communication processor CP343-1 and can replace the Siemens CP5611, CP5613, and CP5512 communication cards, and the Siemens PC adapter programming adapter.

Hardware connection method

(1) Wire type method: i.e. a PLC (S7-300) and a PC (computer) are directly connected by crossover cable (RJ45 network cable).

siemens s7 300 ethernet module

(2) Star mode: i.e., one PLC (S7-300) and two computers or more than one PLC (S7-300) and one computer or more than one PLC (S7-300) and two computers, in the middle of which an Ethernet switch is needed to connect the switch to each device with a direct cable (RJ45 network cable).

siemens s7 300 ethernet module

The most common type of connection is the wire type.

ETH-MPI(DP) S7 300 Ethernet Module Setting

The parameters of ETH_MPI(DP) are set by the IE browser, and the PLC connected to ETH_MPI(DP) converter should be powered on at this time (Note: ETH_MPI converter is powered by the PLC), and the ETH_MPI(DP) should be connected to the computer with a network cable [crossover cable (RJ45 network cable) for wire type, two direct lines (RJ45 network cable) for star type from the switch to ETH_MPI(DP) and the computer]; set the IP address of the computer to (192.168.1.100), and the mask (255). RJ45 cable) from the switch to ETH_MPI(DP) and the computer]; set the IP address of the computer to (192.168.1.100), mask (255.255.255.0), gateway (192.168.1.1), and finally type 192.168.1.222 in the IE browser of the computer to access the ETH_MPI(DP). MPI(DP) main menu, as shown in the following figure:

siemens s7 300 ethernet module

Click [参数设置] with the mouse to enter the setting of the painting:

siemens s7 300 ethernet module

Since ETH-MPI(DP) can be set automatically, you do not need to fill in the following parameters, but sometimes you need to change the IP value and ETH-MPI(DP) station number].

For a detailed description of each parameter, please see below:

Since ETH-MPI(DP) can be set automatically, you do not need to fill in the following parameters, but sometimes you need to change the IP value and ETH-MPI(DP) station number].

A. ETH_MPI(DP) communication converter IP: Its segment address must be the same as the connected computer, i.e. the first three are the same and the fourth phase is different.

Example 1: Computer IP (192.168.1.100), Mask (255.255.255.0), Gateway (192.168.1.1), Converter IP (192.168.1.10).

Example 2: Computer IP (200.156.8.108), Mask (255.255.255.0), Gateway (200.156.8.1), Converter IP (200.156.8.16).

Example 3: Computer IP (200.202.9.126), Mask (255.255.255.0), Gateway (200.202.9.1), Converter IP (200.202.9.18).

IPs are unique in the same network and cannot be identical. The computer must also set the corresponding IP address, mask, and gateway (in the same segment as the converter).

The IP address of the ETH_MPI(DP) converter, and the fact that the ETH_MPI(DP) converter is not communicating with the host computer at this time, will enter the main menu of the ETH_MPI(DP) converter. Of course, you can also type 192.168.1.222 in the browser of the computer will also enter the main menu of the ETH_MPI(DP) converter (prerequisite: the ETH_MPI(DP) converter is not connected to WinCC and STEP7 online, and the IP address, mask, and gateway of the computer are in the same section with it, and there is only one ETH-MPI(DP) converter in the network). The other ETH_MPI(DP) converters must be disconnected from the network).

B. ETH_MPI(DP) communication converter MAC: six items in total, filled with hexadecimal numbers (Hex:0..9, A, B, C, D, E, F).

The first one is 0 (even if you fill in other values, the converter will change it to 0), the other 5 items can be filled in arbitrarily, but cannot be the same as other MACs in the network.

In the same network, MAC is unique, and can not be the same, the minimum interval between two adjacent MAC addresses is 1, for example, 00.12.FF.FF.01 and 00.12.ff.03 interval is 1, can not be consecutive!

The above settings are related to the Internet network, and the following settings are related to MPI/DP bus [since ETH-MPI(DP) can be set automatically, you don’t need to fill in the subsequent parameters at all after selecting auto-detection

C. MPI baud rate: [Just select “Auto Detect”].

It is the communication rate of the MPI/DP interface of the PLC (S7-300) connected to the ETH_MPI(DP) converter (set when configuring the S7-300, see the Siemens STEP7 Programming Manual), and there are nine baud rates: MPI-1.5M, MPI-187.5K, MPI-19200, DP-1.5M, DP-500K, DP-187.5K, DP-93.75K, DP-45.45K, DP-19200, DP-96K, DP-187.5K, DP-93.75K, DP-45.45K, DP-19200, DP-96K. DP-187.5K, DP-93.75K, DP-45.45K, DP-19200, DP-9600, and “Auto Detect”.

It is highly recommended to set the MPI baud rate to “Auto-detect” because it is not necessary to fill in the subsequent parameters.

D. PLC_MPI Station Number

is the MPI/DP station number of the PLC (S7-300) connected to the ETH_MPI(DP) converter (set during the configuration of S7-300, see Siemens STEP7 Programming Manual), the default value of MPI/DP station number is 2. You can also check this in the “MPI/DP communication status display”, where the mark “X” represents the actual station number of the MPI/DP on the bus, and then fill it in in the “Parameter setting/display” menu. Of course, if you already know the station number of the connected MPI/DP, you can write it in directly without checking it.

E. ETH_MPI(DP) station number

is the station number of the ETH_MPI(DP) converter itself, as long as it is not the same as other station numbers on the bus, generally set to 0, this parameter needs to be set manually.

F. Maximum MPI station number: It is the maximum station number allowed on the MPI/DP bus, which can be selected from four values (15, 31, 63, 126)

Example 1: PLC_MPI station number = 2, ETH_MPI station number = 0, the highest MPI station number should be selected 15.

Example 2: PLC_MPI station number=18, ETH_MPI station number=10, and the highest MPI station number should be 31.

Example 3: PLC_MPI station number=56, ETH_MPI station number=1, the highest MPI station number should be 63.

Example 4: PLC_MPI station number=10, ETH_MPI station number=108, the highest MPI station number should be 126.

ETH-MPI Each time you change the MAC and IP address of the hardware, it is best to clear the internal IP/MAC address table of the computer by typing: arp -d in the CMD window to accept the new IP/MAC.

STEP 7 Connection Setting

(1) ETH-MPI (DP) driver download and installation: Make sure that you have Siemens set the PG/PC interface software on your system (windows XP or windows 2000) for the ETH-MPI soft driver to be effective. The driver for the ETH-MPI is available in the attachment we provide, run the driver ETH_MPI_SETUP as shown below:

siemens s7 300 ethernet module

Then select [install], and when finished, you will find three driver options in Siemens set the PG/PC interface
ETH-MPI(auto), ETH-MPI, and ETH-DP are the three driver options you can find in the Siemens set for the PG/PC interface, when you plug in the MPI port, you should choose ETH-MPI, when you plug in the DP port, you should select ETH-DP, ETH-auto can automatically identify the MPI/DP port and baud rate, so it is recommended to use ETH-auto driver.

(2)Open SIMATIC–>step7–>set PG-PC interface

siemens s7 300 ethernet module

(3) Select ETH-MPI(AUTO), then click Properties. (Properties) and enter 192.168.1.10 in the IP address of the ETH-MPI(DP) converter.

siemens s7 300 ethernet module

(4) You can use the [Online Test] button to test if the IP address you fill in is the same as the ETH-MPI converter. If you cannot communicate with the ETH-MPI(DP) properly, type http://192.168.1.222 in your IE browser to check the IP address of the ETH-MPI(DP) converter, and then change the IP address of the ETH-MPI in the “Set PG-PC Interface”.

(5) Select the [OK] button to save the settings, and then you can program the Siemens S7-300 via Step 7.

WINCC connection settings

(1) Variable Management → SIMATIC S7 PROTOCOL SUITE → TCP/IP → System Parameters → Unit, select “Logical Device Name” as TCP/IP (Auto) → XXX (computer’s network card name).

siemens s7 300 ethernet module

(2) Variable management → SIMATIC S7 PROTOCOLSUITE → TCP/IP Add “New driver connection” with the name NewConnection_1 and open its properties – → Connection parameters: S7 network address: IP address = ETH_MPI communication converter IP address = IP address of ETH_MPI communication converter, e.g. (192.168.1.10); rack number = 0; slot number = 2 and then add a new variable in NewConnection_1.

Be sure to select the TCP/IP driver here and not any other driver!

siemens s7 300 ethernet module

If you want to connect another ETH_MPI(DP) converter, just add NewConnection_2, S7 network address::IP address=IP address of another ETH_MPI converter, e.g. (192.168.1.12); frame number=0; slot number=2.

…..
Up to 32 ETH_MPI(DP) communication converters can be added.
If you want to change the variables previously defined with MPI to TCP/IP-driven variables, please make a backup first, and then change the

Select all variables in MPI → NewConnection (with Ctrl+A), cut, select SIMATIC S7 PROTOCOL SUITE → TCP/IP → NewConnection_1 right mouse button → Paste.

ETH-MPI Adapter Parameter Setting

Leave a Comment