View Issue Details

IDProjectCategoryView StatusLast Update
0006243NodeSets, XSDs and Generated CodeApi Changepublic2020-11-17 16:34
ReporterJim Luth Assigned ToRandy Armstrong  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0006243: ValueRank mismatch between MultiStateDictionaryEntryDiscreteBaseType and its base type
Description

The ValueRank attribute (-1) of MultiStateDictionaryEntryDiscreteBaseType (https://reference.opcfoundation.org/v104/Core/VariableTypes/MultiStateDictionaryEntryDiscreteBaseType/) does not match the ValueRank attribute (-1) of its base type MultiStateValueDiscreteType (https://reference.opcfoundation.org/v104/Core/VariableTypes/MultiStateValueDiscreteType/).

TagsNo tags attached.
Commit Version
Fix Due Date

Relationships

related to 0005928 closedRandy Armstrong ValueRank mismatch between MultiStateDictionaryEntryDiscreteBaseType and its base type 

Activities

Melvin

2020-11-10 17:53

reporter   ~0013170

It seems I can not edit my own issue. I meant to say that the ValueRank attribute of MultiStateValueDiscreteType is -2, not -1.

Christian von Arnim

2020-11-10 17:53

reporter   ~0013171

This issue was initially discussed here: https://github.com/open62541/open62541/issues/3826

The problem occures, when implementing the PADIM companion specification

MultiStateValueDiscreteType (ns=0;i=11238, ValueRank=-2[ANY]) --HasSubtype-->MultiStateDictionaryEntryDiscreteBaseType (ns=0;i=19077, ValueRank=-1[SCALAR]) --HasSubtype-->MultiStateDiscreteSignalVariableType(ns=PADIM;i1142, ValueRank=-2[ANY])

According to https://reference.opcfoundation.org/v104/Core/docs/Part3/6.2.7/ either MultiStateDictionaryEntryDiscreteBaseType should be ValueRank=-2, or MultiStateDiscreteSignalVariableType should have ValueRank=-1

Jim Luth

2020-11-10 17:53

administrator   ~0013172

Either PA-DIM needs to change to ValueRank = -1, or Part 19 needs to change to ValueRank=-2. Not sure which makes sense.

Jeff Harding

2020-11-10 17:53

reporter   ~0013173

During the August 27, 2019 TWG review of the Part 19 draft the ValueRank of the MultiStateDictionaryEntryDiscreteBaseType was changed to a Scalar.
During this review it was noted that since it is a subtype of MultiStateValueDiscreteType (defined in Part 8) which has a ValueRank of Scalar then it also needs to be Scalar.
Reference to meeting recording is https://youtu.be/_pT2ka45LyE start listening at 1:52:00.

I suggest we advise FCG that the PA-DIM spec needs to be updated.

-

Jim Luth

2020-11-10 17:53

administrator   ~0013174

Agreed to change specs to match nodeset (that has always been "any" since 1.03). Affects Part 8 and Part 19. Need Errata for 1.03 and 1.04.
Nodeset also needs to be changed (1.04) for MultistateDictionaryEntryDiscreteBaseType and MultistateDictionaryEntryDiscreteType from Scalar to Any.

Randy Armstrong

2020-11-10 17:53

administrator   ~0013175

MultiStateDictionaryEntryDiscreteBaseType.ValueRank now Any.

Randy Armstrong

2020-11-14 15:39

administrator   ~0013202

Errata created. NodeSet Updated.

Jim Luth

2020-11-17 16:34

administrator   ~0013249

Agreed to 1.04 Errata and nodeset change.

Issue History

Date Modified Username Field Change
2020-11-10 17:53 Jim Luth New Issue
2020-11-10 17:53 Jim Luth Status new => assigned
2020-11-10 17:53 Jim Luth Assigned To => Randy Armstrong
2020-11-10 17:53 Jim Luth Issue generated from: 0005928
2020-11-10 17:53 Jim Luth Note Added: 0013170
2020-11-10 17:53 Jim Luth Note Added: 0013171
2020-11-10 17:53 Jim Luth Note Added: 0013172
2020-11-10 17:53 Jim Luth Note Added: 0013173
2020-11-10 17:53 Jim Luth Note Added: 0013174
2020-11-10 17:53 Jim Luth Note Added: 0013175
2020-11-10 17:53 Jim Luth Relationship added related to 0005928
2020-11-14 15:39 Randy Armstrong Status assigned => resolved
2020-11-14 15:39 Randy Armstrong Resolution open => fixed
2020-11-14 15:39 Randy Armstrong Note Added: 0013202
2020-11-17 16:34 Jim Luth Status resolved => closed
2020-11-17 16:34 Jim Luth Fixed in Version => 1.04
2020-11-17 16:34 Jim Luth Note Added: 0013249