Counter Log

Counter Log logo

Counter Log stores counter values and displays data across different time intervals.


Counter Log enables logging of consumption (e.g. electrical, gas, water). Counter Log stores measured values into database and displays the data on the chart.


Counter log

Picture 1: Counter log settings

Input Value can be linked to any object value of type double, integer and boolean. If the input value is boolean type, then the number of impulses (lead edge switching) is counted.

Ignore Count Down setting prevents writing the negative counter values to database (e.g. when the meter is reset to 0). Filter Counter Resets function can be used when meter measuring the input values is replaced with new one or is reset to zero. This will create an inconsistency in the measured data (will be calculated as change in consumption). By calling the Filter Counter Resets the database is rewritten to compensate for the change.

Maximum limit for database size can be set (Delete Old Data) in days (Days to Delete Old Data).

Data can be scaled (Scaling) before it is written to database.

Multiple calculated values (Total Value, Last 24 Hours, Today Count, Yesterday Count, Daily Average, This Month Count, Previous Month Count, Monthly Average *) are available for user interface display or to use in other tasks (e.g. in *Program task to alert users of high consumptions or to send monthly consumption reports).

Entries are displayed under Data tab and it can be backed up, restored, exported and filtered using buttons in toolbar.

User Interface

Data Logger control enables viewing the data on theme panels.

Counter log UI

Picture 2: Counter log UI

  • Multiple logging data can be combined on one plot control.
  • Use buttons in top right corner to export (Excel or Database file), delete or refresh data.


Example 1: Logging electricity consumption

  1. Use electricity consumption for Input value (e.g. kWh meter).
  2. Make the UI control.

Example 2: Logging gas consumption from impulse meter

  1. Use impulse meter for Input value (e.g. impulse meter 1m3 = 100imp).
  2. Scale the data to log the value in correct units (e.g. to get m3, K = 0.01) .
  3. Make the UI control.

Example 3: Monthly energy report

  1. Use consumption for Input value.
  2. Create Program task. Add Run command, select Send Mail function from the user node. Generate a energy report text including the calculated values in the text.
  3. Create Schedule task. Add Run command, select Program task from step 2. Set event repeat type to Monthly and set the day of month to send the report.
Download Examples