29/09/2023

Tech Update

The Best Tech Research

How to Program a Siemens S7-300 Programmable Logic Controller

How to Program a Siemens S7-300 Programmable Logic Controller

Do you have a Siemens S7-300 Programmable Logic Controller that you are not common with but you want to system it NOW! Adhering to is a fast established of guidelines I have set jointly to assist you get commenced programming a Siemens S7-300 PLC.

Soon after loading the programming computer software and connecting a Siemens MPI cable between your programming pc and the PLC, open SIMATIC Manager by clicking the icon on the desktop. The Step 7 Wizard: “New Challenge” window will open. It is less complicated to use the Wizard to set up communications with your PLC, but I chose to take the scenic route. I figured I would master more this way. So, shut the Stage 7 Wizard window by clicking Cancel. If there are any other windows or projects open, shut them. We want to get started with a entirely new method.

Develop a new challenge by clicking the new job button on the toolbar in the higher left corner of your display screen.

The New Project window opens. In this article you will see any present applications situated on your laptop or computer. In close proximity to the bottom of the window, you will see the Title: input sort. Form whatsoever you want to identify your new venture and click on Okay.

A new window will open demonstrating the identify of your project at the top rated. You will also see your venture in the window on the left hand facet of the display at the prime. Ideal simply click your venture and pick “Insert New Item”. Choose the device you will be programming. We will be employing the SIMATIC 300 Station so pick out that selection.

You will now see SIMATIC 300 look in the proper window of your display screen. It really should be highlighted blue. Simply click anywhere in the window to make the blue go away. Double click on SIMATIC 300 and it will shift to the remaining window and “Components” will surface in the ideal window.

Double click on “Components” and two (maybe three) new windows will open. On the left will be SIMATIC 300 – (the identify of your undertaking). The window on the correct will be the catalog of elements.

Glance in the appropriate window, the sections catalog, and click on the as well as indication beside SIMATIC 300.

Click the plus indication beside RACK – 300. Click on and drag the Rail on to the still left window. You will now see the Slots window seem. This is where by we will spot our PLC factors.

We will initially opt for our CPU. Seeking at the elements catalog, in the SIMATIC 300 tree, decide on the CPU that you are using. We are working with the CPU – 300 so click the moreover sign beside that alternative.

Now glance at the front major left of your PLC. This is where by you will obtain the PLC design. I will use CPU313C-2 DP as an example given that this is the design PLC that I use.

Obtain this CPU in your sections catalog and click on the in addition indicator. You will now see some element quantities.

Appear back again at your PLC. Locate the doorway covering the MPI port. This will be the bottom still left aspect of the PLC. At the base of the door you will find the component selection. The portion range for the PLC I am working with as an case in point is 313-6CF03-0AB0.

Discover this component selection in the pieces catalog. You will observe this is a further folder. Open it and you will see V2. and V2.6. Glance back at the PLC, open up the doorway covering the MPI port, and right higher than the MPI port you will see V2.6.3.

Go back again to the areas catalog and click on V2.6. See how a slot in the remaining hand window will emphasize eco-friendly. I consider it will be slot #2. (Slot #1 is reserved for energy supplies.) This is where you will drag and drop your CPU. (Recognize the computer software will not allow you put the CPU in any other slot but slot #2.)

When you launch the mouse button about slot #2, a new window will open, “Homes – PROFIBUS interface”. Simply click new, a new window opens, click Okay, and then click Okay once more. We are not environment up a community at this time.

You will now see your CPU and linked components shown.

Double simply click in the Slot that list your DI16/DO16 (Electronic Input/Digital Output).

A window with a few tabs will open. The initially tab will be Basic, the second tab will be Addresses and the 3rd tab will be Inputs.

Open up the tab “Addresses”. We want to transform the default addresses. Do this by unchecking the System Default button and changing 124 (or what ever tackle you have) to . Do this for both equally the Inputs and Outputs.

We now require to adjust the Node Tackle. Go again to the window the place you double clicked DI16/DO16 and double simply click in Slot 2, the CPU 313-2DP slot.

The Homes – CPU 313C-2DP window will open up.

Search down the window a tiny more than fifty percent way and obtain the Interface place and click on Attributes. A further window, “Attributes – MPI interface CPU 313-2DP” will open.
Adjust the deal with to satisfy your unique conditions. I know that my notebook, which I am utilizing to system my PLC, is often dealt with as 1 and my target PLC is normally dealt with as 2. You will possibly be the similar.

Now click MPI(1) and click Okay. Simply click Alright once again to shut the Qualities window.

Save and Compile by clicking the icon positioned on the still left of the toolbar.

Obtain the hardware configuration to the PLC by clicking the down load icon located on the toolbar.

A window titled “Select Goal Module” must open. Click on Alright.

Yet another window titled “Pick Node Tackle” will open. You should see shown your node deal with for the PLC you are performing with as you configured it in a prior move. If not, click perspective and click on on what ever node address seems and click Ok.

Change again to SIMATIC manager (by clicking the tab on the taskbar).

Click on Choices. Opt for Set PG/Computer system Interface. Decide on Computer Adapter (Car).

Simply click Houses. A new window will open, displaying both Automated Bus Profile Detection or Area Connection. Click on Local Connection and decide on USB. Now pick out Computerized Bus Profile Detection and improve the deal with to 30. You can test your relationship now by clicking Get started Community Detection. If a new window opens exhibiting Network Form = MPI, Transmission Fee = 187.5kbps, you have founded communications with your S7-300. Click on Near. Click Alright. Click on Alright.

It is now time to commence programming. Searching at the SIMATIC Manager window, simply click the furthermore indicator found beside SIMATIC 300(1), click the additionally indicator beside CPU 313C-2DP, click on the as well as signal beside S7 Method(1). Now click on Blocks and you will see System details and OB1 look in the appropriate window on your display.

Double simply click on OB1 and a new window will open named Houses – Business Block

Here you can select how you want to system, in LAD (ladder), STL (assertion list), or FBD (functionality block diagram). Pick which you want to use and simply click Alright.

Double simply click OB1 once again and the LAD/STL/FBD programming window will open up.

You can now start out programming.

I have these identical guidelines with shots on my website at http://www.saturdayafternoonhobbies.com