...
History must be enabled on the tag (either directly on the MQTT Engine tag and/or reference tag) with these two three settings required:
- Deadband Style set to Discrete
- Sample Mode set to On Change
- Min Time Between Samples set to 0
Image RemovedImage Added
All historic data will be written to the tag using the timestamp associated with the historical data.
Note |
---|
Deadband Style must be set to Discrete for all tag datatypes. This ensures that a change is registered any time the value moves +/- the specified amount from the last stored value. See this Ignition Configuring Tag History Deadband and Analog Compression for details on how the Auto, Analog and Discrete Deadband Styles differ. |
Note |
---|
When Max Time Between Samples is greater than 0, inserts at this sample time are not honored during historical data flushes because the tag updates for historical data occur too quickly. For example the Max Time Between Samples is 5 Seconds. Whilst the edge node is offline, the edge node tag has updates every 10 seconds. On reconnect, all these historical change events are published and written to the MQTT Engine tag within milliseconds. As a result the Max Time Between Samples does not trigger. |
...
- Suitable for writing historical events directly to the database or writing historical events directly to the tag
- Real-time data is written to the storage provider on each tag change event whilst the tag quality is Good
- Historical data is written to the storage provider or tag using the timestamp associated with the historical data
- Handles historical metrics flushed from the Edge that have very high resolution; e.g., the historical metrics have timestamps 1 ms apart for a single tag
Image RemovedImage Added
Sample Mode = On Change, Min Time Between Samples = 0, Max Time Between Samples = 5
- Suitable for writing historical events directly to the database or writing historical events directly to the tag
- Real-time data is written to the storage provider on each tag change event whilst the tag quality is Good
- Real-time data is written to the storage provider on the Max Time Between Samples interval if no tag change events whilst the tag quality is Good
- Historical data is written to the storage provider or tag using the timestamp associated with the historical data
- When the Max Time Between Samples > 0, there will be no inserts during a history flush as the tag updates occur too quickly
- Handles historical metrics flushed from the Edge that have very high resolution; e.g., the historical metrics have timestamps 1 ms apart for a single tag
Image RemovedImage Added
Sample Mode = Periodic, Max Time Between Samples = 0, Sample Rate = 5
- Suitable only for writing historical events directly to the database
- Real-time data is written to the storage provider on the Sample Rate whilst the tag quality is Good
- Historical data is written to the storage provider using the timestamp associated with the historical data
Image RemovedImage Added
Ignition Allow Back-fill Data
...