Bookmarks are used for easy navigation through long programs. You can use bookmarks in all implementation language editors, except SFC (sequential function chart). Commands help to navigate directly to the marked position in the program.
Setting and deleting bookmarks
Requirement: The POU is open in the editor.
-
Set the cursor at any program line.
-
Click “Edit Bookmarks Toggle Bookmark”.
A bookmark is set at this position in the program. This is marked by the bookmark symbol
.
-
Set several bookmarks at different places in the program.
-
Set the cursor at a bookmarked program line.
-
Click “Edit Bookmarks Toggle Bookmark”.
The bookmark is removed. The bookmark symbol
is deleted.
As an alternative to this, you can delete one or more bookmarks in the “Bookmarks” view by clicking the
button. For this purpose, the corresponding bookmarks have to be selected in the “Bookmarks” view.
Click “Edit Bookmarks Clear All Bookmarks (Active Editor)” to remove all bookmarks from the active POU.
In order to delete all bookmarks in a project, click “Clear All Bookmarks”. However, for this command to be available, you first have to add it to a menu by means of the command “Tools Customize”.
Jumping to bookmarks within a POU
Requirement: The POU is open in the editor. Multiple bookmarks are set.
-
Click “Edit Bookmarks Next Bookmark (Active Editor)”.
Depending on the current cursor position, the cursor jumps to the next bookmark (see below).
-
Click “Edit Bookmarks Previous Bookmark (Active Editor)”.
Depending on the current cursor position, the cursor jumps to the previous bookmark (see above).
Jumping to bookmarks of different POUs in a project
A project is open with multiple POUs. Multiple bookmarks are set in different POUs.
-
Click “View Bookmarks”.
The “Bookmarks” view opens.
All bookmarks in the project are listed in a table in the view.
-
Click the
“Next Bookmark” button.
In the “Bookmarks” view, the bookmark in the row below the selected bookmark is selected.
The POU with the recently selected bookmark in the table opens in the editor and the row with the bookmark is selected in the POU.
-
As in step 2, you can click the
“Previous Bookmark” button to jump to the bookmark in the project that is displayed in the row above it in the “Bookmarks” view.