Create a basic trend chart

Create a trend chart to display data over time in graphical format. Display data on a trend chart by:
  • Setting the minimum and maximum values
  • Adding traces
  • Specifying the tag containing the data to depict
  • Changing the appearance of a trend chart
    IMPORTANT:
    A trend chart clears all traces and resumes when the MaxValue, MinValue, or Visible property of a trend chart changes on the HMI device. For example, changing the MaxValue, MinValue, or Visible property value of a trend chart through a Text Input graphic element causes the trend chart, even while paused, to resume at the current time. Historical data, if available in a data log, appears for data before the current time. The trend chart discards all other data and plots new data.
To create a basic trend chart
  1. In the
    Trend Charts
    category of the
    Toolbox
    , double-click or drag and drop the
    Trend Chart
    graphic element onto the screen.
  2. In the
    Properties
    window, select the
    Properties
    tab.
  3. Expand the
    General
    category.
  4. In the
    MaxValue
    box, type any numeric value greater than the
    MinValue
    property value.
  5. In the
    MinValue
    box, type any numeric value less than the
    MaxValue
    property value.
  6. Select the
    Traces
    tab.
  7. Select
    Add Trace
    .
  8. In the
    Value
    box, select
    Browse
    ST5K_Project_Properties_Browse_button.jpg and navigate to the tag containing the data to depict on the trace, or enter the tag manually using the exact tag name and format.
  9. To add additional traces, below the last
    Trace
    card, select
    Add Trace
    , and in the
    Tag
    box select the tag for the trace.
    TIP:
    Tips:
    • The
      Value
      box does not have an initial value. Bind the
      Value
      box to a tag in a controller, a user-defined property, or a property of a graphic element. Unbinding this property is not supported.
    • To customize the appearance of a trend chart, change the properties in the
      Appearance
      category on the
      Properties
      tab in the
      Properties
      window.
    • To customize the appearance of a trace on a trend chart, change the properties in
      Appearance
      category on the
      Traces
      tab in the
      Properties
      window.
    • Trend charts automatically display data from a data log for the specified tag. Tags may exist in more than one data log. The trend chart uses the data log that contains a matching sample rate. If there is more than one data log with a matching sample rate or there is no data log with a matching sample rate, the trend chart uses the first data log.
    • The range of signed integers that is represented without losing precision is –(2^53)..(2^53). All integer values outside this range are rounded to 15 significant digits. For example, 8765432109876543210 is rounded to 8765432109876540000, losing the precision for the last four least significant digits.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal