Setting up S7-PLCSIM V13/14/15¶
- Siemens Edition or Ultimate Edition
- TIA Portal V13/14/15
- S7-PLCSIM V13/14/15
This tutorial gives you step-by-step instructions on how to use Siemens S7-PLCSIM V13/14/15 to control FACTORY I/O.
You will start with a template to create a new TIA Portal project. There are specific templates for either S7-1200 or S7-1500 PLCs, as well as for different TIA Portal versions.
TIA Portal Template Projects¶
Note that you must use a TIA Portal template project when connecting to S7-PLCSIM v13/14/15. FACTORY I/O will not be able to communicate with S7-PLCSIM otherwise.
Setting up S7-PLCSIM with TIA Portal¶
Download and Open the template project corresponding to the TIA Portal version and PLC family you will be simulating.
Save the project with a new desired name.
You can now write your program.
In the existing OB1 there is already a Network 1.
Do not delete this network. Otherwise the connection will not work.
Select the device and turn on the simulation by pressing Start Simulation.
Choose PN/IE (1) as the type of PG/PC interface and on PG/PC interface select PLCSIM S7-1200/S7-1500 (2). Press Start search (3). When scanning completes, select the device (4) and press Load (5).
On S7-PLCSIM select RUN to set the CPU to Run Mode.
Connecting FACTORY I/O to S7-PLCSIM¶
In FACTORY I/O click on FILE > Driver Configuration to open the Driver Window.
Select Siemens S7-PLCSIM on the driver drop-down list.
Open the driver Configuration Panel by clicking on CONFIGURATION.
Select a corresponding CPU model for your project on the Model drop-down list (either S7-1200 or S7-1500).
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.