Vai al contenuto

Adding a Variable from a Graphical Source Code Editor

Follow this procedure to add a variable to the Watch window from a graphical (that is, LD, FBD, or SFC) source code editor:
  • Click the Edit>Watch mode.
  • Click on the block representing the variable you wish to be shown in the Watch window.
Adding a Variable from a Graphical Source Code Editor-image_0A dialog box appears listing all the currently existing instances of debug windows, and asking you which one is to receive the object you have just clicked on. Adding a Variable from a Graphical Source Code Editor-image_0In order to display the variable in the Watch window, select Watch, and then click OK.The variable name, value, and location are now displayed in a new row of the Watch window. Adding a Variable from a Graphical Source Code Editor-image_0The same procedure applies to all the variables you wish to inspect.Once you have added to the Watch window all the variables you want to observe, you should click on the Edit>Insert/Move mode: the mouse cursor turns to its original shape.