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.
- 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.
- In thePropertiespane, configure the data logger sampling options:
- To automatically sample all monitored variables regardless of their values:
- SetSampling modetoPeriodic.
- Set theSampling periodproperty.
- To automatically sample all monitored variables which values have changed in comparison with the previous sampling:
- Set theSampling modetoChange in value.
- Set thePolling timeproperty.
- Set theDefault dead-band modeandDefault dead-band valueproperties. For more information, see Dead-band 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 timestamp 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 necessary columns is created.
Provide Feedback