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.

Opc Ua ExtensionObject

More
20 Dec 2016 08:33 #4669 by hcvoort
Replied by hcvoort on topic Byte[]
Dear Sir/Madam,

I bought your quick opc .NET library, and it works very well for me. In my PLC program a have some structure types which I want to monitor/read/write. When I monitor a structure I get back a Byte[44], so 44 bytes. How can I decode this? See my code below:

_client.SubscribeDataChange(endpoint, struct_Test, 1000, (object sender, EasyUADataChangeNotificationEventArgs eventArgs) =>
{
if (eventArgs.Exception == null)
if (eventArgs.AttributeData.HasValue)
Console.WriteLine(eventArgs.AttributeData.Value.ToString());
}, "");


Best regards,

Carsten Voort

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

More
20 Dec 2016 08:27 #4668 by hcvoort
Byte[] was created by hcvoort
Dear Sir/Madam,

I am using your quick opc for .NET library (I bought a license), and it works very well for me. In the PLC code I have some structure types which I want to monitor/read/write. When I monitor for a change, and get the Value it tells me that I received a Byte[44], so 44 bytes. How can I decode this? See my code below:

_client.SubscribeDataChange(endpoint, struct_Test, 1000, (object sender, EasyUADataChangeNotificationEventArgs eventArgs) =>
{
if (eventArgs.Exception == null)
if (eventArgs.AttributeData.HasValue)
Console.WriteLine(eventArgs.AttributeData.Value.ToString());
}, "");

Beste regards,

Carsten Voort

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

Moderators: supportvaclav.zaloudek
Time to create page: 0.327 seconds