<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/</id><updated>2020-02-27T15:53:32.322000Z</updated><subtitle>Recent posts to Modbus RTU 485</subtitle><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#9ea9" rel="alternate"/><published>2020-02-27T15:53:32.322000Z</published><updated>2020-02-27T15:53:32.322000Z</updated><author><name>BlackDog17</name><uri>https://forge.codesys.com/u/blackdog17/</uri></author><id>https://forge.codesys.com42c245ae132c3ae94dc53653e57e918934463293</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;adc1994 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Everything works like a charm now.&lt;br/&gt;
I set parity to  data bits, ,  stop bit.&lt;br/&gt;
It works both on a prolific usb-ttl + max485 converter/transceiver, and on the raspicomm board.&lt;br/&gt;
I am polling data @20ms interval.&lt;br/&gt;
Thanks for your help.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi, I have a similar problem&lt;br/&gt;
What arduino did you use? I use Nano&lt;br/&gt;
Could you post your code for arduino please?&lt;/p&gt;
&lt;p&gt;Big thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#fbd3" rel="alternate"/><published>2020-02-27T15:53:30.220000Z</published><updated>2020-02-27T15:53:30.220000Z</updated><author><name>adc1994</name><uri>https://forge.codesys.com/u/adc1994/</uri></author><id>https://forge.codesys.comd8bbeb62e2b50b978c6e6b910ab3ee429779839f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Everything works like a charm now.&lt;br/&gt;
I set parity to &lt;strong&gt;8&lt;/strong&gt; data bits, &lt;strong&gt;EVEN&lt;/strong&gt;, &lt;strong&gt;1&lt;/strong&gt; stop bit.&lt;/p&gt;
&lt;p&gt;It works both on a prolific usb-ttl + max485 converter/transceiver, and on the raspicomm board.&lt;br/&gt;
I am polling data @20ms interval.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#24b6" rel="alternate"/><published>2020-02-27T15:53:29.472000Z</published><updated>2020-02-27T15:53:29.472000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com29129ac368a70ee6aeb71a4eb8ac5b9dfa5454c8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
is it possible to trace somehow the serial traffic?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#4931" rel="alternate"/><published>2020-02-27T15:53:27.353000Z</published><updated>2020-02-27T15:53:27.353000Z</updated><author><name>adc1994</name><uri>https://forge.codesys.com/u/adc1994/</uri></author><id>https://forge.codesys.com7cc72ab123f7b5c2d5b601cdcfc719de964bd2dd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes. The Arduino's slave id is 2 , and the slave id set in codesys is 2.&lt;br/&gt;
And the rx and tx leds on the slave flash correctly.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#932f" rel="alternate"/><published>2020-02-27T15:53:26.604000Z</published><updated>2020-02-27T15:53:26.604000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com6867bf465bae7b2038a8222069aebf8735b3504b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;look like CODESYS get data from the wrong slave (at lease think it gets the wrong data)&lt;br/&gt;
does your address fit to your slave?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: SlaveAdress.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=868"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#a69f" rel="alternate"/><published>2020-02-27T15:53:25.867000Z</published><updated>2020-02-27T15:53:25.867000Z</updated><author><name>adc1994</name><uri>https://forge.codesys.com/u/adc1994/</uri></author><id>https://forge.codesys.coma3756c8a02ebf52b22c4f275e4135553dd4b0d63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Done.&lt;br/&gt;
It seems like a wrong response comes from the slave...&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Schermata 2014" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=867"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#dc8c" rel="alternate"/><published>2020-02-27T15:53:23.677000Z</published><updated>2020-02-27T15:53:23.677000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com31b40f5fbd7154248986953c27d0682620c0273b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;type:&lt;/p&gt;
&lt;p&gt;Modbus_Slave_COM_Port&lt;/p&gt;
&lt;p&gt;to the watch window...&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#9d32" rel="alternate"/><published>2020-02-27T15:53:22.865000Z</published><updated>2020-02-27T15:53:22.865000Z</updated><author><name>adc1994</name><uri>https://forge.codesys.com/u/adc1994/</uri></author><id>https://forge.codesys.com8e5b22064f350b568c192e81ae7e44e45b291576</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;These are my screens.&lt;br/&gt;
Thanks in advance &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Schermata 2014" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=866"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Schermata 2014" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=865"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#17ce" rel="alternate"/><published>2020-02-27T15:53:20.594000Z</published><updated>2020-02-27T15:53:20.594000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com03a4f08cacdfb4aa6e3eee31dedab30e4996df39</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you mean you have configured / mapped your serial port in that way that codesys could use it?&lt;br/&gt;
The only point seems that the master does not recognize the slave reposonse in the watch window (see my screenshot)?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ModbusResponse.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=864"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU 485</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/f4cf00b5b1/?limit=25#db45" rel="alternate"/><published>2020-02-27T15:53:19.798000Z</published><updated>2020-02-27T15:53:19.798000Z</updated><author><name>adc1994</name><uri>https://forge.codesys.com/u/adc1994/</uri></author><id>https://forge.codesys.comba3fda50d48d51cedb0f9f7f365385d876ab959f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everybody,&lt;br/&gt;
i am working on a MODBUS RTU over rs485 line system; the master device is my Raspberry PI, and the slave is an Arduino UNO with the simple-modbus-slave firmware.&lt;br/&gt;
I am going crazy trying to get this to work, i have tried everything: the MODBUS slave device on codesys shows the "Not running" error, while the arduino "rx" and "tx" pins are enabled and blinking, showing the master's request, followed by the slave's response.&lt;br/&gt;
Any ideas?&lt;br/&gt;
Thanks in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>