Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

OPC UA: How to change NodeId ?!

rmw
2016-06-04
2023-12-11
  • rmw - 2016-06-04

    Hi,

    How can I change the NodeId for an OPC UA variable?

    Or to be more precise: how can I remove the "|var|" from the NodeID, e.g.
    "NodeId:ns=4;s=|var|Raspberry Pi.Application.PLC_PRG.IrSpeed"
    to
    "NodeId:ns=4;s=Raspberry Pi.Application.PLC_PRG.IrSpeed"

    Thanks a lot for any help !?

    Regards,
    RMW

     
  • Kampfwurst - 2017-04-11

    same question

     
  • ioannis-a - 2023-11-29

    Same question

     
  • snhatton - 2023-12-11

    You can change the node id by adding the following to /etc/CODESYSControl.cfg:

    [CmpOPCUAProviderIecVarAccess]
    CustomNodeName=MyPLC123

    Then restart the runtime and the new Node name will appear with the connection. I don't know if it's possible to remove the |var| from the name. I hope this helps!

     

Log in to post a comment.