Difference between revisions of "Blocks Dataloger"

From IPLOG
Jump to: navigation, search
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.
 +
 +
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 6: Line 21:
 
Writes binary value to datalogger
 
Writes binary value to datalogger
 
{| class="wikitable"
 
{| class="wikitable"
| colspan="5" |[[Libraries for IEC 61131-3|Asynchronous interface]]
+
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
 
|-
 
|-
 
|in
 
|in
Line 17: Line 32:
 
|VALUE
 
|VALUE
 
|bool
 
|bool
 +
|
 +
|value
 +
|}
 +
 +
==== DATALOGGER_W_DINT ====
 +
Writes signed integer value to datalogger
 +
{| class="wikitable"
 +
| colspan="5" |[[#Asynchronous operations|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" |[[#Asynchronous operations|Asynchronous interface]]
 +
|-
 +
|in
 +
|KEY
 +
|string
 +
|
 +
|key for logged value
 +
|-
 +
|in
 +
|VALUE
 +
|udint
 +
|
 +
|value
 +
|}
 +
 +
==== DATALOGGER_W_STRING ====
 +
Writes string value to datalogger
 +
{| class="wikitable"
 +
| colspan="5" |[[#Asynchronous operations|Asynchronous interface]]
 +
|-
 +
|in
 +
|KEY
 +
|string
 +
|
 +
|key for logged value
 +
|-
 +
|in
 +
|VALUE
 +
|string[255]
 
|
 
|
 
|value
 
|value
 
|}
 
|}

Revision as of 12:37, 9 November 2018

Back to Libraries

Datalogger library

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

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

DATALOGGER_W_STRING

Writes string value to datalogger

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