Hello,
We use the CODESYS OPC UA Data Source (Data Source Manager) on a PFC200 to connect to three external OPC UA servers. Each connection drops at random intervals, roughly every 1 to 3 hours per connection, and reconnects after about 24 seconds. A network capture shows that the server responds normally, and that the PLC closes the connection itself.
System
- Controller: WAGO 750-8212 PFC200 G2 2ETH RS XTR
- Firmware: 04.07.03(29), codesys3 6.4.2.3
- DatasourceOpcUa 4.6.1.0, DatasourcesMgr 4.6.0.0
- Three OPC UA Data Sources (Framo_1..3), about 1300 variables in total. Security mode None. Subscription with a 500 ms publishing interval. The application writes a REAL setpoint about 2 to 3 times per second, and a heartbeat about every 3.6 s.
- The servers are open62541-compatible Python servers (asyncua 1.1.6) on the same subnet.
Symptom (runtime.log)
CmpOPCUAStack OpcUa_Channel_ResponseAvailable: Request failed! (0x80AD0000)
DatasourcesMgr Framo_1: Sending request failed with errorcode: Failed (20)
DatasourcesMgr Framo_1: Error Failed (20) in state Ready
(24 s later)
DatasourcesMgr Framo_1: Connection established
This happened 7 times in one night, spread over all three data sources. The system log (/var/log/messages) shows no network or kernel events at those times.
Network capture of one drop (tcpdump on the server side)
| Time (s) | Direction | Message |
|---|---|---|
| 0.000 | PLC → server | PublishRequest (normal, a new one after every PublishResponse) |
| 0.289 | PLC → server | WriteRequest (1 node, Double) |
| 0.291 | server → PLC | WriteResponse, ServiceResult Good, result Good |
| 0.399 | PLC → server | CloseSecureChannel (CLO), initiated by the PLC |
| 0.400 | TCP FIN from both sides |
In the 45 seconds before the drop, all PublishResponses arrived exactly every 500 ms. All write responses arrived within 0.5 to 2 ms. There were no errors or gaps. Secure channel renewals (OPN) every 45 minutes worked normally on all three connections, and the drop did not coincide with a renewal.
The OPC UA stack therefore reports Bad_Disconnect (0x80AD0000) for a request even though the server neither disconnected nor returned an error. The data source then closes the channel on its own.
In an earlier session (after a download) we also saw CmpOPCUAClient *EXCEPTION* in tasks OPCUAClient_2b2 and OPCUAClient_2ad.
Questions
- Is this a known issue in the OPC UA client stack or the Data Source for this firmware/runtime version? Is there a firmware or DatasourceOpcUa version that fixes it?
- In which situations does
OpcUa_Channel_ResponseAvailablereport 0x80AD0000 when the server has not disconnected? For example: an internal request timeout, a request queue limit, or concurrent requests (a pending Publish together with a Write). - Can the reconnect delay of about 24 s be shortened in the Data Source configuration?
- Are there settings that make the Data Source keep the session after a single failed request, instead of closing the secure channel?
The PLC clock was not synchronized during the test: the date was 2026-03-14, and the clock was about 36 s fast. We will set up NTP. Could the clock difference matter for the client stack, given that the server time was 2026-11-06?
I can provide the complete runtime logs and the pcap file.
Best regards,