Skip to Content
0

OPC UA and PCo: Problem with byte array as datatyp

May 03, 2017 at 07:10 AM

95

avatar image

Hello,

We are currently working on a project, where a OPC UA server provides data form machines and we want to process the data in SAP MII. Therefor we connect the MII via SAP Plant Connectivity to the OPC UA server and transfer the data by notification. This is the standard way to do i think, but we are having problems getting the right data from the OPC server if the datatyp of a tag is a byte array. The PCo detects the right datatyp and on the that side everything locks ok. But the notification on the MII does not contain the right information. Instead the notification delivers a byte array like this {83,121,115,116,101,109,46,66,121,116,101,91,93}. If you convert this array into a string you get "System.Byte[]" which is the datatyp of the tag and not the value. We allready checked if the data at the tag is simply not correct, but with other OPC software we can clearly read the right data from the OPC tag. This problem occurs only with the datatyps System.Byte[] and System.SByte[]. Datatyps like integer and others are working correct.

Can someone tell me why this happens? Has someone had the same problem and got a solution for this?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers