-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading Custom Structure with B&R OPC UA client fails with Error 0x80390000 Bad_DataEncodingUnsupported #1524
Comments
Hi, I have the same issue. Did you manage to find anything? |
what encoding is it? there where new (1.04) and old (1.03) structures! async def load_type_definitions(self, nodes=None):
"""
Load custom types (custom structures/extension objects) definition from server
Generate Python classes for custom structures/extension objects defined in server
These classes will available in ua module
WARNING: protocol has changed in 1.04. use load_data_type_definitions()
"""
_logger.warning("Deprecated since spec 1.04, call load_data_type_definitions")
return await load_type_definitions(self, nodes)
async def load_data_type_definitions(self, node: Optional[Node] = None, overwrite_existing: bool = False) -> Dict[str, Type]:
"""
Load custom types (custom structures/extension objects) definition from server
Generate Python classes for custom structures/extension objects defined in server
These classes will be available in ua module
"""
return await load_data_type_definitions(self, node, overwrite_existing=overwrite_existing) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I can not read custom structures from an opcua-asyncio Server using a B&R PLC with an OPC UA client. Reading always fails with Error 0x80390000 Bad_DataEncodingUnsupported.
I already contacted the B&R Suppport. B&R claims the Error indicates that the Sever uses an old implementation of the OPCUA standard.
I also tried other OPC UA Servers where my B&R client could read custom structures.
The same problem might be already mentioned inside the Discussion of the older librabry python-opcua here: #1527
To Reproduce
I used the example server-custom-structures-and-enums.py from this repository.
For the client I used the OpcUa_Sample from B&R Automation Studio V4.9.6.42.
Version
Python-Version:
Python 3.9.7
opcua-asyncio Version (e.g. master branch, 0.9):
asyncua 1.0.5
The text was updated successfully, but these errors were encountered: