Skip to main content

DA — Data Access

Data Access (DA) This is the most OPC UA basic type of access, and almost every system implements OPC UA Server it DA. It defines how to expose and access real-time data in a standardized way.

Further Reading

DA Core Node Types​

TypeUses
BaseDataVariableTypeBase Class for General-Purpose Data Variables
DataItemTypeReal-time Data Items (including engineering units)
AnalogItemTypeAnalog Values (including EU Range / Engineering Units)
DiscreteItemTypeDiscrete Quantities (On/Off / State)
TwoStateDiscreteTypeTwo-State Discrete (Boolean)
MultiStateDiscreteTypePolymorphic Discrete (Enumeration)
MultiStateValueDiscreteTypeDiscrete Polymorphic Values

Standard Property​

DA Variables typically have the following properties:

PropertyMeaningSample Values
EngineeringUnitsEngineering Unit (including NamespaceUri / Unit Id / DisplayName / Description)°C
EURangeEngineering Unit Range [Low, High][-50, 200]
InstrumentRangePhysical Instrument Measurement Range[-100, 300]
ValuePrecisionNumerical Accuracy0.1
DefinitionDefinition (optional)"Boiler outlet temperature"

Client-Side Reading Example​

// Read the temperature value
var temp = ua.Read("ns=2;s=Boiler1.Temperature");
Console.WriteLine($"Value = {temp.Value.AsDouble}");

// Unit of measurement
var unit = ua.Read("ns=2;s=Boiler1.Temperature.EngineeringUnits");
Console.WriteLine($"Unit = {unit.Value}"); // EUInformation Structure

// Reading Range
var range = ua.Read("ns=2;s=Boiler1.Temperature.EURange"); // Returns the Range Structure

Dead Zone Subscription (DataChangeFilter)​

DA When subscribing to variables, it's common to use a "Percent" dead zone to reduce noise:

sub.Add("ns=2;s=Boiler1.Temperature",
samplingIntervalMs: 100,
deadband: new DataChangeFilter {
DeadbandType = DeadbandType.Percent,
DeadbandValue = 1.0, // 1% of EURange
Trigger = DataChangeTrigger.StatusValue
});

Key Points for Real-World Application​

  • An AnalogItemType must have an EURange property; otherwise, the percentage deadband cannot be calculated.
  • DiscreteItemType uses Status to trigger changes
  • The client should not hard-code unit °C literals such as; instead, it should EngineeringUnits.UnitId retrieve them from (UNECE encoding).