Xentara v1.0
User Manual
|
An I/O point represents a single input, output, or input/output within an I/O component. An I/O point can support the input direction (reading values), the output direction (writing values), or both directions.
I/O points are provided by I/O drivers. I/O drivers must be installed using plugins.
I/O points are not usually accessed directly, but through a [data point](Data Points].
The input values of I/O points will generally be acquired in one of two ways:
The output values of I/O points can generally be written in one of two ways:
A specific I/O component may support one or both of these methods.
An I/O point that supports the input direction has at least the following attributes:
An I/O point that supports the output direction has at least the following writable attributes:
An I/O point that supports both input and output directions will have all of the listed attributes.
Different types of I/O points may have additional attributes. Many I/O points that supports the input direction also have one or more of the following attributes:
Many I/O points that supports the output direction also have one or more of the following attributes:
An I/O point may also have any number of other attributes not listed here.
Each I/O point that supports the input direction has a quality associated with it. The quality denotes how reliable the value of the I/O point is. Xentara defines between the following qualities:
Qualities | |
---|---|
good | The value was successfully acquired. |
bad | A value was read, but it contains an error. |
not available | No value could be read. |
fixed | The value is a fixed fallback value. |
substituted | The value was taken from an alternate source. |
overriden | The value was overriden by a human. |
simulated | The value was created by a simulation. |
I/O points have at least the following members:
key | The I/O point’s primary key. |
name | The I/O point’s name. The name is the last point of the primary key. |
UUID | The unique UUID of the I/O point. |
value | The value of the I/O point. This will be readable for I/O points that support the input direction, and writable for I/O points that support the output direction. For I/O points that support both direction, this attribute will be readable and writable. |
updateTime | The last time the value was updated. This attribute is only available for I/O points that support the input direction. |
quality | The quality of the current value. This attribute is only available for I/O points that support the input direction. |
I/O points can optionally also have the following members:
sourceTime | The time stamp provided by the data source. This attribute is only available for I/O points that support the input direction. |
changeTime | The last time the value changed. This attribute is only available for I/O points that support the input direction. |
writeTime | The last time the value was written. This attribute is only available for I/O points that support the output direction. |
error | The last read error, as a protocol specific error code. This attribute is only available for I/O points that support the input direction. |
writeError | The last write error, as a protocol specific error code. This attribute is only available for I/O points that support the output direction. |
changed | Triggered when any of the input data has changed. This event is only available for I/O points that support the input direction. |
value | Triggered when the input value has changed. This event is only available for I/O points that support the input direction. |
quality | Triggered when the quality of the input value has changed. This event is only available for I/O points that support the input direction. |
Each individual type of I/O point can have additional members. Most I/O points will have an attribute containing the I/O address, for example. Please refer to the documentation of the specific I/O point for details.
To refer to a member, use its primary key. The primary key of the UUID attribute of an I/O point called “My.I/O.Point” is “My.I/O.Point.UUID”.