Skip to content

Codesys Control for PLC next OPC-UA server

Hello out there.
I'm struggling to get OPC-UA running in my Codesys runtime on a AXC 2152.
I activated variables in the symbol config and set the flag for OPC-UA support

At first i just thought i miss data but then i realized that OPCUA from the PLCnext world was enabled and it seems i connect to the server of plcnext and not to what i configured in codesys. So i disabled it via web based management.
But somehow with UA Expert i always get BadIdentityToken when i want to connect to the plc.

How do i correctly configure WBM and Codesys to use the OPC-UA server from the codesys runtime?

Comments

  • Hi, you will need to raise this issue with Codesys support.

    My understanding is that when Codesys is installed it disables the OPC UA server in the PLCnext Runtime. As you mentioned, Codesys installs and uses its own OPC UA server.
    I activated variables in the symbol config and set the flag for OPC-UA support
    I guess this refers to settings in the Codesys development environment, and not in PLCnext Engineer, right? You probably know that it's not possible to use PLCnext Engineer and Codesys on the same PLC, but I'm just checking.
    How do i correctly configure WBM ...
    Once you're using Codesys, you shouldn't have to configure anything through PLCnext Web-Based Management. All configuration should be done using Codesys development tools. The Codesys installation effectively takes over full control of the PLC, so it's really something that Codesys support will need to help you with.

    If you have no luck with them, please let us know.
  • Apparently I had to actively disable the OPC-UA in the WBM otherwise I only discover the server from Phoenix with the UaExpert.

    The rest then was a problem with certificate and symbol rights in the device.

    Finally i got it working
  • OK, thanks for letting us know.
    The method for disabling PLCnext Runtime components changed in a recent firmware version, so it may be that the Codesys installation you are using was designed for a different PLCnext Control firmware version. I am fairly sure that their installer did disable the PLCnext OPC UA server in the past. Perhaps this issue can be logged with Codesys support.
Sign In or Register to comment.