Skip to main content
Version: 5.4

OPC HA Read

OPC HA Read TO can be used to query historical OPC data from servers that support it. The data can be read in raw or processed form.

General settings

PropertyDescription
ConnectionOPC connection used to read the OPC HA data.
Read modeEither [#raw-modified](opc-ha-lesen.md#raw-modified "mention") or [#processed](opc-ha-lesen.md#verarbeitet "mention")
Use start time

Sets the start of the period from which data is read. The time refers to the server's timestamp.

An explanation of the syntax can be found here: #time-offset-input-options

Use end time

Sets the end of the period from which data is read. The time refers to the server's timestamps.

An explanation of the syntax can be found here: #time offset input options

Include OPC Router timestampIf this option is enabled, the timestamp of the system on which the OPC Router is running is also transferred when a value is read.
Include server timestampIf this option is enabled, the timestamp of the system from which the values are read is also transferred when a value is read.
Treat Uncertain-Quality as BadIf this option is enabled, a value with the quality Uncertain is treated as a value with the quality Bad.
note

If the end time is before the start time, the data is sorted from old to new. If the start time is before the end time, the data is sorted from new to old.

If the start or end time is not set, the earliest possible time (DateTime.MinValue) is used for the unconfigured value.

Read mode specific settings

Raw / Modified

PropertyDescription
Read modified data

Specifies whether modified data should be read.
Info: Modified data is data that has been changed after it was initially written to the server database.

Read maximum N nodesSpecifies the maximum number of nodes to be read.

Processed

PropertyDescription
Transfer intervalSpecifies the size of the interval to which an aggregation is applied.
AggregationThis setting determines which aggregation is used for the values.
Use Server Capabilities Defaults

If this option is active, the server's default values are used.
The settings for "Use Sloped Extrapolation," "Accepted proportion of bad-quality data," and "Required data in good quality" are then ignored.

Use Sloped ExtrapolationSpecifies whether sloped extrapolation should be used.
Accepted proportion of bad-quality dataSpecifies the percentage of data that may be of bad quality.
Required good-quality dataSpecifies the percentage of data that must be of good quality.

Time offset input options

General

  • Relative values are specified with "+" or "-" and the unit without spaces, e.g., -1month
  • Absolute values are specified with brackets after the unit, e.g., year(2020)
  • Only whole numbers are allowed. The time 1.5 hours ago would have to be specified as -90min or -1h -30min.
  • If the year, month, or day is not specified in a relative time specification, the system time value is used.
  • If the hour, minute, or seconds are not specified, the value 0 is used for them.
  • Relative and absolute time specifications can be combined.

Absolute time specifications

ParametersExplanationValid values
secondSpecifies one second.0-60 (integer)
minuteSpecifies a minute.0-60 (integer)
hourSpecifies an hour.0-24 (integer)
daySpecifies a day.0-31 (integer)
monthSpecifies a month.0-12 (integer)
yearSpecifies a year.Integer
### Relative time specifications

ParameterExplanationValid values
+/-secondsecondDepending on the sign, the specified number of seconds is added to or subtracted from the current time.Integer
+/-minutesminuteDepending on the sign, the specified number of minutes is added to or subtracted from the current time.Integer
+/-hourshourDepending on the sign, the specified number of hours is added to or subtracted from the current time.Whole number
+/-daysdayDepending on the sign, the specified number of days is added to or subtracted from the current time.Integer
+/-monthsmonthDepending on the sign, the specified number of months is added to or subtracted from the current time.Integer
+/-yearsyearDepending on the sign, the specified number of years is added to or subtracted from the current time.Integer
### Examples

TargetInput
Current day 6 a.m.hour(6)
One month ago-1month
First day of the monthday(1)
First day of the previous month-1month day(1)
One year ago-1year
First day of the yearmonth(1) day(1)
First day of the previous year-1year month(1) day(1)
note

It is not possible to specify the 10th minute of the current hour, as minute(10) returns the time 00:10:00. This behavior makes it easier to reset the time to zero. For example, on the first day of the month, the time does not have to be manually set to 0 with all parameters.