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
- Basics — Nodes — Variables NodeClass and Attributes
- Basics — Subscription Models — DataChangeFilter Dead Zone Configuration
- Example — Multi-Point Subscription Collection
DA Core Node Types
| Type | Uses |
|---|---|
| BaseDataVariableType | Base Class for General-Purpose Data Variables |
| DataItemType | Real-time Data Items (including engineering units) |
| AnalogItemType | Analog Values (including EU Range / Engineering Units) |
| DiscreteItemType | Discrete Quantities (On/Off / State) |
| TwoStateDiscreteType | Two-State Discrete (Boolean) |
| MultiStateDiscreteType | Polymorphic Discrete (Enumeration) |
| MultiStateValueDiscreteType | Discrete Polymorphic Values |
Standard Property
DA Variables typically have the following properties:
| Property | Meaning | Sample Values |
|---|---|---|
| EngineeringUnits | Engineering Unit (including NamespaceUri / Unit Id / DisplayName / Description) | °C |
| EURange | Engineering Unit Range [Low, High] | [-50, 200] |
| InstrumentRange | Physical Instrument Measurement Range | [-100, 300] |
| ValuePrecision | Numerical Accuracy | 0.1 |
| Definition | Definition (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
°Cliterals such as; instead, it shouldEngineeringUnits.UnitIdretrieve them from (UNECE encoding).