Add a data logger manually

You can configure a data logger by adding a data logger object and setting its properties.
TIP: You can also add a data logger by using a dedicated interface. See Add a data logger.
Ensure that a database is configured for the data logger. See Create a database.
  1. In the pane, right-click
    Loggers
    and select
    New
    Data logger
    .
  2. Select the variables to sample and store:
    1. Double-click the
      Data logger
      object.
      The object editor shows the project nodes.
    2. Select the variables to sample and select
      Apply
      .
      TIP: You can quickly find the variables that you want to select by using the
      Search
      field.
      The variables appear in the pane under
      Variables to log
      .
  3. In the pane, configure the data logger sampling options:
    • To automatically sample all monitored variables regardless of their values:
      1. Set
        Sampling mode
        to
        Periodic
        .
      2. Set the
        Sampling period
        property.
    • To automatically sample all monitored variables which values have changed in comparison with the previous sampling:
      1. Set the
        Sampling mode
        to
        Change in value
        .
      2. Set the
        Polling time
        property.
      3. Set the
        Default dead-band mode
        and
        Default dead-band value
        properties. For more information, see Dead-band interval properties.
    • To sample the variables by invoking the
      Log
      method, set
      Sampling mode
      to
      None
      .
  4. To store the operation codes of the reading on the controller in the database, set
    Log operation code of each variable
    to
    True
    .
    For more information, see Read operation codes.
  5. To store the timestamp of each sample in the database, set
    Log timestamp of each variable
    to
    True
    .
  6. To store the variable reading date and time (local format) in a dedicated table column of the database, set
    Log local time
    to
    True
    .
  7. From the
    Store
    property, select the database to store the data.
A database table with all necessary columns is created.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.