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.
What exactly is the data type in WinCC?
String or ByteString or something else?