DataValue¶
Canonical path: o6.DataValue
DataValue
¶
OPC UA DataValue: a value with its status and timestamps.
The value field is a Variant, so the same field accepts any built-in
type, a structure, an array, or None for an empty value. The remaining
fields are optional: assigning None clears one, and an unset timestamp
reads back as None. An unset status reads back as GOOD, because the
spec treats a missing StatusCode as Good with no info bits.
Every field can also be passed to the constructor as a keyword argument.
See Container Types.
Attributes¶
status
property
writable
¶
The StatusCode of the value.
Reads back as GOOD when no status was set. Assign None to clear
an earlier status.
sourceTimestamp
property
writable
¶
When the source produced the value, if the source reports it.
serverTimestamp
property
writable
¶
When the server observed the value, if the server reports it.
sourcePicoseconds
property
writable
¶
Sub-tick refinement of sourceTimestamp, in picoseconds.
serverPicoseconds
property
writable
¶
Sub-tick refinement of serverTimestamp, in picoseconds.
Functions¶
__init__
¶
__init__(
*,
value=...,
status=...,
sourceTimestamp=...,
serverTimestamp=...,
sourcePicoseconds=...,
serverPicoseconds=...
)