OPC UA PubSub UInt16 Size|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
OPC UA PubSub UInt16 Size
Avatar
Jothi Sankarraj
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
1
08/01/2019 - 12:07
sp_Permalink sp_Print

I have a question regarding the size in bytes that represent a UInt16 in the bytes that we get from the server? I assumed that UInt16 is represented as 4 bytes long and parsed a binary under this assumption only to find that it is not correct! Any ideas about where in the documentation spec could I find the information regarding the byte size that represents UInt16?

Avatar
Randy Armstrong
Admin
Forum Posts: 1472
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
08/01/2019 - 22:47
sp_Permalink sp_Print

All of the types are fully defined in Part 6.

In this case, the '16' means 16-bits or 2 bytes.

Avatar
Jothi Sankarraj
Member
Members
Forum Posts: 29
Member Since:
04/09/2019
sp_UserOfflineSmall Offline
3
08/02/2019 - 00:23
sp_Permalink sp_Print

Ok

Randy Armstrong said
All of the types are fully defined in Part 6.

In this case, the '16' means 16-bits or 2 bytes.

  

 Thanks! That is now easy to remember and relate to! Thanks again!

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: 1366
Posts: 4625