Documenting Your Program - Siemens Simatic S7-200 System Manual

Programmable controller
Hide thumbs Also See for Simatic S7-200:
Table of Contents

Advertisement

5.7

Documenting Your Program

You can document your ladder program using program titles, network titles, and network
comments. You can document your STL program with descriptive comments.
Guidelines for Documenting LAD Programs
The ladder program title is used to provide a brief description of your project. To edit the
program title, select Edit
''OK'' button.
The ladder network title allows you to summarize the function of that network. The single-line
network title is always visible in the ladder display. To edit the network title, double-click on
the ''Network Title'' field in your program. Enter your summary in the ''Title'' field of the LAD
Network Title/Comment Editor. Click the ''OK'' button.
Ladder network comments allow you to describe the function of the network more
completely. To enter network comments, double-click on the ''Network Title'' field in your
program. Enter your comments in the ''Comment'' field, then click the ''OK'' button. Network
comments are not visible on the program screen, but you can view them by double-clicking
on a ''Network Title'' field.
To print your ladder network comments, select Project
button, then select the ''Print Network Comments'' option, and click the ''OK'' button.
Guidelines for Documenting STL Programs
Any text on a line in an STL program that is preceded by a double slash (//) is considered to
be an STL comment. You can use comments at the beginning of the program to describe it's
overall purpose. You can also use comments on a line by themselves, or on the same line
as an instruction, to document the details of your program. See Figure 5-23.
STL Editor - project1.ob1
STL
// Program for a Home Security System
NETWORK 1
LD
I0.3
LDW>=
T0, +600
A
I0.2
OLD
S
M0.1, 1
S
Q0.3, 1
R
M0.2, 1
NETWORK 2
LDN
I0.0
ON
I0.1
Figure 5-23
S7-200 Programmable Controller System Manual
C79000-G7076-C230-02
Program Title.... Enter your new program title, then click the
//Sound the alarm!
// If (the panic alarm has been turned on)
// or (if the alert timer is >= 60 seconds
//
and the system is armed)
// then
// set the high-level alarm bit
// set the modem dialer bit
// reset the low-level alarm bit
//Evaluate the system status.
// If zone 1 is open
// or if zone 2 is open
Documenting Your STL Program
Additional Features of STEP 7-Micro/WIN
Print.... Click on the ''Page Setup...''
To allow viewing of the
program in STL or Ladder,
divide segments of code
with keyword NETWORK.
5-21

Advertisement

Table of Contents
loading

Table of Contents