Attribute write values for device without writable variable nodes|OPC Certification and Interoperability Testing|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Attribute write values for device without writable variable nodes
Avatar
Jesper Håkansson
Member
Members
Forum Posts: 4
Member Since:
10/13/2017
sp_UserOfflineSmall Offline
1
10/13/2017 - 02:57
sp_Permalink sp_Print

In e.g. Attribute Services - Attribute Write Values - 001, the test tries to write an attribute and accepts StatusCode.Good and StatusCode.BadWriteNotSupported.

However, in the specification, part 3 (release 1.03) table 3, it is stated, for ValueForVariableType, that "It does not apply for Variables since this is handled by the AccessLevel and UserAccessLevel Attributes for the Variable. For Variables this bit shall be set to 0."

Doesn't this mean that the accepted status code in addition to Good should be BadUserAccessDenied?

Also, in the clean up of the test revertToOriginalValues(), not so logically placed in initialize.jsConfused, no ExpectedAndAcceptedResults arguments are included so it tries to revert a value that hasn't been changed and isn't writable.

Avatar
Paul Hunkar
Member
Members
Forum Posts: 27
Member Since:
07/05/2017
sp_UserOfflineSmall Offline
2
10/25/2017 - 12:50
sp_Permalink sp_Print

Some additional information on what you are asking:

Table 3 Part 3 - Bit mask for WriteMask and UserWriteMask describe what the bits in the writemask/userwritemask apply to.  there is no bit for value, since the value is handle separately.  The ValueForVariableType bit is if the value field is in a VariableType definition - i.e. what it is stating is that this bit is only for a VariableType not a Variable.

The value field is only governed by the fields described in table 8 - i.e. AccessLevel and UserAccessLevel

So an Access level of read is not a user access level restriction, it is just not writeable.  UserAccessdenied imply that some user might be able to write, but a AccessLevel of ReadOnly say no user will ever be able to write this value.  A should be told that the value is Not writeable (by anyone).

What version of the CTT are you using?  then we can better investigate this issue with regard to cleanup.

Paul

Avatar
Jonas Green
Halmstad, Sweden
Member
Members
Forum Posts: 23
Member Since:
05/24/2017
sp_UserOfflineSmall Offline
3
10/27/2017 - 05:40
sp_Permalink sp_Print

paul.hunkar@opcfoundation.org said

What version of the CTT are you using?  then we can better investigate this issue with regard to cleanup.

Paul  

Hi,

Thanks for the explanation. We are using the latest release, version 1.02.336.273.

Br, Jonas.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 17
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1341
Posts: 4546