5.3.4 ArrayItemType

5.3.4.1 General

This abstract VariableType defines the general characteristics of an ArrayItem. Values are exposed in an array but the content of the array represents a single entity like an image. Other DataItems can contain arrays that represent for example several values of several temperature sensors of a boiler.

ArrayItemType or its subtype shall only be used when the Title and AxisScaleType Properties can be filled with reasonable values. If this is not the case DataItemType and subtypes like AnalogItemType, which also support arrays, shall be used. The ArrayItemType is formally defined in Table 12.

Table 12 – ArrayItemType definition
Attribute Value
BrowseNameArrayItemType
IsAbstractTrue
ValueRank0 (0 = OneOrMoreDimensions)
DataTypeBaseDataType
References NodeClass BrowseName DataType TypeDefinition ModellingRule
Subtype of the DataItemType defined in 5.3.1; i.e. the Properties of that type are inherited.
HasSubtypeVariableTypeYArrayItemTypeDefined in 5.3.4.2
HasSubtypeVariableTypeXYArrayItemTypeDefined in 5.3.4.3
HasSubtypeVariableTypeImageItemTypeDefined in 5.3.4.4
HasSubtypeVariableTypeCubeItemTypeDefined in 5.3.4.5
HasSubtypeVariableTypeNDimensionArrayItemTypeDefined in 5.3.4.6
HasPropertyVariableInstrumentRangeRangePropertyTypeOptional
HasPropertyVariableEURangeRangePropertyTypeMandatory
HasPropertyVariableEngineeringUnitsEUInformationPropertyTypeMandatory
HasPropertyVariableTitleLocalizedTextPropertyTypeMandatory
HasPropertyVariableAxisScaleTypeAxisScaleEnumerationPropertyTypeMandatory
Conformance Units
Data Access ArrayItem2Type

InstrumentRange defines the range of the Value of the ArrayItem.

EURange defines the value range of the ArrayItem likely to be obtained in normal operation. It is intended for such use as automatically scaling a bar graph display.

EngineeringUnits holds the information about the engineering units of the Value of the ArrayItem.

For additional information about InstrumentRange, EURange, and EngineeringUnits see the description of BaseAnalogType in 5.3.2.2.

Title holds the user readable title of the Value of the ArrayItem.

AxisScaleType defines the scale to be used for the axis where the Value of the ArrayItem shall be displayed.

The StatusCode SemanticsChanged bit shall be set if any of the InstrumentRange, EURange, EngineeringUnits or Title Properties are changed (see 5.2 for additional information).

5.3.4.2 YArrayItemType

YArrayItemType represents a single-dimensional array of numerical values used to represent spectra or distributions where the x axis intervals are constant. YArrayItemType is formally defined in Table 13.

Table 13 – YArrayItemType definition
Attribute Value
BrowseNameYArrayItemType
IsAbstractFalse
ValueRank1
DataTypeBaseDataType
ArrayDimensions{0} (0 = UnknownSize)
References NodeClass BrowseName DataType TypeDefinition ModellingRule
Subtype of the ArrayItemType defined in 5.3.4.1
HasPropertyVariableXAxisDefinitionAxisInformationPropertyTypeMandatory
Conformance Units
Data Access YArrayItemType

The Value of the YArrayItem contains the numerical values for the Y-Axis. Engineering Units and Range for the Value are defined by corresponding Properties inherited from the ArrayItemType.

The DataType of this VariableType is restricted to SByte, Int16, Int32, Int64, Float, Double, ComplexNumberType and DoubleComplexNumberType.

The XAxisDefinition Property holds the information about the Engineering Units and Range for the X-Axis.

The StatusCode SemanticsChanged bit shall be set if any of the following five Properties are changed: InstrumentRange, EURange, EngineeringUnits, Title or XAxisDefinition (see 5.2 for additional information).

Figure 3 shows an example of how Attributes and Properties can be used in a graphical interface.

Figure 3 – Graphical view of a YArrayItem

Table 14 describes the values of each element presented in Figure 3.

Table 14 – YArrayItem item description
Attribute / Property Item value
DescriptionMagnitude Response (dB)
axisScaleTypeAxisScaleEnumeration.LINEAR
InstrumentRange.low-90
InstrumentRange.high5
EURange.low-90
EURange.high2
EngineeringUnits.namespaceUrlhttp://www.opcfoundation.org/UA/units/un/cefact
EngineeringUnits.unitId12878
EngineeringUnits.displayName“en-us”, “dB”
EngineeringUnits.description“en-us”, “decibel”
TitleMagnitude
XAxisDefinition.EngineeringUnits.namespaceUrlhttp://www.opcfoundation.org/UA/units/un/cefact
XAxisDefinition.EngineeringUnits.unitId4933722
XAxisDefinition.EngineeringUnits.displayName“en-us”, “kHz”
XAxisDefinition.EngineeringUnits.description“en-us”, “kilohertz”
XAxisDefinition.Range.low0
XAxisDefinition.Range.high25
XAxisDefinition.title“en-us”, “Frequency”
XAxisDefinition.axisScaleTypeAxisScaleEnumeration.LINEAR
XAxisDefinition.axisStepsnull

Interpretation notes:

5.3.4.3 XYArrayItemType

XYArrayItemType represents a vector of XVType values like a list of peaks, where XVType.x is the position of the peak and XVType.value is its intensity. XYArrayItemType is formally defined in Table 15.

