Вы находитесь на странице: 1из 6

Nettoplcsim Example

Simulation with 3 S7-PLCs and HMI-Station


Thomas Wiens, 18.07.2014
th.wiens@gmx.de

Introduction
This document shows how simulate a HMI communication which uses S7-Communication (e.g.
WinCC, InTouch, Simatic.Net OPC-Server) to 3 Siemens PLCs (S7-300 / S7-400) with Plcsim and
Nettoplcsim.

The IP-Adresseses used in this example are showing the general principle how to setup such a
system.

Real plant configuration:

S7 Station PLC#1

HMI Station (e.g. WinCC)


192.168.1.110

S7 Station PLC#2

192 .168 .1.10

192.168.1.120

S7 Station PLC#3

192.168.1.130

Nettoplcsim Example - Simulation with 3 Plcs and HMI-Station


Project in Step 7 SIMATIC Manager:

Nettoplcsim Example - Simulation with 3 Plcs and HMI-Station


Plant Configuration for Simulation with Plcsim and
Nettoplcsim
Step 7 PG
with Plcsim and Nettoplcsim

PLCSIM PLC#1
(IP 192.168.1.110)

LAN IP1
(192.168.1.110)

HMI Station (e.g. WinCC)


PLCSIM PLC#2 NetToPLCsim
Step7 (IP 192.168.1.120)

LAN IP2
(192.168.1.120) 192.168.1.10

PLCSIM PLC#3
(IP 192.168.1.130)
LAN-IP3
(192.168.1.130)

Nettoplcsim Example - Simulation with 3 Plcs and HMI-Station


Changes for Simulation
The 3 Plcs can be simulated at the same time with Plcsim and Nettoplcsim.

The HMI-Station wants to connect the 3 PLCs under the Network IP-Addresses 192.168.1.110 for
PLC#1, 192.168.1.120 for PLC#2 and 192.168.1.130 for PLC#3.

To get this running on a single PC with Nettoplcim, the network inferface needs three additional IP-
Addresses.

Adding additional IP-Adresses to your network interface


The Screenshot shows Windows 7 German version.

1. Open Properties of your LAN-Interface


2. Click on Internet Protocol Version 4
3. Click on Properties
4. Click on Advanced...
5. IP-Adressen -> add

Nettoplcsim Example - Simulation with 3 Plcs and HMI-Station


6. Enter IP-Address 192.168.1.110
7. Add the other two IP-Addresses 192.168.1.120 and 192.168.130
8. Close all dialogs

The network changes are made.


Your Step7 PG should be reachable under the 3 additional IP-Addresses.

You should test if you can ping all three from your HMI-Station.

Starting Plcsim and Nettoplcsim


PLCSIM:
1) Start Simatic Manager, Click on Station PLC#1 and start PLCSIM.
2) In PLCSIM, set Interface to "PLCSIM (TCP/IP)"
3) From Simatic Manager, download the complete program folder including system data into
PLCSIM
4) In PLCSIM, choose from Menu "File" -> "New PLC"
5) Select Station PLC#2 in Simatic Manager and download it into PLCSIM
6) Do it the same way for PLC#3
7) You should have three instances of PLCSIM running. The status bars of the 3 applications
should show the IP-Adresses of the PLCs (192.168.1.110, 192.168.1.120, 192.168.1.130)
8) Set all PLCs to RUN

Nettoplcsim Example - Simulation with 3 Plcs and HMI-Station


Nettoplcsim:
1) Start Nettoplcsim with administrative rights
2) Let Nettoplcsim stop the IE/PG-Helper service
3) Add three Stations with the configuration shown in this screenshot:

4) Click on "Start Server"


5) When the status of all 3 Stations are showing "RUNNING", you can start your HMI and it
should be possible to read the data out of the three PLCSIM-Stations.

Nettoplcsim Example - Simulation with 3 Plcs and HMI-Station

Вам также может понравиться