Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Data Type changed by client?

More
12 Apr 2017 16:53 #5108 by support
Yes, this is done by QuickOPC, for interoperability with all kinds of .NET tools. Not all of them support UInt16 and other such types. See

- opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...ata%20Types%20in%20OPC-UA.html .
- msdn.microsoft.com/library/12a7a7h3.aspx#Types

Declare your property as Int32 or wider, and you will be all set.

Best regards
The following user(s) said Thank You: Captain_Dash

Please Log in or Create an account to join the conversation.

More
12 Apr 2017 15:30 #5107 by Captain_Dash
Hello,

we run in an issue where we mapped a structure on the opc ua server to a similiar structure on the client site in c#. The data type on the server is UINT - 16 bit, 0 to 65535. At the c# side the Property which is mapped is an ushort - 16 bit 0 to 65535. The UpdateFailure event occurs and returns the following message:

Cannot set the target value to the object member 'UInt16 Statusword' of target type 'Orbotech.Spirit.HWComponents.PlcAxes.PlcMapping.AxisControl'. The inner exception contains details about the problem.


Inner Exception:

Object of type 'System.Int32' cannot be converted to type 'System.UInt16'.


We have no idea where the Int32 comes from. Is there something happening in the client?
I checked the type with a standalone client from another company and they say its Uint16.

Best Regards
André

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.051 seconds