Specifications

Basic Concepts for Programming an S7-200 CPU
4-6
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
4.3 Concepts of the S7-200 Programming Languages and Editors
The S7-200 CPUs offer many types of instructions that allow you to solve a wide
variety of automation tasks. There are two basic instruction sets available in the
S7-200 CPU: SIMATIC and IEC 1131-3. Also, our PC-based programming
software, STEP 7-Micro/WIN 32, provides different editor choices that allow you to
create control programs with these instructions. For example, you may prefer to
create programs in a more graphical environment, while someone else in your
company may prefer a text-based assembly-language style of editor.
You have two primary choices to consider whenever you create your programs.
Type of instruction set to use (SIMATIC or IEC 1131-3 )
Type of editor to use (Statement List, Ladder Logic, or Function Block Diagram)
The S7-200 instruction set and editor combinations shown in Table 4-1 are
possible.
Table 4-1 SIMATIC and IEC 1131-3 Instruction Set and Editors
SIMATIC Instruction Set
IEC 1131-3 Instruction Set
Statement List (STL) Editor not available
Ladder Logic (LAD) Editor Ladder Logic (LAD) Editor
Function Block Diagram (FBD) Editor Function Block Diagram (FBD) Editor
Statement List Editor
The STEP 7-Micro/WIN 32 Statement List (STL) editor allows you to create control
programs by entering the instruction mnemonics. In general, the STL editor is
more suitable for experienced programmers who are familiar with PLCs and logic
programming. The STL editor also allows you to create programs that you could
not otherwise create with the Ladder Logic or Function Block Diagram editors. This
is because you are programming in the native language of the CPU, rather than in
a graphical editor where some restrictions must be applied in order to draw the
diagrams correctly. Figure 4-3 shows an example of a statement list program.
STL
NETWORK
LD I0.0
LD I0.1
LD I2.0
A I2.1
OLD
ALD
= Q5.0
Figure 4-3 Example of an STL Program