-

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

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 anywhere 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.

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

  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.