Sei sulla pagina 1di 11

11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

Setting up S7-PLCSIM V5

 Requirements

Siemens Edition or Ultimate Edition

STEP 7 5.5 or TIA Portal

S7-PLCSIM V5

 Sample Project

Sorting by Height with S7-PLCSIM V5 [../sample-s7-plcsim-v5/]


Sorting by Height with S7-PLCSIM V13/14 [../sample-s7-plcsim-v13/]

This tutorial gives you step-by-step instructions on how to use Siemens S7-PLCSIM V5 to
control FACTORY I/O. S7-PLCSIM can be used with either STEP 7 5.x [#setting-up-s7-
plcsim-with-step7] or TIA Portal [#setting-up-s7-plcsim-with-tia-portal].

Setting up S7-PLCSIM with STEP7


1. Open the New Project Wizard in SIMATIC Manager.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 1/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

2. Select the CPU315-2 PN/DP CPU and press Finish.

3. Right-click on SIMATIC 300 Station and press Open Object.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 2/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

4. Right-click on one of the free slots (slot 4 for example). Press Insert Object...

5. Select SIMATIC 300 > SM-300 > DI/DO-300 > SM 323 DI16/DO16x24V/0.5A.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 3/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

6. Save changes and close the HW Con g window.

7. Turn on the simulation by pressing Simulation On button.

8. Transfer the con guration to the simulator. Right-click on SIMATIC 300 Station and
select PLC > Download.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 4/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

9. On S7-PLCSIM, select RUN-P to set the CPU to Run Program Mode.

Setting up S7-PLCSIM with TIA Portal


1. Create a new project in TIA Portal.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 5/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

2. Select Con gure a device.

3. Click on Add new device. From the controllers tree expand SIMATIC S7-300 > CPU >
CPU 315-2 PN/DP, select the CPU under it and click on Add.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 6/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

4. Add IO modules from the Hardware catalog to the Rail. For example, add the DI
16/DO 16x24VDC/0.5A module.

5. Turn on the simulation by pressing Start Simulation.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 7/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

6. Choose PN/IE as the type of PG/PC interface and on PG/PC interface select
PLCSIM. Press Start search. When scanning completes, select the device and press
Load.

7. On S7-PLCSIM, select RUN-P to set the CPU to Run Program Mode.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 8/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

Connecting FACTORY I/O to S7-PLCSIM


1. In FACTORY I/O click on FILE > Driver Con guration to open the Driver Window.

2. Select Siemens S7-PLCSIM on the driver drop-down list.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 9/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

3. Open the driver Con guration Panel by clicking on CONFIGURATION.

4. Make sure S7-300 (V5) is selected on the Model drop-down list.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 10/11
11/5/2019 Setting up S7-PLCSIM V5 - FACTORY I/O

5. Press Esc to return to the main driver window. Now click on CONNECT to connect to
the simulator. A successful connection is indicated by a green icon next to the
selected driver, as well as next to the driver name displayed on the status bar.

https://factoryio.com/docs/tutorials/siemens/setting-up-s7-plcsim-v5/ 11/11

Potrebbero piacerti anche