<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Adding Modbus TCP Slave causes compile errors</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4a2efa11e3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4a2efa11e3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/4a2efa11e3/</id><updated>2020-02-27T16:05:00.168000Z</updated><subtitle>Recent posts to Adding Modbus TCP Slave causes compile errors</subtitle><entry><title>Adding Modbus TCP Slave causes compile errors</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4a2efa11e3/?limit=25#8f6c" rel="alternate"/><published>2020-02-27T16:05:00.168000Z</published><updated>2020-02-27T16:05:00.168000Z</updated><author><name>Matt-Engels</name><uri>https://forge.codesys.com/u/matt-engels/</uri></author><id>https://forge.codesys.coma1492d687b2424a67e45ea618e5e83b57a72e7bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you Edwin, this fixed the problem.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Adding Modbus TCP Slave causes compile errors</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4a2efa11e3/?limit=25#af3d" rel="alternate"/><published>2020-02-27T16:04:59.379000Z</published><updated>2020-02-27T16:04:59.379000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com0daeddc7f45a1a368f391d23863c2c8463487122</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Matt,&lt;br/&gt;
You are using 3.5SP6 CODESYS Development System. Your project contain at the moment an older Pi device.(3.5.5.20)&lt;br/&gt;
So you need to do an update in the project to the pi device&lt;br/&gt;
by rightlick to the device tree -&amp;gt; then select update device.&lt;br/&gt;
After that right click to Ethernet Adapter and update modebus slave.&lt;br/&gt;
Check if Compiler Version and visuprofile is in current Version (3.5.6.x)&lt;/p&gt;
&lt;p&gt;Last step is to update the plc runtime on Pi side by the Debian package from the store download.&lt;br/&gt;
How to do that on an existing Pi SD Card Image?&lt;br/&gt;
Copy codesyscontrol_arm_raspberry_V3.5.6.0.deb to the Pi and execute &lt;br/&gt;
sudo dpkg -i codesyscontrol_arm_raspberry_V3.5.6.0.deb&lt;/p&gt;
&lt;p&gt;This should solve the problems.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ProjectSettings.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1017"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: UpdateModbusSlave.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1016"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: UpdateEthernetAdapter.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1015"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: UpdateDevice.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1014"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Adding Modbus TCP Slave causes compile errors</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/4a2efa11e3/?limit=25#0f01" rel="alternate"/><published>2020-02-27T16:04:57.174000Z</published><updated>2020-02-27T16:04:57.174000Z</updated><author><name>Matt-Engels</name><uri>https://forge.codesys.com/u/matt-engels/</uri></author><id>https://forge.codesys.comfa37e310f1bee317ee62aa05704c085e4e85831f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am running into a bit of frustration with a project involving serial communication between Raspberry Pi B+ and an Arduino.  I would like to add the capability to have a separate PC act as Modbus TCP Master to poll a couple of values from the Pi, configured as Modbus TCP Slave.&lt;br/&gt;
I added the Ethernet Adapter, configured it for the Pi's eth0 interface, and then add the Modbus TCP Slave under the Ethernet adapter.  However, I get four compiler errors when I try to build the code.  (See attached picture)&lt;/p&gt;
&lt;p&gt;Now, I can start a new project, add the Ethernet Adapter and Modbus TCP Slave in the same way and it will compile without any errors and run properly - a Modbus server will connect to it.&lt;/p&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;-Matt&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CoDeSYS Modbus Error.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1013"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>