Individual Components If you double-click the mouse on a line in the message window or press , the editor opens with the object loaded. The line concerned in the object is marked. You can jump rapidly between display lines using the function keys and + . 'Project' 'Global Replace' With this command you can search for the location of a text in POUs, data types, or the objects of the global variables and replace this text by another. This is executed in the same way as with "Project" "Global Search" or "Edit" "Replace" . The libraries, however, are not offered for selection and no display in the message window is possible. ‘Project‘ ‘Check‘ A submenu listing the following commands will open:
Unused Variables Overlapping memory areas Access conflict Multiple writes to output Results are displayed in the message window. Each of these functions tests the state of the most recent compilation. The project must therefore have been compiled error-free at least once, before the test can be carried out; if not, the menu items are “greyed out". Results are displayed in the message window. Unused Variables: This function searches for variables that have been declared but not used in the program. They are outputted by POU name and line, e.g.: PLC_PRG (4) – var1. Variables in libraries are not examined. Results are displayed in the message window. Overlapping memory areas:
This function tests whether in allocation of variables via the “AT” declaration overlaps have arisen at specific memory areas. For example, an overlap occurs when allocating the variables “var1 AT %QB21: INT” and “var2 AT %QD5: DWORD” because they both use byte 21. The output then appears as follows: %QB21 is referenced by the following variables: PLC_PRG (3): var1 AT %QB21 PLC_PRG (7): var2 AT %QD5 Results are displayed in the message window. Access conflict: This function in the 'Project' 'Check' menu searches for memory areas which are referenced in more than one task. No distinction is made here between read and write access. The output is for example:
%MB28 is referenced in the following tasks : Task1 – PLC_PRG (6): %MB28 [read-only access] Task2 – POU1.ACTION (1) %MB28 [write access] Results are displayed in the message window. Multiple writes to output: This function of the 'Project' 'Check' menu searches for memory areas to which a single project gains write access at more than one place. The output then appears as follows: TX1200 85 Version: 1.3