Difference between revisions of "Blocks Dataloger"

From IPLOG
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== [[Libraries for IEC 61131-3|Back to Libraries]] ==
 
== [[Libraries for IEC 61131-3|Back to Libraries]] ==
 +
 +
== Datalogger library ==
 +
To support for datalogger functionality package '''metel-datalogger''' must be installed first.
 +
{{NotePre
 +
|text=root@iplog:~# opkg update
 +
root@iplog:~# opkg install metel-datalogger
 +
 +
}}
 +
 +
On the internal webpage of IPLOG is new link for datalogger.
 +
 +
[[File:Link2.jpg]]
 +
 +
Maximum writing rate is 100 key-value pairs per second. Minimal writing period of key-value pair is 100 ms.
 +
 +
Capacity for raw integer values (including bools) is 1 080 000 entries.
 +
 +
Capacity for raw string values is 1 080 000 entries.
 +
 +
Integer values are compressed to aggregation tables by seconds, minutes, hours and days. Stored are count, sum, min, max and first value for each key in given period.
 +
 +
Capacity of aggregation tables are 1 080 000 for seconds and minutes, 876 000 for hours and 730 000 for days.
 +
 +
After fill tables capacity, oldest values will be automaticaly removed.
  
 
=== Logging ===
 
=== Logging ===
Line 20: Line 44:
 
|value
 
|value
 
|}
 
|}
 +
 +
==== DATALOGGER_W_DINT ====
 +
Writes signed integer value to datalogger
 +
{| class="wikitable"
 +
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 +
|-
 +
|in
 +
|KEY
 +
|string
 +
|
 +
|key for logged value
 +
|-
 +
|in
 +
|VALUE
 +
|dint
 +
|
 +
|value
 +
|}
 +
 +
==== DATALOGGER_W_UDINT ====
 +
Writes unsigned integer value to datalogger
 +
{| class="wikitable"
 +
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 +
|-
 +
|in
 +
|KEY
 +
|string
 +
|
 +
|key for logged value
 +
|-
 +
|in
 +
|VALUE
 +
|udint
 +
|
 +
|value
 +
|}
 +
'''Example:''' Write value from resin_1 only when resin1 value is changed. <br>
 +
[[File:Datalogger string.jpg]]
 +
 +
 +
==== DATALOGGER_W_STRING ====
 +
Writes string value to datalogger
 +
{| class="wikitable"
 +
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
 +
|-
 +
|in
 +
|KEY
 +
|string
 +
|
 +
|key for logged value
 +
|-
 +
|in
 +
|VALUE
 +
|string[255]
 +
|
 +
|value
 +
|}
 +
'''Example:''' Saving information about IPwatchdog into datalogger.<br>
 +
[[File:Datalogger string3.jpg]]

Latest revision as of 13:44, 9 November 2018

Back to Libraries

Datalogger library

To support for datalogger functionality package metel-datalogger must be installed first.

root@iplog:~# opkg update
root@iplog:~# opkg install metel-datalogger

On the internal webpage of IPLOG is new link for datalogger.

Link2.jpg

Maximum writing rate is 100 key-value pairs per second. Minimal writing period of key-value pair is 100 ms.

Capacity for raw integer values (including bools) is 1 080 000 entries.

Capacity for raw string values is 1 080 000 entries.

Integer values are compressed to aggregation tables by seconds, minutes, hours and days. Stored are count, sum, min, max and first value for each key in given period.

Capacity of aggregation tables are 1 080 000 for seconds and minutes, 876 000 for hours and 730 000 for days.

After fill tables capacity, oldest values will be automaticaly removed.

Logging

DATALOGGER_W_BOOL

Writes binary value to datalogger

Asynchronous interface
in KEY string key for logged value
in VALUE bool value

DATALOGGER_W_DINT

Writes signed integer value to datalogger

Asynchronous interface
in KEY string key for logged value
in VALUE dint value

DATALOGGER_W_UDINT

Writes unsigned integer value to datalogger

Asynchronous interface
in KEY string key for logged value
in VALUE udint value

Example: Write value from resin_1 only when resin1 value is changed.
Datalogger string.jpg


DATALOGGER_W_STRING

Writes string value to datalogger

Asynchronous interface
in KEY string key for logged value
in VALUE string[255] value

Example: Saving information about IPwatchdog into datalogger.
Datalogger string3.jpg