Skip to Content
avatar image
Former Member

OPC UA and PCo: Problem with byte array as datatyp

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 5 days ago

    Hi,

    Having exactly this same issue. Did you find a solution ? If yes would share it please ?

    Add comment
    10|10000 characters needed characters exceeded