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

Communication via OPC-UA to a non-local server #1018

Open
BrunoNascimentoGomes opened this issue Feb 3, 2025 · 2 comments
Open

Communication via OPC-UA to a non-local server #1018

BrunoNascimentoGomes opened this issue Feb 3, 2025 · 2 comments

Comments

@BrunoNascimentoGomes
Copy link

Im trying to access a variable from a server running in another device using a Client_FB, but I keep receiving this errors:

Image

Im using Codesys to generate a OPC UA server at a PLC, so it creates the server this way:

Image

So I used this "opc_ua[READ;opc.tcp://192.168.2.20:4840#;/Objects/CPX-CEC-C1-V3/Application/PLC_PRG/posicao_atuador_avancoo]" at the ID from the Client FB. But it keeps returning errors.

What should I do?

@BrunoNascimentoGomes
Copy link
Author

Problem solved, just wrote the ID using only the NodeID, so it will look like this: opc_ua[READ;opc.tcp://192.168.2.20:4840#;,2:s=|var|CPX-CEC-C1-V3.Application.PLC_PRG.posicao_atuador_avancoo].

I got the NodeId using UAExpert.

Hope I can help.

@azoitl
Copy link
Contributor

azoitl commented Feb 3, 2025

As the error messages says above the intermediate nodes are missing. The OPC UA implementation of 4diac FORTE does only create the last node in the line. If you need intermediate nodes you need to create them as described in our OPC UA documentation.

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

2 participants