<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus TCP Master-&gt;Modbus TCP Slave Variable always 0 issue</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8ffebc46e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8ffebc46e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/e8ffebc46e/</id><updated>2020-02-27T15:36:48.563000Z</updated><subtitle>Recent posts to Modbus TCP Master-&gt;Modbus TCP Slave Variable always 0 issue</subtitle><entry><title>Modbus TCP Master-&gt;Modbus TCP Slave Variable always 0 issue</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8ffebc46e/?limit=25#cb14" rel="alternate"/><published>2020-02-27T15:36:48.563000Z</published><updated>2020-02-27T15:36:48.563000Z</updated><author><name>danielchang</name><uri>https://forge.codesys.com/u/danielchang/</uri></author><id>https://forge.codesys.com98bae51ff988ac62a3668737709a96764d1b5d00</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;Thanks. It's work. But I have more questions. &lt;br/&gt;
1. I can't get two variable value in the same ModbusTCPSlave Channel. see the attached file ModbusTCPMaster_Value.jpg.&lt;br/&gt;
2. Where can I see the memory mapping value like %IW0, %IX0.0 ... &lt;br/&gt;
3. I only could login to Raspberry Pi and start this project once. If I logout and then login again to start project always got "ModbusTCPSlave : Bus Failure" Error.&lt;/p&gt;
&lt;p&gt;CODESYS 3.5 SP12 Patch 2 + CODESYS Control for Raspberry Pi SL 3.5.12.10 &lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Daniel&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ModbusTCPMaster_BusError.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3666"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ModbusTCPMaster_Value.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3665"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP Master-&gt;Modbus TCP Slave Variable always 0 issue</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8ffebc46e/?limit=25#db63" rel="alternate"/><published>2020-02-27T15:36:47.849000Z</published><updated>2020-02-27T15:36:47.849000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com8cecd48e3fe3aeada7dbaa080b45f2ac418014a7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
CODESYS does only update variables which are used in the pou's.&lt;br/&gt;
This is a fieldbus independent feature.&lt;/p&gt;
&lt;p&gt;So either use your mapped varibale or change to 'enabled2 - always update'&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Enable2.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3661"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus TCP Master-&gt;Modbus TCP Slave Variable always 0 issue</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e8ffebc46e/?limit=25#c8fc" rel="alternate"/><published>2020-02-27T15:36:45.867000Z</published><updated>2020-02-27T15:36:45.867000Z</updated><author><name>danielchang</name><uri>https://forge.codesys.com/u/danielchang/</uri></author><id>https://forge.codesys.com515b3be76fe449712b8f2e432f211e16d53bfac0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi I am trying to polling MOXA E1242 device by Modbus. The attached file is my project. I am sure the modbus tcp master fieldbus work fine. &lt;br/&gt;
I could see the Modbus polling Ethernet sockets in Wireshark tool that on Raspberry Pi. I have add variables and mapping to Modbus command.&lt;br/&gt;
But I can not see the variable value changed. It's always zero. &lt;br/&gt;
How should I setting to make the modbus polling data mapping to variables? Thanks.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: IDE.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3660"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3659" rel="nofollow"&gt;Webvisu.zip &lt;span&gt;&lt;span&gt;[233.39 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>