<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/</id><updated>2021-07-15T17:25:17.553000Z</updated><subtitle>Recent posts to Modbus RTU - PLC as a slave</subtitle><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#3f40" rel="alternate"/><published>2021-07-15T17:25:17.553000Z</published><updated>2021-07-15T17:25:17.553000Z</updated><author><name>greg-ch</name><uri>https://forge.codesys.com/u/greg-ch/</uri></author><id>https://forge.codesys.com4daa2d55e853a01fde87292ec6eb2d0af0eaa0e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't have this option... either on modbus serial or TCP. I'm using codesys 3.5.11.0&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#20a0/a50f" rel="alternate"/><published>2021-07-15T17:22:20.571000Z</published><updated>2021-07-15T17:22:20.571000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com5c539a2783e7595a6d8744a8ccc374fda3d7c47c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I heartily welcome you to the club of people who have learned that by default, IO not used in the code is never updated.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#20a0/f6a3" rel="alternate"/><published>2021-07-15T17:19:09.531000Z</published><updated>2021-07-15T17:19:09.531000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.come7396a9d24e3da573d3080c8c724efa522e2e651</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There is a checkbox for writeable holding registers, see attached screenshot.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#20a0" rel="alternate"/><published>2021-07-14T14:35:36.427000Z</published><updated>2021-07-14T14:35:36.427000Z</updated><author><name>greg-ch</name><uri>https://forge.codesys.com/u/greg-ch/</uri></author><id>https://forge.codesys.com5ed821e828bd6a4014090277b385f610d64bd1c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As see, in codesys the holding registers are only for writing and the input register just for reading. I don't know for where they take this rule, onde holding register can be read or write in modbus...&lt;/p&gt;
&lt;p&gt;I have another problem tha I think will be usefull to share here. My master was reading only zeros from codesys. No erros, but the registers were always at zero... So I changed the option "aways uptade variables" (see the attachment) to "enabled". Worked for me.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#835b" rel="alternate"/><published>2020-02-27T14:26:15.370000Z</published><updated>2020-02-27T14:26:15.370000Z</updated><author><name>marcin.w</name><uri>https://forge.codesys.com/u/marcin-w/</uri></author><id>https://forge.codesys.com4d63b6a409e3e9075cea3d3c0f66584d7817ec95</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;ph0010421 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Does your device have the Modbus slave licence? My preferred Codesys plc has a Modbus master, but will not act as a slave due to not having the licence.&lt;br/&gt;
Some genius has probably written a Modbus slave library &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Eaton Codesys doesn't need another license for Modbus slave &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;johnlee hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi marcin.w,&lt;br/&gt;
As normal standard Codesys V3 soft PLC, regardless your modbus master or slave, you have to do the configuration.&lt;br/&gt;
The step for configure as slave is adding the device-&amp;gt;add modbus slave-&amp;gt;add modbus serial device.&lt;br/&gt;
Then inside the modbus serial device have the memory where is for outside using reading holding register to read or write.&lt;br/&gt;
as for some other brand PLC like ABB, Wago , where default have open up the modbus slave function where will automatically to map all the PLC internal memory for all the modbus function.&lt;br/&gt;
this is example for standard codesys V3 softPLC modbus setup&lt;br/&gt;
Thank you&lt;br/&gt;
Lee Junn Hei&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Yes, I know these all things.&lt;br/&gt;
P.S.&lt;br/&gt;
I've got answer from Eaton support, that the problem is with the Eaton Codesys.&lt;br/&gt;
So probably they will fix it in the next version.&lt;/p&gt;
&lt;p&gt;Thank you guys for help. For now that's all. Bye &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#8ede" rel="alternate"/><published>2020-02-27T14:26:14.914000Z</published><updated>2020-02-27T14:26:14.914000Z</updated><author><name>johnlee</name><uri>https://forge.codesys.com/u/johnlee/</uri></author><id>https://forge.codesys.com56a1b1257d882d3edde8142eccea28ee925b67a8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi marcin.w,&lt;/p&gt;
&lt;p&gt;As normal standard Codesys V3 soft PLC, regardless your modbus master or slave, you have to do the configuration.&lt;/p&gt;
&lt;p&gt;The step for configure as slave is adding the device-&amp;gt;add modbus slave-&amp;gt;add modbus serial device.&lt;/p&gt;
&lt;p&gt;Then inside the modbus serial device have the memory where is for outside using reading holding register to read or write.&lt;/p&gt;
&lt;p&gt;as for some other brand PLC like ABB, Wago , where default have open up the modbus slave function where will automatically to map all the PLC internal memory for all the modbus function.&lt;/p&gt;
&lt;p&gt;this is example for standard codesys V3 softPLC modbus setup&lt;/p&gt;
&lt;p&gt;Thank you&lt;br/&gt;
Lee Junn Hei&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ModbusExample.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3919"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#1785" rel="alternate"/><published>2020-02-27T14:26:14.436000Z</published><updated>2020-02-27T14:26:14.436000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comb1b4fed9416a91575d9f7dcecf357780e8b86104</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; ph0010421&lt;/p&gt;
&lt;p&gt;Does your device have the Modbus slave licence? My preferred Codesys plc has a Modbus master, but will not act as a slave due to not having the licence.&lt;br/&gt;
Some genius has probably written a Modbus slave library &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#9aa9" rel="alternate"/><published>2020-02-27T14:26:13.191000Z</published><updated>2020-02-27T14:26:13.191000Z</updated><author><name>marcin.w</name><uri>https://forge.codesys.com/u/marcin-w/</uri></author><id>https://forge.codesys.com257ad91144734f0f68fda9f8b1074c553cfcab0a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You don't understand me. PLC is a slave, not master, so there is no any channel settings.&lt;br/&gt;
And yes, PLC is on Codesys v3.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#4157" rel="alternate"/><published>2020-02-27T14:26:12.745000Z</published><updated>2020-02-27T14:26:12.745000Z</updated><author><name>johnlee</name><uri>https://forge.codesys.com/u/johnlee/</uri></author><id>https://forge.codesys.coma825c0ce22db0684b28b1a1e771ff83a4bf098a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi marcin.w,&lt;/p&gt;
&lt;p&gt;if the PLC are using codesys V3, just make sure you have configure the device properly and make sure you have add the IO channel correctly.&lt;/p&gt;
&lt;p&gt;if you use holding register just make sure you have add the IO channel for FC 03(reading) FC06 or FC16(for write)&lt;/p&gt;
&lt;p&gt;Thank you&lt;br/&gt;
John Lee&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus RTU - PLC as a slave</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5a823d22fd/?limit=25#029b" rel="alternate"/><published>2020-02-27T14:26:12.303000Z</published><updated>2020-02-27T14:26:12.303000Z</updated><author><name>marcin.w</name><uri>https://forge.codesys.com/u/marcin-w/</uri></author><id>https://forge.codesys.com4770f1b838880f78424e73be20d9a831ceefdc84</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I'm using Eaton PLC XC303 and I'm trying to make PLC as a Modbus slave.&lt;br/&gt;
And there is a problem, I can't use holding registers to read and write them.&lt;br/&gt;
I can't write values to the registers from PLC side. Why?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>