Technical data
Basics of Creating Logic Blocks
10.4 General Notes on Entering Statements and Comments
Programming with STEP 7
254 Manual, 05/2010, A5E02789666-01
Inserting a Network Template in a Program
1. Open the block in which you want to insert the new network.
2. In the opened block, click in the network after which you want to insert a new network based on
the network template.
3. Open the "Program Elements" tab (menu command Insert > Program Elements).
4. Open the "S7 Program" folder of the relevant library in the catalog.
5. Double-click the network template.
6. In the dialog box, enter the required replacements for the wildcards in the network template.
7. Click the "OK" button. The network template is then inserted after the current network.
Note
You can also drag and drop the template from the tab to the editor window.
10.4.7 Search Function for Errors in the Code Section
Errors in the code section are easy to recognize by their red color. To make it easier to navigate to
errors that lie outside the visible area on the screen, the editor offers two search functions Edit >
Go To > Previous Error/Next Error.
The search for errors goes beyond one network. This means that the whole code section is
searched and not just one network or the area currently visible on the screen.
If you activate the status bar using the menu command View > Status Bar, notes on the errors
found are displayed there.
You can also correct errors and make changes in overwrite mode. You toggle between insert mode
and overwrite mode using the INSERT key.