<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Read&#x2F;Write Modbus]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm more than likely misunderstanding the documentation. But I'm just after some clarification on how you read/write to the same Modbus register using REXYGEN. I have an RTU master that requires to read/write to several registers.</p>
<p dir="auto">For those interested I am communicating to a device via a RS485/TTL adapter as part of a HIL project.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/topic/23/read-write-modbus</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 08:52:37 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/23.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Apr 2019 21:46:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Mon, 15 Apr 2019 09:01:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi Tomas,</p>
<p dir="auto">Thank you for your help. I understand how it works now, what you provided is where i wasn't sure what to do. It makes sense to me now.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/57</link><guid isPermaLink="true">https://forum.rexygen.com/post/57</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Mon, 15 Apr 2019 09:01:56 GMT</pubDate></item><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Fri, 12 Apr 2019 12:13:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mike,</p>
<p dir="auto">see the modified project attached. In such a case I recommend to use two different items - one for reading and one for writing. Therefore there won't be any naming collision. Keep us updated about your progress.</p>
<p dir="auto">PS: I also modified Modbus Port settings to meet requirements for Modbus RTU usage via Monarco - there should be "/dev/ttyAMA0" - for more details see following topic at our Knowledge Base - <a href="https://support.rexygen.com/help/modbus-rtu-with-the-monarco-hat-on-raspberry-pi">https://support.rexygen.com/help/modbus-rtu-with-the-monarco-hat-on-raspberry-pi</a></p>
<p dir="auto">Cheers, Tomas</p>
<p dir="auto"><a href="/assets/uploads/files/1555070707612-modbus_rw.zip">0_1555070706951_modbus_RW.zip</a></p>
]]></description><link>https://forum.rexygen.com/post/55</link><guid isPermaLink="true">https://forum.rexygen.com/post/55</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Fri, 12 Apr 2019 12:13:34 GMT</pubDate></item><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Thu, 11 Apr 2019 20:04:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi Tomas,</p>
<p dir="auto">The project is a HIL simulator. I'm using the Monarco as a master, reading and writing values back to a refrigeration controller. The project will eventually have a task with a model performing the simulation back to the controller. For this to happen I need the master to write back to "sensors" and "parameters" blocks. Enclosed are the Modbus and Monarco .rio files . That's all the project has right now. I need to get the Modbus working before I can proceed.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
<p dir="auto"><a href="/assets/uploads/files/1555013055449-monarco.rio">1_1555013054598_monarco.rio</a> <a href="/assets/uploads/files/1555013055448-master_cfg.rio">0_1555013054597_master_cfg.rio</a></p>
]]></description><link>https://forum.rexygen.com/post/54</link><guid isPermaLink="true">https://forum.rexygen.com/post/54</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 11 Apr 2019 20:04:45 GMT</pubDate></item><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Thu, 11 Apr 2019 17:40:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mike,</p>
<p dir="auto">exec file is not enough - Modbus configuration is hidden in *.rio file. Can you share whole your project? You can send it via e-mail if there is some know-how you wouldn't share with others.<br />
Can you describe your setup more to the details? What devices are "talking"? I was probably misunderstanding that you are trying to implement Modbus Slave in REXYGEN because you have some device acting like Modbus Master. That is wrong, right? <img src="https://forum.rexygen.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=rfreqd0ultg" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Cheers, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/53</link><guid isPermaLink="true">https://forum.rexygen.com/post/53</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Thu, 11 Apr 2019 17:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Thu, 11 Apr 2019 05:46:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a> Thanks for your help with this. I'm pretty sure I have just misunderstood something. I have uploaded some of the project. Basically I need to write back to the same registers that Modbus blocks "sensors" and "parameters" are reading from. This is where I have got stuck, basically writing back to the same register.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
<p dir="auto"><a href="/assets/uploads/files/1554961567495-main_task.mdl">1_1554961565988_main_task.mdl</a> <a href="/assets/uploads/files/1554961567495-hil_exec.mdl">0_1554961565988_HIL_exec.mdl</a></p>
]]></description><link>https://forum.rexygen.com/post/52</link><guid isPermaLink="true">https://forum.rexygen.com/post/52</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 11 Apr 2019 05:46:15 GMT</pubDate></item><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Wed, 10 Apr 2019 08:58:04 GMT]]></title><description><![CDATA[<p dir="auto"><strong>IMPORTANT - Speaking about Modbus Slave implemented in REXYGEN:</strong><br />
There should be no need for having input and output flags for the same item (same name).<br />
If you want to observe it's state (i.e. changes made by writing from Master), you can add to your REXYGEN project input flags ("From" function block).<br />
Output flags ("GoTo" function block) within Modbus Slave context are valid only for registers meant to be READ ONLY for Master.</p>
<p dir="auto">If you want to store some initial values within Modbus Slave, use "Init Values" box in Item configuration dialog.</p>
<p dir="auto">If you can share a test Modbus mapping table suitable for you project I can prepare Modbus Slave implementation example for you.</p>
<p dir="auto">Hope it helps.</p>
<p dir="auto">Cheers, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/50</link><guid isPermaLink="true">https://forum.rexygen.com/post/50</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Wed, 10 Apr 2019 08:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Tue, 09 Apr 2019 05:05:47 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a>, how does that work in terms of input and output blocks?</p>
<p dir="auto">Guessing that you can't have two blocks with the same name and you have to use an input and output block to read/write. What would it schematically look like? I might be over thinking this!</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/48</link><guid isPermaLink="true">https://forum.rexygen.com/post/48</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Tue, 09 Apr 2019 05:05:47 GMT</pubDate></item><item><title><![CDATA[Reply to Read&#x2F;Write Modbus on Mon, 08 Apr 2019 12:34:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mike,</p>
<p dir="auto">in order to configure REXYGEN Modbus Slave register as read/write, just tick "Readable" and "Writable" options together in Item configuration dialog.</p>
<p dir="auto"><img src="/assets/uploads/files/1554726475717-2777d94a-0e03-4eb5-a6c6-e951c5459b47-image.png" alt="0_1554726474848_2777d94a-0e03-4eb5-a6c6-e951c5459b47-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Note: be sure not to use write flag (GoTo flag) within REXYGEN Modbus Slave - it can lead to unexpected behaviour because of multiple sources for one register.</p>
<p dir="auto">If you need any further assistance, let me know.</p>
<p dir="auto">Cheers, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/47</link><guid isPermaLink="true">https://forum.rexygen.com/post/47</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Mon, 08 Apr 2019 12:34:45 GMT</pubDate></item></channel></rss>