Do you have a Siemens S7-300 programmable logic controller, I do not know, but it is now necessary to plan! What follows is a set of instructions to help you with the quick start with the programming of a PLC Siemens S7-300 have done.
After downloading the software programming and connecting a Siemens MPI cable between the computer and the programming of the SIMATIC Manager by clicking the icon on your desktop. The STEP 7: "New Project" window opens. It 's easierTo use the wizard to communicate with the PLC configuration, but I chose the scenic route. I thought I learned more in that way. To close the STEP 7 Wizard by clicking Cancel. If there are no windows or other open projects, close it. We want to start with a completely new program.
Programmable Logic Controller
Create a new project with the New Project button on the toolbar at the top left of the display.
The New Project window opens. Below you can see all the programs is availableThe computer. At the bottom of the window you see the name: the registration form. Enter that in the new project and click OK.
A new window will open and display the project name at the top. You will also see your project in the window on the left side of the screen at the top. Right click on the project and select "Insert New Object". Select the device to program. We select the SIMATIC 300 station to the selection.
You will now seeSIMATIC 300 displayed in the right window on the screen. It should be highlighted in blue. Click anywhere on the window to the blue distance. Double-click on the SIMATIC 300 and it will move to the left window and "Hardware" appears in the right window.
Double-click on "hardware" and two (maybe three) new window opens. On the left is SIMATIC 300 - (project name). The window on the right side will be the parts catalog.
Look in the right window, the parts catalog, andClick the plus sign next to the SIMATIC 300
Click the plus sign next RACK - 300 Click and drag the guide on the left window. Now you will see cracks in the window. This is where we put our PLC components.
First, we will choose our CPU. Looking at the parts catalog, 300 in SIMATIC tree, select the CPU being used. We are using the CPU - 300 in click the plus sign next to these elections.
Now look at the front top left of the PLC. Here you can find thePLC model. I CPU313C DP-2 as an example, because this is the model that I use PLC.
Find this CPU in the parts catalog, and click the plus sign. You will see some part numbers.
Look back to your PLC. Find the port to the MPI. This will be the bottom left corner of the PLC. At the bottom of the door is the part number. Using the code for the PLC as an example, I 6CF03-313-0AB0.
Find this part number in the parts catalog. They areNote: This is another folder. Open it and see, V2.0 and V2.6. Review of the SPS, open the door for the MPI port, and just above the MPI interface, you will see v2.6.3.
Return to parts catalog and click on V2.6. Notice how a slot in the green box highlight the left. I think there will be slot # 2. (Slot # 1 is reserved for power.) Here you can drag and drop the CPU. (Note that the software does not allow you to set the CPU to a different slot but the slotNo. 2).
When you release the mouse button on the # 2 slot, open a new window "Properties - PROFIBUS interface." Click New, opens a new window, click OK and then OK again. We are not creating a network at this time.
You will see your CPU and associated hardware included.
Double-click on the crack in your list of DI16/DO16 (digital input / output).
A window with three tabs. The first tab is General, the second card, and addresses thethe third card will be inserted.
Open the "Addresses" tab. We need to change the default addresses. Do this by clicking on the button and change the system default 124 (or any specified address) is set to 0. Do this for both inputs and outputs.
Now we need to change the address of the node. Return to the window where you clicked twice DI16/DO16 and double-click slot 2, the CPU 313-2DP slot.
The properties - CPU 313C-2DP window opens.
Look at the window a little 'more than half wayand you will find the area of interface, and then click Properties. Another "Properties - MPI interface of CPU 313-2DP" opens.
Change the address to meet specific criteria. I know that my laptop I'm using the PLC program, more than one address and my goal is directed generally as PLC 2. There will probably be the same.
Now click on MPI (1) and click OK. Click OK to close the properties.
Store and clicking on the icon on the left side is the compilationToolbar.
Download the hardware configuration in the PLC, located near the download icon in the toolbar.
A window titled "Select Target Module" should be opened. Click OK.
Another window titled "Select Node Address" will open. You should see your address for the node listed PLC with which you work, how you configured it in a previous step. Otherwise, click on View and click what looks like the address of the node and click OK.
Return to the SIMATIC Manager (by clicking on the tabTaskbar).
Click Options. Select Set PG / PC. Select PC Adapter (Auto).
Click Properties. A new window opens, showing Automatic profile or local bus connection. Click Local Port, and select USB. Now select the profile and automatically change the address bus 30. You can now check the connection, click Start monitoring network. When a new window opens and displays the type of network = MPI baud = 187.5kbps, you are gettingCommunication with S7-300. Click Close. Click OK. Click OK.
It 'time to start writing code. In view of the SIMATIC Manager window, click the plus sign next to the SIMATIC 300 (1) is located, click the plus sign next to the CPU 313C-2DP, click the plus sign next to S7 Program (1). Now click on blocks and you will see the system data and OB1 are in the right window on the screen.
OB1 and double-click to open a new window called Properties - Organization Block
Here you can choosehow to program in Ladder Logic (LAD), STL (statement list) or FBD (Function Block Diagram). Select you want to use and click on OK.
Double-click again and OB1 LAD / STL / FBD program window.
You can now start programming.
I have these same instructions with pictures on my website at http://www.saturdayafternoonhobbies.com
How to program a Siemens S7-300 Programmable Logic Controllerprogrammable logic controllers plc