📜 ⬆️ ⬇️

Programming Siemens PLC on Simatic Step7

Good afternoon, habrovchane! Climbing along Habr, I found only a few topics in which the phrase "Simatic Step 7" would be mentioned. I want to share with you a small part of the information accumulated by me for all the time I work with programmable logic controllers, and to show what a PLC is, a shell, and what I had to build on them.

This post contains general information about programming a Siemens PLC.


Introduction


I got a job in this company on the 5th year of the institute. By the way, my education is indirectly related to programming and it was more of a fad. My knowledge at that time was limited to the course of Delphi and a very basic Assembler. The company was engaged in (and is engaged in) the design, construction and maintenance of lifting equipment, such as loaders, gantries, gantries, bridge cranes and other cranes. For GP machines, my education had even less of a relationship. So I decided to try. :)
')

Siemens programmable logic controllers


Siemens PLCs are industrial controllers and are used to automate technological processes. We have, in particular, used to automate the work of lifting machines.

Simatic includes several PLC lines - Simatic S5 and Simatic S7. In turn, the Simatic S7 line contains the S7-200, S7-300, S7-400 and S7-1200 families.

Most often, we used PLCs of the S7-300 and S7-400 families , for which Siemens developed its own software, Simatic Step 7 .
image

PLCs included:


In addition, a large number of slave devices, such as frequency converters, drives, absolute / incremental encoders, etc., were connected to the PLC via the Profibus network.

All the work of the machine GP was automated to the maximum and the crane operator needed to apply a minimum of effort to control it.

What is Simatic Step 7?


The main utility is Step 7 - Simatic Manager, which allows configuration of PLCs and networks (HWConfig and NetPro utilities).

image

In the configuration process, the composition of the equipment is determined, the connection methods, the networks used, the addresses, the settings for the modules used are selected. The finished configuration is loaded into the PLC, which is also a hardware setup.

image

Configuration utilities allow you to diagnose hardware, detect hardware errors or improper installation.

PLC programming is also performed using Simatic Manager, which provides program writing in three editors:


I worked from the very beginning in STL, I tried LAD, it seemed to me too incomprehensible, and many things could not be done so easily in it, as in STL. The advantage is that when the program is loaded into the PLC, it is compiled into the STL and, accordingly, when it is downloaded from the PLC to the programmer, it is also represented in the STL.

Instead of conclusion


PLC programming is fascinating, especially when it’s not a stand, but real equipment.
My job was to create a program on the PLC to control the entire machine GP or its individual parts, as well as downloading the software directly into the equipment and debugging it.
Different things happened, but working with iron was very interesting, though not sometimes easy.
And we built such GP machines here:
image

image

image

Source: https://habr.com/ru/post/139180/


All Articles