Problem with modbus TCP server and client in Axc 1152 controller

I am using modbus_tcp_10 library in Axc 1152 (FW version : 2021.6.0). I am facing the problem with modbus TCP server and client. Used modbus client for 5 times to read from 5 devices. If I connect any device while plc is running it is unable to connect to the device. Giving continuous error. I am restarting the client block based on error. If i stop and wa start the contoller then it will start reading the data from device.
With the Modbus server, I am using more than 10servers with all different port numbers (not used 502 port number). The server will responce to client. For all of a sudden it is stoping giving the response. If i restart the server function block then it will show server socket is open (in diag code shows 16#8100). But, unable to connect to the server. After the controller restart only able connect with the server. I did same kind of program in ILC 171 eth 2tx, it is working fine without any trouble, I never faced this kind of problem in ILC series controllers.

Please help me to solve the problem.

https://drive.google.com/drive/folders/1-aEVHf6WHB1syvYi9Ld1e2PUCe40tjvr?usp=sharing

for testing i just unflugged the PLC ethernet cable and connected back. but, modbus tcp client unable connect again to server .
please check the images attached in the link.

Hi,

I've checked the images and video carefully and made some tests with FW 2021.6,  several server instances, modbus poll (v7.x) and connect/disconnect several times. So far I've encountered no error.
[url="https://phoenixcontact-my.sharepoint.com/:i:/p/pywf02_europe/EVHZ9UVN1OBImkYB_8Nb0o4BIy7LW8qLhLVMddKMfv0-BQ?email=adapamjayachandra%40gmail.com&e;=NTpnb9"]https://phoenixcontact-my.sharepoint.com/:i:/p/pywf02_europe/EVHZ9UVN1OBImkYB_8Nb0o4BIy7LW8qLhLVMddKMfv0-BQ?email=adapamjayachandra%40gmail.com&e;=NTpnb9[/url]

It seems in your case that the connect request a) does not reach the PLC or b) is not seen from the functionblock.
Interesting also, that a warm restart seems to resolve the issue.

Can you create a tcpdump (kind of wireshark) from this situation?
https://pxc1.esc-eu-central-1.empolisservices.com/gatekeeper/guesttoken/45?app=/service-express/portal/cb?redirect=https://pxc1.esc-eu-central-1.empolisservices.com/service-express/portal/object/esc/en-so-46e09af5-2051-4aa3-9aa9-0aa6df00a84f?context=%7B%22filter%22%3A%7B%7D%2C%22text%22%3A%22tcpdump+PLCnext%22%2C%22useExpertQuery%22%3A0%7D

Frank

Hi,

Mr. Chethan pranjale (phoenix contact india team) has suggested to use the Modbus_tcp_9 library. I am using that library in the program. Now, i am not facing any issues.

Thanks for the responce.