PLC Programming :Introduction to Statement list

What is Statement List?

Statement List (STL) is a textual programming language that can be used to create the code section of logic blocks. Its syntax for statements is similar to assembler language and consists of instructions followed by addresses on which the instructions act.

The Programming Language STL

Of all the programming languages with which you can program S7 controllers, STL is the closest to the machine code MC7 of the S7 CPU. This means that by using it to program S7 controllers, you can optimize the run time and the use of memory. The programming language STL has all the necessary elements for creating a complete user program. It contains a comprehensive range of instructions. A total of over 130 different basic instructions and a wide range of addresses are available. Functions and function blocks allow you to structure your STL program clearly.

The Programming Package

The STL programming package is an integral part of the STEP 7 Standard Software. This means that following the installation of your STEP 7 software, all the editor functions, compiler functions and test/debug functions for STL are available to you. Using STL, you can create your own user program as follows: _ With the Incremental Editor. The input of the local data structure is made easier with the help of table editors. _ With a source file in the Text Editor. Text input is made easier with the help of block templates.

There are three programming languages in the standard software, STL, FBD, and LAD. You can switch from one language to the other almost without restriction and choose the most suitable language for the particular block you are programming. If you write programs in LAD or FBD, you can always switch over to the STL representation. If you convert LAD programs into FBD programs and vice versa, program elements that cannot be represented in the destination language are displayed in STL.

A STATEMENT CONSISTS OF AN INSTRUCTION AND AN ADDRESS

Address of an Instruction

The address of an instruction indicates a constant or the location where the instruction finds a value (data object) on which to perform an operation. The address can have a symbolic name or an absolute designation. The address can point to any of the following items : _ A constant, the value of a timer or counter, or an ASCII character string to be loaded into accumulator 1 (for example, L +27 See Table 2.1) _ A bit in the status word of the programmable logic controller _ A symbolic name (for example, A Motor.On, see Table 2-3) _ A data block and a location within the data block area (for example, L DB4.DBD10, see Table 2-4) _ A function (FC), function block (FB), integrated system function (SFC), or integrated system function block (SFB) and the number of the function or block (see Table 2-5) _ An address identifier and a location within the memory area that is indicated by the address identifier (for example, A I 1.0)

hi could you please provide detail that how much time the CPU can take to convert the FBD program to IL or finally in machine codes ( in case of Siemens S-7, 300 and s-7 400 PLCs).