• No results found

Filtering Symbols

6.1.7 How to Edit the Symbol Table .1 Opening a Symbol Table

6.1.7 How to Edit the Symbol Table 6.1.7.1 Opening a Symbol Table

The "Symbol Table" is created automatically beneath a new project. To use symbols for shared data in a block, these must be assigned in the symbol table.

Open the "symbol table" by double-clicking the object in the project window, or bring up a context-sensitive menu by clicking with the right mouse button. You can then open the symbol table with the menu command Open.

A window appears in which the symbol table is displayed for you to edit it.

6.1.7.2 Defining Individual Symbols

1. Activate the symbolic view in the "Block Editor" using the menu command View > Display > Symbolic Representation. A check mark is displayed in front of the menu command to show that the symbolic representation is active.

2. Click in the network on the address for which you want to define a symbol.

3. Select either the menu command Edit > Symbols or the pop-up menu command Edit Symbols. The pop-up menu appears when you right-click the selected object.

4. In the dialog box which then appears, enter the symbol, the data type of the address, and a comment, if required. The symbol must be unique in the whole symbol table and must not be longer than 24 characters. Quotation marks (") are not permitted.

5. Confirm your entries with "OK." The defined symbol is entered in the symbol table and inserted in the code section in place of the selected address.

6.1.7.3 Inserting Symbol Rows

To insert a symbol row before the cursor position, select the menu command Insert > Row before Selection/Row after Selection.

To paste one or more symbol rows from the clipboard buffer, you can:

• Click with the left mouse button in the row (not on the row header) from which the symbol row(s) is/are to be inserted.

Select the menu command Edit > Paste.

• Click the corresponding button in the toolbar.

• Press CTRL + V.

6.1.7.4 Deleting Symbol Rows

To cut the selected symbol row to the clipboard buffer, you can:

Select the menu command Edit > Cut.

• Click the corresponding button in the toolbar.

• Press CTRL + X.

To delete the selected symbol rows without retaining a backup copy, you can:

Select the menu command Edit > Delete.

• Press DEL.

Note that if you cut or delete the special object properties, you cannot reverse this action with Undo.

6.1.7.5 Filtering the Symbol Table

To set a filter for the display in the active window:

1. Click the "Edit Filter" button.

2. In the "Edit Filter" dialog box, select an existing filter via the corresponding number or define a new filter.

3. To do this, click the "New Filter" button.

4. Assign a unique name to the filter.

5. Select the required settings.

6. Click the "Apply" button. You can now select the new filter in the drop-down list box.

Only symbols which correspond to the active filter criteria are displayed. You can use several criteria at the same time. The indicated filter criteria are linked to one another.

or

Select an existing filter from the drop-down list box for selecting a filter The following predefined filters are available:

• Display all: displays all symbols (predefined)

• Defective: displays all double or syntactically incorrect symbols

• Unused: displays all unused symbols

• Inputs: displays all symbols for inputs

• Outputs: displays all symbols for outputs

• Bit memory: displays all symbols for bit memory

• Blocks: displays all symbols for blocks

• Timers & Counters: displays all symbols for timers and counters The predefined filters cannot be modified or deleted. They can, however, be duplicated and applied under a new name.

6.1.7.6 Unused Symbols

Selecting the predefined filter "unused" in the symbol table gives you an overview of all symbols with the following characteristics:

• The symbols are defined in the symbol table.

• The symbols are not used in the user program parts, however.

A question mark indicates an unused symbol. In addition, the symbol cell is shaded blue.

6.1.7.7 Addresses without a Symbol

Activate the option box "Display addresses without a symbol" in the symbol table to display addresses with symbols as well as all addresses used in the program that are included in the active filter.

6.1.7.8 Sorting the Symbol Table

To set the sort criteria for the display in the active table:

1. Click the column header to begin sorting. A vertical blue arrow will appear on the right border.

2. Select the required direction of sorting, which is indicated by the direction of the arrow.

The symbol table is sorted according to the entries in this column. If you repeat the action, the sort order is reversed.

6.1.7.9 Selecting Symbol Rows

To select the symbol row in which the cursor is positioned, you can:

• Click on the row header to the left of the required symbol row.

• Press SHIFT + SPACEBAR.

To select all the rows in the active symbol table, you can:

Select the menu command Edit > Select > All.

• Press CTRL + A.

To undo the selection, select the menu command Edit > Undo Selection.

6.1.7.10 Copying Symbol Rows to the Clipboard

To copy one or more selected symbol rows to the clipboard buffer, you can:

Select the menu command Edit > Copy.

• Click the corresponding button in the toolbar.

• Press CTRL + C.

The existing contents of the clipboard buffer are then overwritten.

6.1.7.11 Saving a Symbol Table

The symbol table is not explicitly saved. When you exit a field in the symbol table, the contents are implicitly saved to intermediate memory and are immediately available for programming, for example. The symbol table is saved with the project (menu command File > Save or File > Save as).

6.1.8 How to Change the Window Settings