Setting up S7-PLCSIM V5

Requirements

  • Siemens Edition or Ultimate Edition
  • STEP 7 5.5 or TIA Portal
  • S7-PLCSIM V5

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 or TIA Portal.

Setting up S7-PLCSIM with STEP7

  1. Open the New Project Wizard in SIMATIC Manager.

    new project wizard

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

    select cpu

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

    open hardware config

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

    insert object

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

    add i/o module

  6. Save changes and close the HW Config window.

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

    turn on the simulation

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

    download program

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

    run program

Setting up S7-PLCSIM with TIA Portal

  1. Create a new project in TIA Portal.

    new project

  2. Select Configure a device.

    open device configuration

  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.

    add device

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

    add i/o module

  5. Turn on the simulation by pressing Start Simulation.

    turn on the simulation

  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.

    download program

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

    run program

Connecting FACTORY I/O to S7-PLCSIM

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

    open driver window

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

    select s7-plcsim driver

  3. Open the driver Configuration Panel by clicking on CONFIGURATION.

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

    driver config

  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.

    driver connected