reading documentation|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
reading documentation
Avatar
Francesco Viscomi
Member
Members
Forum Posts: 8
Member Since:
06/12/2024
sp_UserOfflineSmall Offline
1
07/31/2024 - 07:14
sp_Permalink sp_Print

Hi all

I'm new to opc ua world, and when I try to read the documentation as for example:

Name

Data Type

Description

Encoding Mask

Byte

A bit mask that indicates which fields are present in the stream.

The mask has the following bits:

0x01

False if the Value is Null.

0x02

False if the StatusCode is Good.

 

I'm asking the meaning of =0x01.... 0x02 and so on?

thanks

Avatar
Randy Armstrong
Admin
Forum Posts: 1555
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/01/2024 - 21:37
sp_Permalink sp_Print

0x1 means it is bit field and the 0x1 is value used to set the bit.

mask |= 0x1;

Avatar
Francesco Viscomi
Member
Members
Forum Posts: 8
Member Since:
06/12/2024
sp_UserOfflineSmall Offline
3
08/02/2024 - 00:51
sp_Permalink sp_Print

Sorry for that, could you give more details? please!

the value 0x01 is always 0 🙂 may be x is not for aritmetic operator.

and also the notation mask |= 0x1;

what is the meaning of | 

 

thanks and sorry for not understanding

Avatar
Randy Armstrong
Admin
Forum Posts: 1555
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
08/02/2024 - 11:12
sp_Permalink sp_Print sp_EditHistory

https://en.wikipedia.org/wiki/.....exadecimal

In programming, several notations denote hexadecimal numbers, usually involving a prefix. The prefix

0x

is used in C, which would denote this value as

0x548C

.

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