# OPC UA connection problem

**URL:** <https://www.wago.community/t/opc-ua-connection-problem/2720>\
**Category:** Hardware and Linux\
**Created:** [May 11, 2026, 8:37am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720 "2026-05-11T08:37:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![hkn\_blt](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@hkn\_blt](https://www.wago.community/u/hkn_blt)\
**Post date:** [May 11, 2026, 8:37am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/1 "2026-05-11T08:37:15Z")

</div>

Hello, I’m establishing a SCADA connection via OPC UA using symbol configuration.  
CPU: 750-8112  
Fw: 28

The connection occasionally drops, and I have to restart OPC via WBM to regain access.

Is there a place on the CPU side where OPC can be configured?  
The SCADA unit told me I need to check the maximum number of sessions.

---

<div class="post-metadata">

**Author:** ![WagoJan](https://avatars.discourse-cdn.com/v4/letter/w/4bbf92/32.png) [@WagoJan](https://www.wago.community/u/WagoJan)\
**Post date:** [May 12, 2026, 9:53am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/2 "2026-05-12T09:53:59Z")

</div>

Hi hkn\_blt.

If you have the ability to convert your application to our newest release of Codesys (3.5 - Service pack 21 - Patch 5) and Firmware 31. Please give this a try, as there has been several improvements to OPC-UA.

Best Regards Jan

---

<div class="post-metadata">

**Author:** ![\_sbohata](https://avatars.discourse-cdn.com/v4/letter/_/278dde/32.png) [@\_sbohata](https://www.wago.community/u/_sbohata)\
**Post date:** [May 12, 2026, 11:09am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/3 "2026-05-12T11:09:37Z")

</div>

I have a very similar issue as well. My PLC is a 750-8212 with firmware 30. I’ve trued OPC UA on firmware 26, 28, 29 and 30 as well as several versions of Codesys. The problem has persisted through all versions with no improvement.

---

<div class="post-metadata">

**Author:** ![ALAIN\_DAUWE](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ALAIN\_DAUWE](https://www.wago.community/u/ALAIN_DAUWE)\
**Post date:** [May 15, 2026, 7:52am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/4 "2026-05-15T07:52:08Z")

</div>

The problem lies in the way how they pfc200 series handles his cycle times.

I’ve had a application with about 10 OPC-tags which was running fijne

Once I had more tags the PFC started to crash, the more OPC tags the faster it went into crash.

Ik have moved my Scalda tags to Modbus which works great without crashes.

---

<div class="post-metadata">

**Author:** ![hkn\_blt](https://avatars.discourse-cdn.com/v4/letter/h/9f8e36/32.png) [@hkn\_blt](https://www.wago.community/u/hkn_blt)\
**Post date:** [May 16, 2026, 5:18am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/5 "2026-05-16T05:18:29Z")

</div>

I don’t want to migrate to Modbus. There are many tags in the project. Is there a library where I can manage OPC settings? Because I can’t modify the settings.

---

<div class="post-metadata">

**Author:** ![\_sbohata](https://avatars.discourse-cdn.com/v4/letter/_/278dde/32.png) [@\_sbohata](https://www.wago.community/u/_sbohata)\
**Post date:** [June 22, 2026, 1:14pm UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/6 "2026-06-22T13:14:13Z")

</div>

Hello, I’ve had great success in terms of stability with the following configuration under /etc/codesys3.d/CODESYSControl\_User.cfg.

[CmpOPCUAServer]  
MaxSessions=32  
SessionTimeout=60000  
SchedulerResolution=20  
ItemMinSamplingRate=500  
WorkerTaskDynamic=0  
WorkerTasksMax=20  
MaxQueueSize=100  
Priority=50

[CmpOPCUAStack]  
TraceLevel=1023  
MaxBufferSize=16777216  
MaxMessageSize=2097152

Ever since I set these parameters I have experienced no crashes on the PLC. From my experience a stable network connection is also required. Make sure that your network has no packet loss and there’s enough bandwidth to support the OPC UA server communication.

---

<div class="post-metadata">

**Author:** ![HP\_GEBS](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@HP\_GEBS](https://www.wago.community/u/HP_GEBS)\
**Post date:** [June 26, 2026, 6:50am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/7 "2026-06-26T06:50:29Z")

</div>

```auto

```

Hello,

Unfortunately, I am also having problems with an OPC interface. I have several 750-8213 units running firmware version 31.

Could you please tell me where you got the configuration parameters? I am only familiar with the standard ones and cannot find the settings you are using. I would like to test them out when I get the chance.

> **[CODESYS Group](https://content.helpme-codesys.com/en/CODESYS%20Communication/_comm_opcua_server_config.html)**

---

<div class="post-metadata">

**Author:** ![antauva](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@antauva](https://www.wago.community/u/antauva)\
**Post date:** [June 26, 2026, 6:45pm UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/8 "2026-06-26T18:45:43Z")

</div>

> [@\_sbohata](#):
>
> ItemMinSamplingRate=500

Did you compare with default settings?  
For me helps only this value, because by default sampilngrate is 100 ms.

And OPC Server triggered sampling when you write value in the programm, usually it happens every cycle, yes?  
Also for some OPC tags I create program that called only once per second.  
but this is not comfortable..

---

<div class="post-metadata">

**Author:** ![\_sbohata](https://avatars.discourse-cdn.com/v4/letter/_/278dde/32.png) [@\_sbohata](https://www.wago.community/u/_sbohata)\
**Post date:** [June 26, 2026, 8:09pm UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/9 "2026-06-26T20:09:22Z")

</div>

Yes, as far as I understand, ItemMinSamplingRate defines how frequently the server replies to read/write requests to clients.

So if it is set to 500ms, like in my example, it means that the client can only get served every 500ms. Essentially, the server checks every 500ms if there is a read/write request in any of its open channels and if there is, the data gets written/read according to the request.

Even if you write a value, the change will only show up at the next browse of the server. You can check this with UAexpert for example, a written datapoint usually won’t update immediately (unless you accidentally time it just as the server is about to update) on the PLC because it has to wait for the server to update.  
If the OPC UA client is set to request data at faster intervals, the “excess” requests get dropped.  
In my case I have the client set to browse data every 1000ms so the setting is only really there as a safeguard.

---

<div class="post-metadata">

**Author:** ![\_sbohata](https://avatars.discourse-cdn.com/v4/letter/_/278dde/32.png) [@\_sbohata](https://www.wago.community/u/_sbohata)\
**Post date:** [June 26, 2026, 8:30pm UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/10 "2026-06-26T20:30:03Z")

</div>

Hello,

I have to be honest, a much more knowledgeable person told me about these settings but from what I have been told these are standard parameters of the OPC UA SDK version that Wago uses for their PLCs.

You are able to use these settings by adding the appropriate lines from my previous post to the config file at /etc/codesys3.d/CODESYSControl\_User.cfg on the PLC you are using.

---

<div class="post-metadata">

**Author:** ![antauva](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@antauva](https://www.wago.community/u/antauva)\
**Post date:** [June 30, 2026, 11:59am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/11 "2026-06-30T11:59:15Z")

</div>

Hm, before I set subscription in the OPC Client 1000 ms, and Queue Size was 10 by default.  
And what I see in the response? I saw 10 values in the one reply from PLC, because Sampling rate was 100 ms.

Then I changed Sampling Rate to 500 ms, and Queue Size to 1.

I mean that OPC Client can have different subscription with different Rate, but OPC Server provides “new” data depending in Sampling Rate to 500 ms

---

<div class="post-metadata">

**Author:** ![Vaishnavi](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@Vaishnavi](https://www.wago.community/u/Vaishnavi)\
**Post date:** [October 2, 2026, 9:13am UTC](https://www.wago.community/t/opc-ua-connection-problem/2720/13 "2026-10-02T09:13:55Z")

</div>

Hello ,

Controller- PFC100

Fw- 31

I am sending data from the PFC100 to the Edge Controller through OPC UA. However, sometimes I get errors such as **BadSessionIdInvalid** and **BadCommunicationError**. In some cases, it also shows an **Out of Memory** error, which causes the controller to crash.

I have already applied the settings recommended by \_sbohata, but the issue is still occurring. Could you please help me identify the cause and suggest a solution?
