<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to MODBUS TCP diagnostics</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/6c964e79fb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/6c964e79fb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/6c964e79fb/</id><updated>2020-02-27T17:28:29.047000Z</updated><subtitle>Recent posts to MODBUS TCP diagnostics</subtitle><entry><title>MODBUS TCP diagnostics</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/6c964e79fb/?limit=25#ed8a" rel="alternate"/><published>2020-02-27T17:28:29.047000Z</published><updated>2020-02-27T17:28:29.047000Z</updated><author><name>Luan</name><uri>https://forge.codesys.com/u/luan/</uri></author><id>https://forge.codesys.com81739bb567309c1d8edf870c6877a8f6f2363d9d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;@Edwin&lt;br/&gt;
Thanks exactly what I needed!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MODBUS TCP diagnostics</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/6c964e79fb/?limit=25#4a07" rel="alternate"/><published>2020-02-27T17:28:26.253000Z</published><updated>2020-02-27T17:28:26.253000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com0e9ec81c03f81dae0fa3739400d0094ccd48661a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
write the name of the non working slave to the watch window to get more information on the modbus error&lt;br/&gt;
(for doing this I would remove the autorestart option)&lt;br/&gt;
'SonOffDUAL_POOL'&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MODBUS TCP diagnostics</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/6c964e79fb/?limit=25#d473" rel="alternate"/><published>2020-02-27T17:28:25.230000Z</published><updated>2020-02-27T17:28:25.230000Z</updated><author><name>Luan</name><uri>https://forge.codesys.com/u/luan/</uri></author><id>https://forge.codesys.com8bb2e39b4f39e1180c076c1a8d488e9dfb2ae23e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi I am trying to get modbus tcp running with an esp8266 in a Sonoff switch. The issue I keep running into is the bus goes into stop or error mode and then reconnects briefly. I would like some more information about why the little triangle goes orange or red, like the diagnostic buffer in a Siemens CPU. If I could only see if its a network issue/protocol issue...&lt;/p&gt;
&lt;p&gt;So far I know the following:&lt;br/&gt;
similar code works on an Ethernet connection and Arduino with a constant greenIt is not the Response Timeout setting of the modbus slave(2000 ms)It is not the socket Timeout(20 ms)It is not the Modbus Slave channel trigger (750ms)The MCU that runs the slave has ample idle time&lt;/p&gt;
&lt;p&gt;Looking at the data exchange between the MCU and the Pi, the Pi is supposed to do two modbus calls to the device. One FC3 and another FC6, sometimes the Pi only does the one call before indicating the bus in fault, sometimes both 50ms apart. A few times one or the other or both of the function calls are executed sucessfully before the bus goes into stop, and is restarted via "Auto-reconnect".&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: modbus.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3495"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: modbus2.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3496"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: modbus3.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3497"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>