OPC UA Client (Error 7001) - CODESYS v3.5

Hello Community,

I am receiving an error with the OPC UA Client in CODESYS v3.5. There seems to be a limit for the number of connections. I can connect to 10 servers without any errors. When I connect to the 11th server, one of the connections drops and I receive this error.

I did not see this error when I use the OPC UA Client in Node-RED, so I believe that this is a CODESYS limitation.

I have the server and client for non-secured, anonymous connections.

  • Server (WBM Settings)
    PLC Runtime Port Authentication is also disabled (needed for Anonymous Connections)
    image

  • Client (CODESYS Settings)
    image

Thank you,

I found a similar post on CODESYS Forge from 2022. It appears to be tied to TLSContext, but am still not able to make more than 10 connections with security set to “None”.

https://forge.codesys.com/forge/talk/Engineering/thread/aedd014bce/

I think you have to make an adjustment in the file /etc/codesys3.d/CODESYSControl.cfg

[CmpOPCUAClient]
MaxClients=20

Never tested though.

2 Likes

Thank you, quenorha!

I added this line to the .cfg file and it now allows more connections. In this case is set the MaxClients=16.

I am currently testing the performance with the added connections.

3 Likes

Добрый день, мне кажется что данного файла по этому пути нет.
у меня 8212, какие файлы я вижу в каталоге:
~ ls -l /etc/codesys3.d/
-rw-r–r-- 1 root root 3189 Oct 23 2024 CmpWSServer.cfg
-rw-rw-r-- 1 root root 431 Jul 3 16:30 CODESYSControl_User.cfg
-rw-r----- 1 root root 2389 Oct 23 2024 IoDrvDal.cfg
-rw-r–r-- 1 root root 2220 Oct 23 2024 RtsCore.cfg
-rw-r–r-- 1 root root 43 Oct 23 2024 TscSysProcessorLoad.cfg

The desired file lies along this path.
~ ls -l /home/codesys_root
drwxrwsr-x 4 root admin 4096 Jan 23 18:45 cert
-rw-rw-r-- 1 root admin 6184 Jul 2 16:34 CODESYSControl.cfg
drwxrwsr-x 3 root admin 4096 Jan 23 18:45 OPCUAServer
drwxrwsr-x 8 root admin 4096 Jul 1 11:25 PlcLogic

The question is, in which file you need to prescribe the maximum number?