<?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[Energy Meter kwh Reset]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I have an energy meter I am using, connected via Modbus. The issue I have is the kwh figure in the meter can not be reset to zero, currently it is up to 9124.0 kwh. When I start a new test I'd like to reset the logged kwh figure.</p>
<p dir="auto"><img src="/assets/uploads/files/1616541043461-7fbe7db3-9179-45e0-8f23-2afcb22620ff-image.png" alt="7fbe7db3-9179-45e0-8f23-2afcb22620ff-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What is the best way of doing this via the REX program? I wondered about saving the last know value from the Modbus register and then subtracting that to give me a virtual reset and start from zero again.</p>
<p dir="auto">Thoughts?</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/topic/231/energy-meter-kwh-reset</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 23:55:21 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/231.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Mar 2021 23:11:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Energy Meter kwh Reset on Thu, 25 Mar 2021 18:41:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi Both,</p>
<p dir="auto">Thank you. <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/185">@Apollo</a>, great tip. That will save me loosing data.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/920</link><guid isPermaLink="true">https://forum.rexygen.com/post/920</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 25 Mar 2021 18:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to Energy Meter kwh Reset on Thu, 25 Mar 2021 10:16:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys,<br />
<a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a> you're welcome. <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/185">@apollo</a>  is right with persistent parameters. If you don't just do short-term tests, don't forget to turn persistent parameters on.</p>
]]></description><link>https://forum.rexygen.com/post/918</link><guid isPermaLink="true">https://forum.rexygen.com/post/918</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Thu, 25 Mar 2021 10:16:49 GMT</pubDate></item><item><title><![CDATA[Reply to Energy Meter kwh Reset on Thu, 25 Mar 2021 06:03:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a></p>
<p dir="auto">Maybe you can also make the parameters of function block SHLD non-volatile (Persistent parameters).</p>
<p dir="auto">If you restart your computer and/or download new program then it will not lose the previous stored value.</p>
<p dir="auto"><img src="/assets/uploads/files/1616651955528-6a0f7a3c-42b6-4b34-aebe-9fca0327af0a-image.png" alt="6a0f7a3c-42b6-4b34-aebe-9fca0327af0a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And storing the value every midnight in a database and then trigger the SETH input would give you a nice overview of the daily consumption.</p>
]]></description><link>https://forum.rexygen.com/post/917</link><guid isPermaLink="true">https://forum.rexygen.com/post/917</guid><dc:creator><![CDATA[Apollo]]></dc:creator><pubDate>Thu, 25 Mar 2021 06:03:54 GMT</pubDate></item><item><title><![CDATA[Reply to Energy Meter kwh Reset on Thu, 25 Mar 2021 04:27:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> Hi Jan,</p>
<p dir="auto">That works extremely well, even better once made into a small subsystem! Thank you for your help as always.</p>
<p dir="auto">Cheers</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/post/915</link><guid isPermaLink="true">https://forum.rexygen.com/post/915</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Thu, 25 Mar 2021 04:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to Energy Meter kwh Reset on Wed, 24 Mar 2021 07:17:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/11">@mikeyh</a> Hi Mike,<br />
one possibility is to use a <strong>SHLD</strong> block with Triggered sampling mode (documentation <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/SHLD.html#x93-920005">here</a>). When you send a pulse to the block input <strong>SETH</strong>, the current value of input <strong>u</strong> is stored at output <strong>y</strong>. The overall connection can then look something like this:<br />
<img src="/assets/uploads/files/1616570011229-a6aff46e-8b4e-426d-863d-452549f0874b-image.png" alt="a6aff46e-8b4e-426d-863d-452549f0874b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/911</link><guid isPermaLink="true">https://forum.rexygen.com/post/911</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Wed, 24 Mar 2021 07:17:58 GMT</pubDate></item></channel></rss>