Difference between using OPCUA symbol configuration and OPCUA Server object

jeroenaero
2025-10-30
3 hours ago
  • jeroenaero - 2025-10-30

    Hi,

    What is exactly the difference between using symbol configuration as OPCUA server or using the Codesys object OPCUA server?
    What are the advantages and disadvantages of using symbol configuration and OPCUA server object.

    Please let me know

     
    πŸ‘
    1
  • YIN - 3 hours ago

    Good question, I ran into the same confusion when I first set this up, because both routes end up exposing variables and it is easy to think they are the same thing.

    The way I think about it now is that the symbol configuration is the quick, project-level way in. You pick the variables you already have, give them access, and the runtime publishes them. It is handy when the tag list is small and mostly fixed, and you just want a client to read a few values and write back a setpoint now and then. The downside I have felt in practice is that it gets messy once the list grows, since you are managing access variable by variable and the structure on the client side ends up mirroring whatever your program happens to look like.

    The OPC UA Server object, on the other hand, gives you a proper server node in the project to configure, so you can shape the address space a bit more deliberately and keep the server settings in one place. That has helped me on projects where several clients connect or where the tag set is meant to stay stable even while the program underneath changes. It is a little more setup up front, and for a very small job it can feel like overkill, which is honestly why I still use the symbol route for quick tests.

    If I were starting from scratch I would ask how many tags you expect and who else will connect. A handful of tags for one client, symbol configuration is usually enough. A bigger, longer-lived interface, I would lean towards the server object and take the time to name and organise the nodes properly.

    One practical note from my own habit: before I let any client write back to the controller, I test the whole read and write flow in simulation first and keep safety-related logic where a remote write cannot touch it.

     

Log in to post a comment.