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.
- In theProject viewpane, right-clickLoggersand select .
- Select the variables to sample and store:
- Double-click theData loggerobject.The object editor shows the project nodes.
- Select the variables to sample and selectApply.TIP: You can quickly find the variables that you want to select by using theSearchfield.The variables appear in thePropertiespane underVariables to log.
- InProperties, configure the data logger sampling options:
- To sample automatically all monitored variables regardless of variable values:
- SetSampling modetoPeriodic.
- Set theSampling periodproperty.
- To sample automatically all monitored variables which values have changed in comparison with the previous sampling:
- Set theSampling modetoChange in value.
- Set thePolling timeproperty.
- Set theDefault deadband modeandDefault deadband valueproperties. For more information, see Deadband interval properties.
- To sample the variables by invoking theLogmethod, setSampling modetoNone.
- To store the operation codes of the reading on the controller in the database, setLog operation code of each variabletoTrue.For more information, see Read operation codes.
- To store the timestamp of each sample in the database, setLog time stamp of each variabletoTrue.
- To store the variable reading date and time (local format) in a dedicated table column of the database, setLog local timetoTrue.
- From theStoreproperty, select the database to store the data.
A database table with all the necessary columns is created.
Provide Feedback