SIMATIC S7-PLCSIM allows you to simulate a controller for functional testing on the programming device/PC.
2.1 New project
As a first step, we start SIMATIC Manager and create a new project.
Click on “finish” to validate and create your project. Your should obtain this :
2.2 Hardware configuration
Enter in the hardware configuration mode :
For the hardware modifications, we’ll do it simple :
– 1 I/O extension : SM 323 DI16/DO16x24V/0.5A
– 1 Ethernet card : CP343-1 Lean (6GK7 343-1CX00-0XE0)
Remember to enter the current IP address of your computer for the Ethernet card if you want to go further with simulation later (HMI or IT software communication).
After this you should have your I/O card in the slot 4 and the Ethernet card in the slot 5.
We’ll create :
– 1 Function : FC1 – Our little program
– 1 Data Block : DB1 – Bits used by our program
We’ll update OB1 in order to call our function block FC1.
To insert a new object :
OB1 (STL language) :
First we have to set-up the Simatic Interface :
We can now start the simulation :
They switch to “RUN-P”
Go back to Simatic Manager to download your project :
From now your program is running and go can go to “online mode” :