Xentara v2.0.3
User Manual
Bit Values

Table of Contents

Bit values are skill data points that extract a single bit from a numeric data point containing a signed or unsigned integer value. The bit’s value is represented as a Boolean value. The conversion is done automatically and does not require a task to be scheduled.

The bit value can optionally be inverted, meaning that the result value will be false if the source bit was set, and true if the source bit was not set.

Bit value data points are always read only.

Accessing Bit Values

Bit values have the following members:

Attributes
keyThe bit value’s primary key.
nameThe bit value’s name. The name is the last component of the primary key.
UUIDThe unique UUID of the bit value.
typeThe bit value’s element type. For bit values, this is always “bit value”.
categoryThe bit value’s category. For bit values, this is always “data point”.
valueThe bit’s value, extressed as a Boolean value. For normal bit values, a value of true means the bit was set, a value of false means it was not set. For inverted bits values, false means set, and true means not set.
updateTimeThe last time the value was updated.
changeTimeThe last time the value changed.
qualityThe quality of the current value.
errorIf the quality attribute is anything but “good”, this attribute contains the error that caused the quality to degrade.
Events
changedThis event is raised when the value, the quality, or the error changes.

Additionally, the bit value will inherit all attributes and events related to the input data from its source value. At least the following attributes are inherited from the source value data point, if is provides them:

  • sourceTime

Each individual type of skill data point can have additional attributes and events that are inherited by bit values. Please refer to the documentation of the specific skill data point for details. Bit values inherit the same attributes and events that data points inherit from their input.