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.
Verify that a database is configured for the data logger. See Create a database.
  1. In the
    Project view
    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
      Properties
      pane under
      Variables to log
      .
  3. In
    Properties
    , configure the data logger sampling options:
    • To sample automatically all monitored variables regardless of variable values:
      1. Set
        Sampling mode
        to
        Periodic
        .
      2. Set the
        Sampling period
        property.
    • To sample automatically 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 deadband mode
        and
        Default deadband value
        properties. For more information, see Deadband 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 time stamp 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 the necessary columns is created.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.