Ashwin Sekar
Ashwin Sekar

Reputation: 11

Modbus tcp communication issues while using Twincat

I am using C# application to read and write data from a beckhoff ipc running twincat3. I am writing data to holding registers based on some events acyclically. Sometimes the data is write is not written to the beckhoff plc. I used wireshark to see if the C# application is sending a command to the server. i See that the command is executed but the data is not written to the plc. Also i see a lot of errors in the trace.

Like the image attached

wireshark image

Update : 16-12-2024 I used a 3rd party modbus tcp client qModbusmaster to continuously read data and compared it with the wireshark packet of my application, from 1, I see that there is an ACK packet from client after every response, but whereas in the application code at some instances as highlighted the ACK is not received. Could this be a reason for the data/packet loss? image of missing packets

Below is the image taken when the registers are polled with qModmaster. There is no loss of packets image of trace with another client

Upvotes: 0

Views: 100

Answers (0)

Related Questions