<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/</id><updated>2026-04-20T11:50:00.972000Z</updated><subtitle>Recent posts to How change Unity-ID in TCP Modbus Slave</subtitle><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#05dd" rel="alternate"/><published>2026-04-20T11:50:00.972000Z</published><updated>2026-04-20T11:50:00.972000Z</updated><author><name>husarz17</name><uri>https://forge.codesys.com/u/husarz17/</uri></author><id>https://forge.codesys.comc28b5e18fcb8d85d41d4c2ce31d7d3223e4fd9f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good to know there's a solution to this problem. I hope you'll be able to share it with me. I can't wait to hear about it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#4423" rel="alternate"/><published>2026-04-14T02:55:54.700000Z</published><updated>2026-04-14T02:55:54.700000Z</updated><author><name>nulltrace</name><uri>https://forge.codesys.com/u/nulltrace/</uri></author><id>https://forge.codesys.com6402843384111ab649af8cce04d0d271b46a8593</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey, I also waiting for feedback from Mr. Schwellinger &lt;br/&gt;
&lt;a class="user-mention" href="/u/eschwellinger/profile/"&gt;@eschwellinger&lt;/a&gt;, please send me an answer, i would appreciate it. &lt;/p&gt;
&lt;p&gt;The clue is, i know the solution, but have to check if it's allowed to share.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#b047" rel="alternate"/><published>2026-04-13T20:32:26.587000Z</published><updated>2026-04-13T20:32:26.587000Z</updated><author><name>husarz17</name><uri>https://forge.codesys.com/u/husarz17/</uri></author><id>https://forge.codesys.com5fa4b8eae1bdd9727a87d6db66d2ea355a3e60b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi nulltrace,&lt;br/&gt;
Thanks for the info. I'm waiting to hear back from you.&lt;br/&gt;
Take care!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#65a6" rel="alternate"/><published>2026-04-10T02:38:54.424000Z</published><updated>2026-04-10T02:38:54.424000Z</updated><author><name>nulltrace</name><uri>https://forge.codesys.com/u/nulltrace/</uri></author><id>https://forge.codesys.comdd937fcafd3c48a2b13233a69a449f3de2b4faec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey Husarz.&lt;/p&gt;
&lt;p&gt;i don't forget you, the Thing is, to give you my answer, i have to wait for Answer from Codesys/E. Schwellinger. i suwpect Mr. Schwellinger is on in Vacations that week.&lt;/p&gt;
&lt;p&gt;so please, be patient at moment&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#5b0c" rel="alternate"/><published>2026-04-03T03:59:27.805000Z</published><updated>2026-04-03T03:59:27.805000Z</updated><author><name>nulltrace</name><uri>https://forge.codesys.com/u/nulltrace/</uri></author><id>https://forge.codesys.comf11937755817d221e064d10795723e3c28f714e8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hey Husarz, &lt;br/&gt;
thanks for your Message, now i understand ypur Problem and are able to reproduce that. Pls. give me a Short Time to Check some stuff on this, i'll come back to this Topic with news ASAP.&lt;/p&gt;
&lt;p&gt;Greetings &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#9bf8" rel="alternate"/><published>2026-04-01T09:09:09.903000Z</published><updated>2026-04-01T09:09:09.903000Z</updated><author><name>husarz17</name><uri>https://forge.codesys.com/u/husarz17/</uri></author><id>https://forge.codesys.coma4f60715b7f0a6bf7db430a18cde87b8150169ef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My codesys is 3.5.21.30. I am using function ModbusServer from library ModbusTCP_Slave. The reason is that I need share 9000 Holding registers. By standard configuration it is only 4096. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;fbMbTcpDevice&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ModbusTCP_Slave&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;ModbusServer&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;fbMbTcpDevice&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;wPort&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;502&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;pInputData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;awInputReg&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;pOutputData&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;awHoldingReg&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;uiInputDataSize&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;uiOutputDataSize&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;9000&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;xEnable&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;TRUE&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;tTimeout&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10000&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;InterfaceName&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"eth0"&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;xBusy&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xBusy&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;xError&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;xError&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;byClientConnections&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;byConnections&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Ethernet port is cofigured:&lt;br/&gt;
Network interface: eth0&lt;br/&gt;
IP address: 10.10.22.55&lt;br/&gt;
Subnet maskL 255.255.255.0&lt;br/&gt;
Default gateway: 0.0.0.0&lt;/p&gt;
&lt;p&gt;And it only works when I am reading registers with ID 255 by Modbus Poll. Any other IDs don't work. The actual TCP client device try to read registers with ID 1 and I can't change it...&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#f942" rel="alternate"/><published>2026-04-01T04:08:25.223000Z</published><updated>2026-04-01T04:08:25.223000Z</updated><author><name>nulltrace</name><uri>https://forge.codesys.com/u/nulltrace/</uri></author><id>https://forge.codesys.com0ca8858493c581ca2c8a9138728e38bcceb056ac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please explain how you configured that. Normaly, the Server should answer to all UID as long as gateway isn't activated. With activated gateway all UID will be forwarded to Serial-Interface, in taht case 255 has to be used for Gateway-Diagnostics. &lt;/p&gt;
&lt;p&gt;So that means, there is somethink wrong on your configuration.&lt;/p&gt;
&lt;p&gt;Which CDS-Version, Which Runtime-Version and so on are used.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#8a78" rel="alternate"/><published>2026-03-31T14:50:13.177000Z</published><updated>2026-03-31T14:50:13.177000Z</updated><author><name>husarz17</name><uri>https://forge.codesys.com/u/husarz17/</uri></author><id>https://forge.codesys.comcea104d3e57a52cf989fc10f4f37b3d5cc74fad1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I need the same issue. In my application TCP server on raspberry (codesys) should have UnitID 1. But it only works when I am requesting with UnitID 255. And my application can't work with this parameters...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#c493" rel="alternate"/><published>2022-07-27T08:19:21.527000Z</published><updated>2022-07-27T08:19:21.527000Z</updated><author><name>scoob</name><uri>https://forge.codesys.com/u/scoob/</uri></author><id>https://forge.codesys.com7cb5938340817bc095739069465d45373cd16230</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Did you ever find a solution to this? I am looking to perform the same thing.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How change Unity-ID in TCP Modbus Slave</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/66c89087ec/?limit=25#a9cb" rel="alternate"/><published>2020-02-27T15:31:03.257000Z</published><updated>2020-02-27T15:31:03.257000Z</updated><author><name>john-hedges-ifm</name><uri>https://forge.codesys.com/u/john-hedges-ifm/</uri></author><id>https://forge.codesys.com913223bb326cfc94866e8f189c32da732391f3b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I would also like to know how this can be achieved.&lt;/p&gt;
&lt;p&gt;V3.5.11.0&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>