The StatisticType defines the structure of an Object of StatisticType. Figure 18 shows the hierarchical structure and details of the composition. It is formally defined in Table 24.
The StatisticType is a container for the different statistic values. All variables are optional so that the statistics can be instanced application-specific. The StatisticType can be instanced with parent nodes (e.g. ScaleDeviceType,…). Parent nodes other than those described in this Companion Specification are possible.
Figure 18 – Overview StatisticType
Table 24 – StatisticType Definition
Attribute |
Value |
||||
BrowseName |
StatisticType |
||||
IsAbstract |
False |
||||
References |
NodeClass |
BrowseName |
DataType |
TypeDefinition |
ModellingRule |
Subtype of the BaseObjectType defined in OPC 10000-5 |
|||||
0:HasProperty |
Variable |
StartTime |
0:DateTime |
0:PropertyType |
Optional |
0:HasProperty |
Variable |
ResetCondition |
0:String |
0:PropertyType |
Optional |
0:HasComponent |
Variable |
Tare |
0:Double |
AnalogItemType |
Optional |
0:HasComponent |
Variable |
Throughput |
0:UInteger |
AnalogItemType |
Optional |
0:HasComponent |
Object |
TotalPackages |
|
StatisticCounterType |
Optional |
0:HasComponent |
Object |
TotalPackagesWeighed |
|
StatisticCounterType |
Optional |
0:HasComponent |
Object |
LastItem |
|
WeighingItemType |
Optional |
StartTime defines the point in time at which the system starts acquiring the statistic (e.g. 15:00). This value is relevant for time statistics. For example, it can be used to create statistics for the last 3 hours.
ResetCondition is a vendor-specific, human readable string that describes the reason and context for the reset of the statistics. For example after 4 hours or after 1000 items. Please note that the subtype FloatingStatisticType is used for floating Statistics.
Examples:
ResetCondition::= “AFTER 4 HOURS”
ResetCondition::= “AFTER 1000 ITEMS”
ResetCondition::= “OPERATOR”
Tare defines the last occurring tare value of the period of time which is used for the statistic.
Throughput defines the number of items registered over the period of the statistic (e.g. packages/min).
TotalPackages defines the totalized number of packages of one cell for weight determination. Contains packages that were sorted out but were physically transported via the scale. This value may be calculated by TotalPackagesAccepted + TotalPackagesRejected.
TotalPackagesWeighed defines the totalized number of packages for which a weight was measured. No reference to acceptance or rejection of the package.
LastItem contains the values of the last item.