Siemens S7 300 and STEP 7 PLC program using SIMATIC Software

This article provide step-by-step programming tutorials for Siemens S7 300 and STEP 7 PLC program using SIMATIC Software application.

Siemens S7 300 and STEP 7 PLC program

1.Open SIMATIC Manager. SIMATIC Manager is a program which manages subprograms of STEP 7.

2.To start our programming first we need to create a new project by clicking on the “new” icon on the toolbar to open the “new project” window.

In this window we enter a name for our project in the “name” field.The path to our saved project is shown in the “storage location.”

However we can use the browse button to navigate to a different location other than the default.

Siemens S7 300 Program
Siemens S7 300 Program
 
3.After creating the project we click on its name to highlight it.then from the “insert”   menu we select one of these “stations”dependent upon the control system that we intend to use.
 
4.After selecting “Station 300” we see that a subgroup named “SIMATIC 300” has been added to our project.
 
STEP 7 PLC program
STEP 7 PLC program
 
5.Next we click on this “hardware” icon which takes us to the hardware.
 
so that we can configure the modules we need for the PLC.Our PLC is an “S7 300″.
 
so we need to select the relevant modules from “SIMATIC 300” subgroup here.
 
SIMATIC Software
SIMATIC Software
 
6.First of all we need a rack into which we will mount the modules.
 
To insert the rack, open the “rack 300” and double click on the “rail” to add it to the left window.As you can see this rack has 11 slots.
 

7.We need to install a “power supply” in the first slot to power our PLC modules and turn them on.

To do this we open this “PS 300” folder and double click on this two-ampere power supply to insert it into the first slot of the rack

S7 300 PLC Programming
S7 300 PLC Programming

8.In the second slot of the rack we always insert the “CPU” module.To select the desired module we open this “CPU 300” folder, which opens to show us all types of “300 CPUs.”

We want to select a “316 CPU”, so we need to open this “CPU 316” folder and click on the relevant part number to insert it into the second slot in the rack.We can add rest of the modules in similar way.

9.The addresses of the digital input module range from byte zero to byte number one means that the addresses we can use in this module for our program start at “I 0.0”for the first input and continue through to“I 1.7” for the last input.

Similarly you can see the addresses of our digital output module range from byte number 4 through to byte number 5 so there are 16 addresses that we can use for this module starting at “Q 4.0” continuing through to “Q 5.7. Finish the configuration and download it to PLC

 
STEP 7 PLC program using SIMATIC Software
STEP 7 PLC program using SIMATIC Software
 
10.Before downloading Click on save and compile icon to save it.then we click on this download icon.This brings up a window where we need to select the CPU to which we want to download the configuration and then click “OK”.
 
In the next window click on “view” and then select the appropriate “MPI” address, and after clicking “OK” the configuration will download to the CPU.
 
Now, having completed the configuration we can check the project tree and see that a subgroup with the same name as the CPU has been added there.
 
 
PLC Programming using Siemens S7
PLC Programming using Siemens S7
 
11.Now we can write our program in a block named “OB 1″We can find the “OB 1” by opening the “S7 Program” folder and looking in the “block”folder.
 
Siemens S7 300 Application
Siemens S7 300 Application
 
12.open the “OB 1” by double clicking on it; as it’s the first time we have opened it this “properties” window opens.We simply OK the window to get into the programming environment.
 
Siemens PLC S7 300 Logic
Siemens PLC S7 300 Logic
 
13.Open symbol table from option menu to give a representative name for each I/O and save symbol table.
 
 
Siemens PLC S7 300 Screenshot
Siemens PLC S7 300 Screenshot
 
14.Make the PLC program as per project requirement.
 
 
15.Click on Download button to download the program in to PLC.
 
 
 

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address

15 thoughts on “Siemens S7 300 and STEP 7 PLC program using SIMATIC Software”

  1. You done awesome work your all articals are very helpful i am engineer in cement plant where we use abb compact builder and siemens simatic can u post topic related to siemens simatic stl programming.

    Reply
  2. Sir, Awesome blog for instrumentation guys..
    I also work in Oil & Gas sector. Plz add something related to Bentley Nevada vibration Monitoring and also some focus on Honeywell TDC300

    Reply
  3. Sir, your articles are very useful and informative for instrumentation people, I work in cement plant where we use Allen Bradley controllogix PLC, Can u post steps on Node scheduling for ControlNet using RSNetworx S/w.

    Reply
  4. Hello sir am Nabasa Stephen Student at Mbarara University of Science and Technology in Uganda doing Electrical Engineering
    as I tried to creat my first project and after saving and compiling so As I was trying to write my first programm in simetic7 and when I went a head to download the module it constantly tells me “unable to reach the module CPU316 via online interface”

    Kindly help me sir to solve this challenge and how can I fix

    Thanks

    Reply
    • Go to Simatic manager> Go to Option> Go to “Set PG/PC interface” >>> Here you need to select option “PLCSIM MPI.1”
      Then it will work.

      Reply

Leave a Comment