-

Step 1: Add/Remove Variables to/from the Subscription List

Variables subscription list on the left

On the left of the LOGIC ANALYZER window, the subscription list can be shown and hidden using the following toolbar icon:

This list is used both to manage the subscribed variables and as a legend for the curve display.

Each variable is displayed in a separate color, which is reflected in the graphical display.

In addition, two control elements are available for each variable:

/Defines the visibility of the variable: If the checkbox is marked, the variable is shown in the graph. Otherwise it is hidden. Its value, however, is recorded while it is hidden.
Removes the variable from the list, i.e. unsubscribes it. The value is then no longer recorded. Already recorded values and the related curve (if available) are deleted and cannot be restored.

Only one variable can be selected and moved at the same time.

Adding variables to the subscription list

Observe the following when adding variables:

Proceed as follows:
  1. While PLCnext Engineer runs in debug mode, select the POU instance ('Go to Instance Editor' or double-click the instance icon in the PLANT) and open the desired code worksheet from where you want to add a variable/port to the subscription list of the LOGIC ANALYZER. (See topic "Debug mode" for details.)

    After opening a code instance, you can also drag variables from the related variables editor in debug mode. Furthermore, you can add items from data lists and port lists in debug mode.

  2. Drag the desired variable/port from the online code worksheet, or from a variable table, Data List, or GDS Port List into the LOGIC ANALYZER window and drop it inside the window. Alternatively, select the variable/port and press <Ctrl>+<Alt>+<6>. (See below how to add user-defined data types.)

    The item is added to the LOGIC ANALYZER subscription list and appears in the legend. If the legend is not visible, it is opened automatically after adding a variable.

    The first variable to be added can be dropped anywhere in the window. When adding further variables, you have to drop them onto the curve area in the window (not on the subscription list).

    Example for adding a port from a non-IEC 61131-3 program

    You can modify the order of the variables in the subscription list later, by selecting a variable and move it up- or downwards by clicking one of the following icons on the toolbar:

  3. Once you have added the variables, define the recording settings for the current session as described in the following step.

Note
By loading a previously exported csv file (and deleting the imported curve values, if desired), you can use the csv file as a kind of "subscription list template" and immediately start a recording with the (imported) variables.

Special case: user-defined data types.

When dragging and dropping a user-defined data type such as a STRUCT or ARRAY variable into the LOGIC ANALYZER window, the 'Variable Selection' dialog box appears. Here you can select the members of the STRUCT/ARRAY to be subscribed.

The following applies:

You can filter the selection dialog box.

Using the following toolbar icons you can expand and collapse contained structures/arrays:

Example for selecting the members of a STRUCT data type for insertion

Removing variables/ports from the subscription list

In the LOGIC ANALYZER legend, click the icon of the item. The variable/port and its curve are removed from the LOGIC ANALYZER window. Already recorded values are lost.

Note
The subscription list is deleted when closing the project or exiting PLCnext Engineer. Closing only the LOGIC ANALYZER window, however, does not delete the LOGIC ANALYZER configuration.