Vai al contenuto

Adding a Variable to a Trigger Window from an LD Module

In order to watch the value of a variable, you need to add it to the trigger window. Let us assume that you want to inspect the value of variable b in the LD code represented in the figure below.To this purpose, click Edit>Watch mode.The cursor will become as follows. Adding a Variable to a Trigger Window from an LD Module-image_0Now you can click the item representing the variable you wish to be shown in the trigger window.A 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. Adding a Variable to a Trigger Window from an LD Module-image_0In order to display variable B in the trigger window, select its reference in the Debug window column, then click OK.The name of the variable is now printed in the Symbol column. Adding a Variable to a Trigger Window from an LD Module-image_0The same procedure applies to all the variables you wish to inspect.Once you have added to the Graphic watch window all the variables you want to observe, you can click Edit>Insert/Move mode, so as to restore the original shape of the cursor.