Only support to write all valid bits in variable of data type BitFieldMaskDataType|OPC UA Standard|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
Only support to write all valid bits in variable of data type BitFieldMaskDataType
Avatar
Jonas Green
Halmstad, Sweden
Member
Members
Forum Posts: 23
Member Since:
05/24/2017
sp_UserOfflineSmall Offline
1
04/01/2020 - 01:03
sp_Permalink sp_Print

Hi,

Internally in our product we have a set of bit data types (1-8 bits, 16 bits and 32 bits wide). We translate these bit data types to OPC variables with variable type OptionSetValue and data type BitFieldMaskDataType. Internally we have no support to write a portion of the bits of a variable. So, if an OPC client writes only 1 bit (by only setting 1 bit in the validity field) to e.g. a 3 bit variable our OPC server NAK this WriteValue of the write service. Our server implementation requires that the validity field of the BitFieldMaskDataType must match the size of the bit data type, e.g. we expect that 3 bits are set in the validity field if the client writes to a .

My question is what status code we should return to the client for such a WriteValue?

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
04/01/2020 - 01:30
sp_Permalink sp_Print

https://reference.opcfoundatio…../#5.10.4.4

Bad_WriteNotSupported

The requested write operation is not supported.If a Client attempts to write any *value*, status code, timestamp combination and the Server does not support the requested combination (which could be a single quantity such as just timestamp); than the Server shall not perform any write on this Node and shall return this StatusCode for this Node. It is also used if writing an IndexRange is not supported for a Node.

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