Monitor local and global variables

Open the local or global variable grids to monitor the variable values in real time.
Each variable grid displays the values and force status of the variables in their respective columns. When the output value is not available, text appears in the output label.
For graphical programs and function blocks, the appearance of values vary with their type:
  • Boolean data type output values are displayed in either black or gray, regardless of whether the value is True or False. A black output value indicates that it can be modified, and a gray output value indicates that it cannot be changed.
  • Output values of the SINT, USINT, BYTE, INT, UINT, WORD, DINT, UDINT, DWORD, LINT, ULINT, LWORD, REAL, LREAL, TIME, DATE, and STRING data types appear as a number or text value in the element. When the output is a structure type, the value appears as the selected member.
Prerequisites
  • The controller is in
    Remote run
    mode.
To monitor local and global variables
  1. Open the variable grid by doing one of the following:
    • To open the local variable grid, in
      Project Organizer
      , go to
      Programs
      <program-name>
      , and then double-click
      Local Variables
      .
    • To open the global variable grid, in
      Project Organizer
      , double-click
      Global Variables
      .
  2. Monitor the values.
    TIP:
    • The background color of a cell shows its status: white for modifiable; gray for read-only.
    • The
      Value
      of user-defined functions and user-defined function blocks are read-only.
    • For Program Organization Units whose
      Value
      is modifiable, you can also modify the value in the language editor.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal