PROGRAMMING OF “Siemens S7–200” PLCs

Sobia Khan
2 min readApr 7, 2021

PROGRAMMING OF “Siemens S7–200” PLCs

Purpose of the manual The S7–200 series is a line of micro-programmable logic controllers (Micro PLCs) that can control a variety of automation applications. Compact design, low cost, and a powerful instruction set make the S7–200 a perfect solution for controlling small applications. The wide variety of S7–200 models and the Windows-based programming tool give you the flexibility you need to solve your automation problems.

Cyclic program execution in the S7–200

All SIMATIC controllers operate cyclically. The cycle begins with the reading of the input states and their transfer to the image memory of the MIE inputs (input acquisition phase). This image memory is the source of supply for the program for its execution. During processing, the program stores the results of the operations in the image memory of the MIS outputs. At the end of the program, the states contained in the MIS are transferred to the physical outputs (output phase of the outputs), and the cycle resumes at the beginning.

Interface configuration for PC / PG-API connection

  1. Click on the communication icon in the navigation bar.
  2. Check the communication parameters.
  3. Double-click on the update communication field. The software should then identify and register the connected CPU on its own.
  4. If the CPU is not identified or if a message appears indicating that communication is not possible, double-click on the PPI cable field.
  5. In the PG / PC interface, select the PC / PPI cable and click on Properties.
  6. In the PPI window, set the CPU address to 2 and the baud rate to 9.6 kbits / s. In

In the Local Connection window, select the interface to which the PC / PPI cable is connected. In each window, confirm your choice with OK. 7. In the Communication links window, double click again on the communication update field. The CPU is then identified and registered automatically. This operation may take a few seconds. Then close the Communication links window.

Logical combinations:

Combinatorial bit operations use two digits: 1 and 0. These two digits are the basis of the binary numbering system and are called binary digits or bits. For contacts and coils, 1 means activated or energized and 0 means deactivated or de-energized. Bitwise combine operations evaluate signal states 1 and 0 and combine them according to Boolean logic. The result of these combinations is equal to 1 or 0. This is the logical result (RLG).

There are combinatorial bit operations to perform the following functions:

Networks are used to structure a program. We enter each circuit in a network.

The other modes of representation are the instruction list (LIST language) and the logic diagram (LOG language). In the View menu, you can switch between the languages ​​LAD, STL and FBD.

--

--