Cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with OPC UA Datatypes

Experimenter
Experimenter

Hi everyone,

 

I am new to Plant Simulation and I am aiming to establish an OPC UA connection between WinCC OA and Plant Simulation. I can successfully connect to the OPC UA server on WinCC OA and I can exchange basic data types such as char and int.

 

When I try to get a value of a datapoint of type string (using OPCUAInterface.getItemValue), I get the following error message:

"The OPC server sent a value with an incompatible data type."

 

I set up the OPC UA interface according to the help and I can't find anything that might hint to this error. Did anyone encounter something like this or knows what is causing the error?

 

Thanks in Advance.

3 REPLIES

Re: Problem with OPC UA Datatypes

Experimenter
Experimenter

I would appreciate any help.

Re: Problem with OPC UA Datatypes

Siemens Phenom Siemens Phenom
Siemens Phenom

What exactly is the data type in WinCC?

String or ByteString or something else?

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Problem with OPC UA Datatypes

Experimenter
Experimenter

The data type in WinCC OA is a String