Skip to content
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

My simple python server error #1529

Open
KodKarls opened this issue Oct 18, 2023 · 0 comments
Open

My simple python server error #1529

KodKarls opened this issue Oct 18, 2023 · 0 comments

Comments

@KodKarls
Copy link

KodKarls commented Oct 18, 2023

Hello guys :)

I work on Linux and test opcua module and UaExpert app. I write simple code in python:

from opcua import Server, ua

if __name__ == '__main__':
    server = Server()
    url = 'opc.tcp://localhost:62541'
    server.set_endpoint(url)
    server.set_server_name('Tango Simulation Server')
    server.set_security_policy([ua.SecurityPolicyType.NoSecurity])

    namespace = 'TANGO_SIMULATION_SERVER'
    idx = server.register_namespace(namespace)

    node = server.get_objects_node()

    upack_process_folder = node.add_folder(idx, 'GVL.UnpackProcess')
    device_node = upack_process_folder.add_object(idx, 'MccStd_001')
    device_node.add_variable(idx, 'bForwardButton', False)
    device_node.add_variable(idx, 'bAutoButton', False)
    device_node.add_variable(idx, 'bTermFuse', False)
    device_node.add_variable(idx, 'bSupply', False)
    device_node.add_variable(idx, 'udHours', 0)
    device_node.add_variable(idx, 'uMinutes', 0)
    device_node.add_variable(idx, 'uSeconds', 0)
    device_node.add_variable(idx, 'sStatus', '')
    device_node.add_variable(idx, 'sState', '')

    server.start()
    print(f'Server started at {url}')

When I run this script everything is allright and get output:

Server started at opc.tcp://localhost:62541
Listening on localhost:62541

But when I connect to the server via UaExpert my console output throw this:

Tried to read attribute '14' in TwoByteNodeId(i=35), but the attribute is missing
Tried to read attribute '15' in TwoByteNodeId(i=35), but the attribute is missing
Tried to read attribute '16' in TwoByteNodeId(i=35), but the attribute is missing
Tried to read attribute '17' in TwoByteNodeId(i=35), but the attribute is missing
Tried to read attribute '27' in TwoByteNodeId(i=35), but the attribute is missing
Tried to read attribute '14' in TwoByteNodeId(i=33), but the attribute is missing
Tried to read attribute '15' in TwoByteNodeId(i=33), but the attribute is missing
Tried to read attribute '16' in TwoByteNodeId(i=33), but the attribute is missing
Tried to read attribute '17' in TwoByteNodeId(i=33), but the attribute is missing
Tried to read attribute '27' in TwoByteNodeId(i=33), but the attribute is missing
Tried to read attribute '14' in TwoByteNodeId(i=31), but the attribute is missing
Tried to read attribute '15' in TwoByteNodeId(i=31), but the attribute is missing
Tried to read attribute '16' in TwoByteNodeId(i=31), but the attribute is missing
Tried to read attribute '17' in TwoByteNodeId(i=31), but the attribute is missing
Tried to read attribute '27' in TwoByteNodeId(i=31), but the attribute is missing
Tried to read attribute '14' in FourByteNodeId(i=2004), but the attribute is missing
Tried to read attribute '15' in FourByteNodeId(i=2004), but the attribute is missing
Tried to read attribute '16' in FourByteNodeId(i=2004), but the attribute is missing
Tried to read attribute '17' in FourByteNodeId(i=2004), but the attribute is missing
Tried to read attribute '27' in FourByteNodeId(i=2004), but the attribute is missing
Tried to read attribute '10' in FourByteNodeId(i=2004), but the attribute is missing
Tried to read attribute '14' in TwoByteNodeId(i=58), but the attribute is missing
Tried to read attribute '15' in TwoByteNodeId(i=58), but the attribute is missing
Tried to read attribute '16' in TwoByteNodeId(i=58), but the attribute is missing
Tried to read attribute '17' in TwoByteNodeId(i=58), but the attribute is missing
Tried to read attribute '27' in TwoByteNodeId(i=58), but the attribute is missing
Tried to read attribute '10' in TwoByteNodeId(i=58), but the attribute is missing

I do not understand those errors and why...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant