<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Pi Modbus RTU</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/162fe08ff5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/162fe08ff5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/162fe08ff5/</id><updated>2021-06-16T09:20:28.320000Z</updated><subtitle>Recent posts to Pi Modbus RTU</subtitle><entry><title>Pi Modbus RTU</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/162fe08ff5/?limit=25#4462" rel="alternate"/><published>2021-06-16T09:20:28.320000Z</published><updated>2021-06-16T09:20:28.320000Z</updated><author><name>camo</name><uri>https://forge.codesys.com/u/camo/</uri></author><id>https://forge.codesys.comddeb5b48c8ed6a49320c47e3910b320484870f7b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Well.... Good news is I got it working with some other code however have the same problem mentioned in a few other places regarding the connection not restarting if lost. I can unplug the Arduino and re-plug but it never reconnects. Using the auto-reconnect checkbox 'ON,' causes it to never work in the first place and results in a flashing re/orange triangle next to the slave.&lt;/p&gt;
&lt;p&gt;Anyone know a way to reset the modbus master?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Pi Modbus RTU</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/162fe08ff5/?limit=25#2ac1" rel="alternate"/><published>2021-06-14T09:29:51.821000Z</published><updated>2021-06-14T09:29:51.821000Z</updated><author><name>camo</name><uri>https://forge.codesys.com/u/camo/</uri></author><id>https://forge.codesys.com8d758072d05f6973ee6c5f9057ca973810ed7a09</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all. Pretty new to all this and trying to get a Pi running Codesys talking to an Arduino Nano using Modbus RTU. Have used the following post for reference but am failing.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://forge.codesys.com/forge/talk/Runtime/thread/634eb0e582/?limit=25#0f41"&gt;https://forge.codesys.com/forge/talk/Runtime/thread/634eb0e582/?limit=25#0f41&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The Arduino code/libraries seem to have changed but have used the new one and the example advanced_slave code from it here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino" rel="nofollow"&gt;https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The pi is online but Modbus master and slave have red triangles next to them in device tree and slave states 'not running' . Tried different USB ports.&lt;/p&gt;
&lt;p&gt;If anyone has any pointers or better examples that'd be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>