next up previous contents
Next: Error Handling Up: Representation of OPC XML-DA Previous: OPC Item Properties   Contents

Representation of the Item Value with PyOPC Data Types

OPC items have a value, containing the actual information, which corresponds to the value of a fieldbus data point. This value will be of a certain OPC data type, such as string or integer but also more complex types, such as an array. In order to access this information, PyOPC has to map the OPC data type to a corresponding Python data type, resulting in a possible data conversion. Table 1 describes all possible data conversions.


Table 1: Data Conversion Between OPC XML-DA and PyOPC
\begin{table}\centering
\includegraphics[scale=0.7]{graphics/dataconv.eps}\end{table}


Currently, the following data types are not supported by the PyOPC framework10:

[OPCXMLDA] further defines arrays, which may contain OPC data types from the above. These arrays are directly mapped to Python lists11 and its elements are converted as shown in Table 1.


next up previous contents
Next: Error Handling Up: Representation of OPC XML-DA Previous: OPC Item Properties   Contents
Hermann Himmelbauer 2006-11-07