<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/</id><updated>2020-02-27T16:24:24.584000Z</updated><subtitle>Recent posts to Modbus/TCP supported functions</subtitle><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25&amp;page=1#de22" rel="alternate"/><published>2020-02-27T16:24:24.584000Z</published><updated>2020-02-27T16:24:24.584000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.comf5e6d50fbcb6d1221cce015a91ca28fa4992169c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;br/&gt;
how can I insert the modbus server block in the project?&lt;br/&gt;
Can you tell me how I can insert more registers both in writing and in reading because in the menu 'modbus tcp slave devide iec objects I have only 10 registers and I don't know how to add them.&lt;br/&gt;
Thank you all for your answers.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25&amp;page=1#2a09" rel="alternate"/><published>2020-02-27T16:24:22.215000Z</published><updated>2020-02-27T16:24:22.215000Z</updated><author><name>Tiziano</name><uri>https://forge.codesys.com/u/tiziano/</uri></author><id>https://forge.codesys.com1bcbff27b0002e5a9ff4c903e1e3de9417161a8a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everyone,&lt;br/&gt;
how can I insert the modbus server block in the project?&lt;br/&gt;
Can you tell me how I can insert more registers both in writing and in reading because in the menu 'modbus tcp slave devide iec objects I have only 10 registers and I don't know how to add them.&lt;br/&gt;
Thank you all for your answers.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25&amp;page=1#bfc3" rel="alternate"/><published>2020-02-27T16:24:21.370000Z</published><updated>2020-02-27T16:24:21.370000Z</updated><author><name>WAGOKurt</name><uri>https://forge.codesys.com/u/wagokurt/</uri></author><id>https://forge.codesys.come9d29a7042010be840a28ebe23ced8cd7ea53bfd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The WAGO e!COCKPIT Modbus TCP library works well, in that you can locate the holding register data array at %MW0, and then locate your global variables overlapping.  Then your variables work essentially like C2.3 %MW R/W modbus variables.  Tip: If you declare the array starting at a number, that is used as the offset.  For example Holding_Data AT %MW0 : ARRAY&lt;span&gt;[100..200]&lt;/span&gt; OF WORD; this would be MB4x100 - 4x200, which is very clever.&lt;/p&gt;
&lt;p&gt;FYI:  This overlapping trick also works with the C3.5 modbus slave library, however when the master is stopped all variables are set to 0 / FALSE!  I had to add extra array that I "save" and "load" when the modbus slave FB client count goes to zero.  Not very elegant, but works. Also I did not see any way to offset the MB address, it always starts at 4x0.   &lt;/p&gt;
&lt;p&gt;I tried the built in modbus slave server but the check box for overlapping Input and Holding did not work for me unfortunately.  I was using 3.5.14.10 so maybe its been fixed since then. This would be better than using libraries, however the way WAGO implemented this in C2.3 was the best in my opinion and was loved by many.  I don't like using %IW and %QW because then the HMI has to retain all parameter values, and the PLC has no means of changing those variable values which is very limiting.  Of, you have to implement complicated logic to look at two variables, ugh, no thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25&amp;page=1#c938" rel="alternate"/><published>2020-02-27T16:24:18.993000Z</published><updated>2020-02-27T16:24:18.993000Z</updated><author><name>AndreasR</name><uri>https://forge.codesys.com/u/andreasr/</uri></author><id>https://forge.codesys.com3e338d02e61d3931104e4a7de0981d5022d389fc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any update?&lt;br/&gt;
I want to share Holding &amp;amp; Input Registers in the same way WAGO does in Codesys V2.3 (ADR 3000hex = %MW0). &lt;br/&gt;
Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25&amp;page=1#4ced" rel="alternate"/><published>2020-02-27T16:24:18.146000Z</published><updated>2020-02-27T16:24:18.146000Z</updated><author><name>dsyakira</name><uri>https://forge.codesys.com/u/dsyakira/</uri></author><id>https://forge.codesys.com118fc7df4cbc3e4b92546410462439b1c3ef8a27</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi Zdenko,&lt;br/&gt;
see attached example, this should show how it works, Pi is ModbusMaser and Modbus Slave at the same time (only for me to test purpose),&lt;br/&gt;
in case you use this with you Modbus Master which is running on you windows machine, please remove the Modbus Master from this project example.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hey Edwin, &lt;br/&gt;
Can you explain what's this part is doing? I can't understand what's it doing. Thank you&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Capture.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2837"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25&amp;page=1#630e" rel="alternate"/><published>2020-02-27T16:24:17.302000Z</published><updated>2020-02-27T16:24:17.302000Z</updated><author><name>urbanlarsson</name><uri>https://forge.codesys.com/u/urbanlarsson/</uri></author><id>https://forge.codesys.comccbf2e1c45761e8267d1e73b6f40228bbb9c4c28</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Any updates on this? &lt;/p&gt;
&lt;p&gt;/U&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25#5d31" rel="alternate"/><published>2020-02-27T16:24:14.905000Z</published><updated>2020-02-27T16:24:14.905000Z</updated><author><name>switcher</name><uri>https://forge.codesys.com/u/switcher/</uri></author><id>https://forge.codesys.com9eb4090f06f3bdf306303b6548ef75331ead3166</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you very much Edwin,&lt;/p&gt;
&lt;p&gt;I understand the solution. It can be done. I tested it and works ok. But I must say that this is more like a work-around. It is not so easy to define all needed helping variables and program functionality if we have bigger project with a lot of holding registers. &lt;/p&gt;
&lt;p&gt;I think it is easiest to use MB server function block from Modbus lib. In this case this functionality works ok. But unfortunately there are no coils and discrete inputs integrated. &lt;/p&gt;
&lt;p&gt;It will be the best if you integrate this functionality directly in Modbus driver. It is normally used in industrial devices on the market. Do you have a plan to integrate this in the next Codesys release?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Zdenko.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25#f993" rel="alternate"/><published>2020-02-27T16:24:14.050000Z</published><updated>2020-02-27T16:24:14.050000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com92c549cbb76edea3978e2afd38d2d2ee2477e5a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Zdenko,&lt;br/&gt;
see attached example, this should show how it works, Pi is ModbusMaser and Modbus Slave at the same time (only for me to test purpose),&lt;br/&gt;
in case you use this with you Modbus Master which is running on you windows machine, please remove the Modbus Master from this project example.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ModbusOverlay.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=748"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ModbusSlave.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=747"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=746" rel="nofollow"&gt;ModbusUpdateHolding.project &lt;span&gt;&lt;span&gt;[223.46 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25#2efb" rel="alternate"/><published>2020-02-27T16:24:13.166000Z</published><updated>2020-02-27T16:24:13.166000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com0b2f418f1d50b299fcb4f5a8fa0259cfbc95655f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Zdenko,&lt;/p&gt;
&lt;p&gt;please send me your project.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modbus/TCP supported functions</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/607bfea988/?limit=25#73ee" rel="alternate"/><published>2020-02-27T16:24:10.666000Z</published><updated>2020-02-27T16:24:10.666000Z</updated><author><name>switcher</name><uri>https://forge.codesys.com/u/switcher/</uri></author><id>https://forge.codesys.com8b0cf6594d30686365ff206be77778f97116e2e0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I like new Modbus functions support in 3.5SP5 (coils and discrete inputs).&lt;/p&gt;
&lt;p&gt;@Edwin:&lt;br/&gt;
I like to change holding registers with RPi application. I made a configuration with overlay input and holding registers like you suggest. But unforunately it doesn’t work for me. Can you please suggest how to configure this to make it work.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br/&gt;
BR&lt;br/&gt;
Zdenko.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>