Table 15 – XYArrayItemType definition
Attribute Value
BrowseNameXYArrayItemType
IsAbstractFalse
ValueRank1
DataTypeXVType
References NodeClass BrowseName DataType TypeDefinition ModellingRule
Subtype of the ArrayItemType defined in 5.3.4.1
HasPropertyVariableXAxisDefinitionAxisInformationPropertyTypeMandatory
Conformance Units
Data Access XYArrayItemType

The Value of the XYArrayItem contains an array of structures (XVType) where each structure specifies the position for the X-Axis (XVType.x) and the value itself (XVType.value), used for the Y-Axis. Engineering units and range for the Value are defined by corresponding Properties inherited from the ArrayItemType.

XAxisDefinition Property holds the information about the Engineering Units and Range for the X-Axis.

The axisSteps of XAxisDefinition shall be set to NULL because it is not used.

The StatusCode SemanticsChanged bit shall be set if any of the InstrumentRange, EURange, EngineeringUnits, Title or XAxisDefinition Properties are changed (see 5.2 for additional information).

5.3.4.4 ImageItemType

ImageItemType defines the general characteristics of an ImageItem which represents a matrix of values like an image, where the pixel position is given by X which is the column and Y the row. The value is the pixel intensity.

ImageItemType is formally defined in Table 16.

Table 16 – ImageItemType definition
Attribute Value
BrowseNameImageItemType
IsAbstractFalse
ValueRank2 (2 = two dimensional array)
DataTypeBaseDataType
References NodeClass BrowseName DataType TypeDefinition ModellingRule
Subtype of the ArrayItemType defined in 5.3.4.1
HasPropertyVariableXAxisDefinitionAxisInformationPropertyTypeMandatory
HasPropertyVariableYAxisDefinitionAxisInformationPropertyTypeMandatory
Conformance Units
Data Access ImageItemType

Engineering units and range for the Value are defined by corresponding Properties inherited from the ArrayItemType.

The DataType of this VariableType is restricted to SByte, Int16, Int32, Int64, Float, Double, ComplexNumberType and DoubleComplexNumberType.

The ArrayDimensions Attribute for Variables of this type or subtypes shall use the first entry in the array ([0]) to define the number of columns and the second entry ([1]) to define the number of rows, assuming the size of the matrix is not dynamic.

XAxisDefinition Property holds the information about the engineering units and range for the X-Axis.

YAxisDefinition Property holds the information about the engineering units and range for the Y-Axis.

The StatusCode.SemanticsChanged bit shall be set if any of the InstrumentRange, EURange, EngineeringUnits, Title, XAxisDefinition or YAxisDefinition Properties are changed.

5.3.4.5 CubeItemType

CubeItemType represents a cube of values like a spatial particle distribution, where the particle position is given by X which is the column, Y the row and Z the depth. In the example of a spatial partical distribution, the value is the particle size. CubeItemType is formally defined in Table 17.

Table 17 – CubeItemType definition
Attribute Value
BrowseNameCubeItemType
IsAbstractFalse
ValueRank3 (3 = three dimensional array)
DataTypeBaseDataType
References NodeClass BrowseName DataType TypeDefinition ModellingRule
Subtype of the ArrayItemType defined in 5.3.4.1
HasPropertyVariableXAxisDefinitionAxisInformationPropertyTypeMandatory
HasPropertyVariableYAxisDefinitionAxisInformationPropertyTypeMandatory
HasPropertyVariableZAxisDefinitionAxisInformationPropertyTypeMandatory
Conformance Units
Data Access CubeItemType

Engineering units and range for the Value are defined by corresponding Properties inherited from the ArrayItemType.

The DataType of this VariableType is restricted to SByte, Int16, Int32, Int64, Float, Double, ComplexNumberType and DoubleComplexNumberType.

The ArrayDimensions Attribute for Variables of this type or subtypes should use the first entry in the array ([0]) to define the number of columns, the second entry ([1]) to define the number of rows, and the third entry ([2]) define the number of steps in the Z axis, assuming the size of the matrix is not dynamic.

XAxisDefinition Property holds the information about the engineering units and range for the X-Axis.

YAxisDefinition Property holds the information about the engineering units and range for the Y-Axis.

ZAxisDefinition Property holds the information about the engineering units and range for the Z-Axis.

The StatusCode SemanticsChanged bit shall be set if any of the InstrumentRange, EURange, EngineeringUnits, Title, XAxisDefinition, YAxisDefinition or ZAxisDefinition Properties are changed (see 5.2 for additional information).

5.3.4.6 NDimensionArrayItemType

This VariableType defines a generic multi-dimensional ArrayItem.

This approach minimizes the number of types however it can be proved more difficult to utilize for control system interactions.

NDimensionArrayItemType is formally defined in Table 18.

Table 18 – NDimensionArrayItemType definition
Attribute Value
BrowseNameNDimensionArrayItemType
IsAbstractFalse
ValueRank0 (0 = OneOrMoreDimensions)
DataTypeBaseDataType
References NodeClass BrowseName DataType TypeDefinition ModellingRule
Subtype of the ArrayItemType defined in 5.3.4.1
HasPropertyVariableAxisDefinitionAxisInformation []PropertyTypeMandatory
Conformance Units
Data Access NDimensionArrayItemType

The DataType of this VariableType is restricted to SByte, Int16, Int32, Int64, Float, Double, ComplexNumberType and DoubleComplexNumberType.

AxisDefinition Property holds the information about the EngineeringUnits and Range for all axis.

The StatusCode SemanticsChanged bit shall be set if any of the InstrumentRange, EURange, EngineeringUnits, Title or AxisDefinition Properties are changed (see 5.2 for additional information).