<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Configure my PLC (Raspberry Pi) as a TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9d7a03046e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9d7a03046e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/9d7a03046e/</id><updated>2020-02-27T17:33:47.937000Z</updated><subtitle>Recent posts to Configure my PLC (Raspberry Pi) as a TCP Modbus Slave</subtitle><entry><title>Configure my PLC (Raspberry Pi) as a TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9d7a03046e/?limit=25#8417" rel="alternate"/><published>2020-02-27T17:33:47.937000Z</published><updated>2020-02-27T17:33:47.937000Z</updated><author><name>mikeardy</name><uri>https://forge.codesys.com/u/mikeardy/</uri></author><id>https://forge.codesys.comf0a1fb93a867b0537b94fade06b2f91832d6c780</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I need to configure my Raspberry Pi, that handle valves and controls, as a TCP Modbus Slave.&lt;br/&gt;
The problem is that the application is a porting of another application and for compatibility I need to leave the same Modbus registers.&lt;br/&gt;
I need to configure an array of 600 elements of DINT contiguous, another area configured like array of 600 elements of REAL, a 600 bit array area and some other bits distributed in different other areas.&lt;/p&gt;
&lt;p&gt;I have configured the system as the following image illustrates...&lt;/p&gt;
&lt;p&gt;I have the following questions:&lt;br/&gt;
&lt;span&gt;[*]&lt;/span&gt; the controller can act at the same time as a master and as a client in Modbus TCP?&lt;br/&gt;
&lt;span&gt;[*]&lt;/span&gt; how can I set the right Modbus area to be available exactly as previous ones? For me isn't so clear the area configuration in the left side of the configuration Modbus windows. I checked the "Modbus TCP Slave Device I/O Mapping" but is not clear for me how to proceed to configure addresses I need.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CODESYS_MODBUS_SLAVE.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3641"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>