Xentara v1.1
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:
Quality | Meaning |
---|---|
good |
The value was successfully acquired. Values with this quality have been acquired in the normal way without any errors or issues. |
acceptable |
The value was acquired in an acceptable way, but some problem occurred. Values with this quality were acquired successfully, but may have reduced precision or accuracy. This may be due to using an alternate, inferior data source, to some non-critical error situation, or because a sensor or such is operating under conditions where the accuracy is reduced. Values with quality “acceptable” can still be used as inputs to control circuits, simulations, etc., but the results may not be as good as when using values with quality “good”. |
unreliable |
There was a problem acquiring the value, and it should not be relied upon. Values with this quality can used for informational purposes, but are not reliable enough for system critical uses, such as control ciruits, safety systems, etc. |
bad |
The value could not be acquired correctly. Values with this quality either could not be acquired at all, or a serious error was encountered, like exceeding the range of a sensor. |
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”.