Entering The Program; Programming With Symbolic Addresses; Using The Ladder Editor To Enter The Program - Siemens Simatic S7-200 CPU 210 System Manual

Table of Contents

Advertisement

3.6

Entering the Program

You can enter the program in either statement list (STL) or ladder. You can also use either
absolute addressing or symbolic addressing.
To enter the program in STL, you open the STL Editor window and start typing the
instructions. (You use the View
STL.) Remember to put double slashes (//) before any comments and to end each line by
pressing ENTER.
To enter the program in STL, type the commands (with or without the comments) listed in
Table 3-2. You can cut, copy, and paste in the STL Editor. STEP 7-Micro/WIN also includes
search-and-replace functions.

Programming with Symbolic Addresses

Before you start entering your program, make sure the ladder view is set for symbolic
addressing. Use the menu command View
mark next to the menu item, which indicates that symbolic addressing is enabled.
Note
Symbol names are case-sensitive. The name you enter must match exactly the uppercase
and lowercase characters entered in the symbol table. If there is any mismatch, the cursor
stays on the element and displays the "Add Symbol" dialog. You can then add the new
symbol to the Symbol Table, or cancel and correct the entry.

Using the Ladder Editor to Enter the Program

To access the Ladder Editor, double-click the icon at the bottom of the main window. (You
use the View
Figure 3-15 shows some of the basic tools you will use in the Ladder Editor.
Refer to Figure 3-11 for the program listing in ladder. Entering the comments is optional.
Ladder Editor - c:\microwin\house.ob1
Contacts
Network 1
Family
listing
Ladder Editor cursor
Figure 3-15 Some of the Basic Ladder Editor Tools
S7-200 Programmable Controller, CPU 210
C79000-G7076-C235-01
STL menu command to change the editor from ladder to
Ladder menu command to change the editor from STL to ladder.)
Normally Open
F2
NETWORK TITLE (single line)
Instruction
listing
Normally open
contact button
Getting Started with a Sample Program
Symbolic Addressing and look for a check
F3
F4
F5
F6
Normally closed
contact button
Output coil button
F7
F8
F10
Vertical and
horizontal line
buttons
3-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents