How to capture error during write in Modbus TCP/IP

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

How to capture error during write in Modbus TCP/IP

Post by amitgolhani »

Hello,

Is there any way through which error response of Modbus write ( using FC 05,06,15 & 16) can be captured at DPE level to display meaningful message to the user?
Currently on writing value to DPE it just throws error at log viewer.

Best Regards,
Amit Golhani

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: How to capture error during write in Modbus TCP/IP

Post by kilianvp »

You can use Wireshark

amitgolhani
Posts:41
Joined: Thu Apr 10, 2014 10:32 am

Re: How to capture error during write in Modbus TCP/IP

Post by amitgolhani »

Hello Kilian,

Thanks but as mentioned I wanted to display meaningful message to the user. For analysis currently information can be captured using Wireshark log as mentioned by you OR WinCC OA log after applying appropriate debug flag.

In one of our application when I am trying to write some parameters and sometimes device doesn't respond to the Modbus query and I don't get write failed notification at UI level.

Best Regards,
Amit Golhani

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: How to capture error during write in Modbus TCP/IP

Post by Gertjan van Schijndel »

The internal Modbus device datapoint has an error element, but I do not think you can be sure that it is a result of a specific (write) function.

4 posts • Page 1 of 1