<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry Modbus TCP master issue</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/23ecb0f7d7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/23ecb0f7d7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/23ecb0f7d7/</id><updated>2020-02-27T17:31:55.980000Z</updated><subtitle>Recent posts to Raspberry Modbus TCP master issue</subtitle><entry><title>Raspberry Modbus TCP master issue</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/23ecb0f7d7/?limit=25#46f6" rel="alternate"/><published>2020-02-27T17:31:55.980000Z</published><updated>2020-02-27T17:31:55.980000Z</updated><author><name>FlorentM</name><uri>https://forge.codesys.com/u/florentm/</uri></author><id>https://forge.codesys.comec0980ca53551725dabfdc2726482b71d41b348d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I try to connect a Raspberry PI3 as Modbus TCP master with an arduino slave (ESP8266).&lt;/p&gt;
&lt;p&gt;But I'm facing some trouble.&lt;/p&gt;
&lt;p&gt;Slave side seems to be correctly configured because it is working fine with Modbus Doctor (Windows Software simulating Modbus Master).&lt;/p&gt;
&lt;p&gt;Can someone tell me what's going wrong with my setup?&lt;/p&gt;
&lt;p&gt;You will find WireShark captures, codesys project  and printscreens.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;EDIT : &lt;/p&gt;
&lt;p&gt;OK I find that I need to read the variable in a POU to make the modbus values refreshing.&lt;/p&gt;
&lt;p&gt;But when I look at the Wireshark capture, the transaction ID is increasing each time the master requests  a register.&lt;/p&gt;
&lt;p&gt;Why is this happen with codesys and not happen with Modbus Doctor?&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3484" rel="nofollow"&gt;CodesysRaspberryModbusTCPMaster1.zip &lt;span&gt;&lt;span&gt;[390.19 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>