View Issue Details

IDProjectCategoryView StatusLast Update
000442610000-008: Data AccessSpecpublic2020-06-17 15:36
ReporterMaarten Reekmans Assigned ToKarl Deiretsbacher  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Summary0004426: ValuePrecision for Duration DataType is undefined
Description

I am modeling a way for clients to read the uptime of a machine from an OPC UA server.

I have modeled the UpTime variable with the Duration DataType. The underlying system can only provide the uptime with a precision in minutes, so I would like to add this precision “meta” information.

The optional property “ValuePrecision” of a DataItemType looks like the proper way of modeling this. However the OPC Spec. 1.04 Part 8 – 5.3.1. DataItemType states:

ValuePrecision can be used for the following DataTypes:
• For Float and Double values it specifies the number of digits after the decimal place.
• For DateTime values it indicates the minimum time difference in nanoseconds. For example, a ValuePrecision of 20 000 000 defines a precision of 20 ms.

So the ValuePrecision of a Duration is undefined.

Duration could be added to the second bullet point (DateTime) which I think is a valid addition: A Duration with the ValuePrecision of 20 000 000 then means a precision of 20 ms.

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

Maarten Reekmans

2018-10-30 12:37

reporter   ~0009502

This is closely related to this issue so maybe they can be merged:

https://opcfoundation-onlineapplications.org/mantis/view.php?id=4275

Karl Deiretsbacher

2018-12-04 22:28

developer   ~0009670

fixed in OPC UA Part 8 - DataAccess Draft 1.05.4 Specification.docx

Added the following clause: "ValuePrecision can also be used for other subtypes of Double (like Duration) and other Number subtypes that can be represented by a Double"

Jim Luth

2020-06-17 15:36

administrator   ~0012408

Agreed to changes in virtual F2F.

Issue History

Date Modified Username Field Change
2018-10-30 12:28 Maarten Reekmans New Issue
2018-10-30 12:37 Maarten Reekmans Note Added: 0009502
2018-12-04 17:29 Jim Luth Assigned To => Karl Deiretsbacher
2018-12-04 17:29 Jim Luth Status new => assigned
2018-12-04 22:28 Karl Deiretsbacher Note Added: 0009670
2018-12-04 22:28 Karl Deiretsbacher Status assigned => resolved
2018-12-04 22:28 Karl Deiretsbacher Fixed in Version => 1.05
2018-12-04 22:28 Karl Deiretsbacher Resolution open => fixed
2020-06-17 15:36 Jim Luth Status resolved => closed
2020-06-17 15:36 Jim Luth Note Added: 0012408