Features For Debugging Your Program - Siemens Simatic S7 Series System Manual

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

Programming concepts

5.9 Features for debugging your program

Performing a program edit and download in RUN mode
To initiate a program edit in RUN mode, follow these steps:
1. From the Settings area of the Debug menu ribbon strip, click the Edit In Run button.
Note
If you have not saved your current program in the program editor,
STEP 7-Micro/WIN SMART prompts you to save your project. You can use the same
name or you can change the name.
2. From the warning dialog, click the "Continue" button to confirm that you want to proceed
with editing your program in RUN mode. STEP 7-Micro/WIN SMART uploads the
program that is currently stored in the CPU and displays it in the program editor, where
you can make the changes you need.
After you make the desired editing changes, you must download them before they can take
effect in the CPU. Once you initiate a download, you cannot perform other tasks in STEP 7-
Micro/WIN SMART until the download completes.
Examine the output window to see whether any compile errors exist (for instance, duplicate
EU or ED numbers). You can double-click the error message to edit the offending network in
the program editor.
Specifying CPU allocation (background time)
During a program edit in RUN mode, the CPU requires time to compile the modified program
in the background while it continues to execute the currently loaded program. In the system
block (Page 117), you can configure the amount of background time that is available for the
compilation. Note that you can only download the system block when the CPU is in STOP
mode.
5.9
Features for debugging your program
STEP 7-Micro/WIN SMART provides the following features to help you debug your program:
● Adding bookmarks in your program to make it easy to move back and forth between lines
of a long program
● Tracking references in your program with the cross reference table (Page 454)
● Using a status chart (Page 460) to display PLC data values and status
● Displaying status in the program editor (Page 456)
For more information about debugging your program, refer to the chapter on diagnostics and
troubleshooting (Page 453).
114
System Manual, 09/2015, A5E03822230-AC
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents