Vai al contenuto

Adding a Variable to a Trigger Window from an FDB 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 k of the FBD code in the figure below.To this purpose, click Edit>Watch.The cursor will become as follows. Adding a Variable to a Trigger Window from an FDB Module-image_0Now you can click the block representing the variable you wish to be shown in the trigger window.In the example we are considering, click the button block. Adding a Variable to a Trigger Window from an FDB Module-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. Adding a Variable to a Trigger Window from an FDB Module-image_0In order to display the variable k in the trigger window, select its reference in the Debug windows 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 FDB 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 let the cursor take back its original shape.