decimals in UA-ModelDesigner|OPC UA Implementation: Stacks, Tools, and Samples|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
decimals in UA-ModelDesigner
Avatar
Sascha
Member
Members
Forum Posts: 3
Member Since:
05/19/2023
sp_UserOfflineSmall Offline
1
05/19/2023 - 02:57
sp_Permalink sp_Print

Hi,

 

I use the UA ModelDesigner to create a simple Opc Ua Server for testing our Opc Ua Client. We want to support the decimal Datatype, that’s why I want to have it in the server. For testing whether the server is running correctly I use UA Expert, but also tried Softing Opc Ua Client.

I tried a lot of things, but didn’t get the Decimal running. Softing finds the struct and shows the scalar and value, but at writing I get a BadTypeMismatch.

So how do I need to write the model xml to get a working Decimal value node?

 

Thanks for your help

Sascha

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

You need to raise an issue on OPCUA NETStandard github.

This does not sound like an issue with the generated code but with the core libraries.

Avatar
Sascha
Member
Members
Forum Posts: 3
Member Since:
05/19/2023
sp_UserOfflineSmall Offline
3
05/21/2023 - 02:30
sp_Permalink sp_Print

Hi Randy,

 

thanks for your response. Please, can you give me the correct model xml snippet, to be sure it is not my fault?

 

Thanks.

Avatar
Sascha
Member
Members
Forum Posts: 3
Member Since:
05/19/2023
sp_UserOfflineSmall Offline
4
05/24/2023 - 03:22
sp_Permalink sp_Print

Hi Randy,

 

if you can not help me with the xml, perhaps you can help me to create a decimal variable node directly in the node manager? Could you give me a code snippet for that? Thanks.

 

Regards

Sascha

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
5
05/25/2023 - 05:54
sp_Permalink sp_Print sp_EditHistory

It note clear what you are looking for.

You set the the DataType of a Variable to Decimal in the ModelDesign.

If the code generated does not compile it is ModelCompiler issue.

If it compiles but does not work it may be a stack issue.

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