The OPC UA Variable Type MaterialQuantityType describes the quantity of a given material in a suitable unit of measure.
Figure 28 shows an overview for the MaterialQuantityType with related Variable. It is formally defined in Table 73.
Figure 28 – MaterialQuantityType overview
The MaterialQuantityType is formally defined in Table 73.
Table 73 – MaterialQuantityType Definition
Attribute |
Value |
||||
BrowseName |
MaterialQuantityType |
||||
IsAbstract |
False |
||||
ValueRank |
-1 ( -1 = Scalar) |
||||
DataType |
Double |
||||
References |
Node Class |
BrowseName |
DataType |
TypeDefinition |
Modelling Rule |
Subtype of DataItemType defined in OPC 10000-8. |
|||||
HasComponent |
Variable |
DisplayFormat |
String |
PropertyType |
Mandatory |
HasComponent |
Variable |
0:EngineeringUnits |
EUInformation |
PropertyType |
Mandatory |
The MaterialQuantityType VariableType is a concrete type and can be used directly.
The following properties are already included in the DataItemType.
ValuePrecision defines the maximum precision that the server can maintain for this item.
The following Properties are defined to extend the DataItemType.
The Variable DisplayFormat specifies how the value shall be displayed across all displays, clients and applications for uniformity. It is a string that contains one or more format specifiers, which are single characters or groups of characters that define how the string representation of that object's value should appear.
The Property EnginneringUnits specifies the unit of measure used to quantify the material quantity and shall be considered the base unit of measure. The following list identifies base units of measure, harmonised for given processes:
For other measurements, the units of measure shall be taken from UN/ECE Rec20.