<?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[asci conversion]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm reading the display register of a controller. The value is 32bit so I get an asci value of "2956538157". What's the best to convert that value to a real number. Real number here is -19</p>
<p dir="auto">Modbus setting are, register_32, readable, swap words flag on</p>
<p dir="auto">Modbus flag read, 2956538157. This should be -19</p>
<p dir="auto">If I turn off the swap word flag I get 825077817, that is roughly -19</p>
<p dir="auto">Cheers,</p>
<p dir="auto">Mike</p>
]]></description><link>https://forum.rexygen.com/topic/551/asci-conversion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 15:08:36 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/551.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Feb 2024 01:06:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to asci conversion on Thu, 15 Feb 2024 08:51:37 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,</p>
<p dir="auto">I'm glad it works for you <img src="https://forum.rexygen.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=rfreqd0ultg" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<p dir="auto">For the "variable decimal point" I would use blocks MUL and CNDR. CNDR configure so it reflects the changing of the gain according to the value.</p>
<p dir="auto">You will probably find many other solutions which will lead you to the desired behaviour (e.g. SSW for switching gain according to the value)</p>
<p dir="auto">Hope it helps.</p>
<p dir="auto">Cheers,<br />
Tomas</p>
]]></description><link>https://forum.rexygen.com/post/1525</link><guid isPermaLink="true">https://forum.rexygen.com/post/1525</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Thu, 15 Feb 2024 08:51:37 GMT</pubDate></item><item><title><![CDATA[Reply to asci conversion on Wed, 14 Feb 2024 18:51:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a> Hi Tomas,</p>
<p dir="auto">That works perfectly, thank you.</p>
<p dir="auto">The next thing to solve! The display on the device I am reading does not use a decimal point below -9.9. So I get the same values from the register. -9.9 and above I can add again to get the decimal, -99 plus gain is -9.9. But -10 and below I can't use gain as -10 becomes -1.0. Is there a clean way in REXYGEN to handle this?</p>
<p dir="auto">Cheers,<br />
Mike</p>
]]></description><link>https://forum.rexygen.com/post/1520</link><guid isPermaLink="true">https://forum.rexygen.com/post/1520</guid><dc:creator><![CDATA[MikeyH]]></dc:creator><pubDate>Wed, 14 Feb 2024 18:51:27 GMT</pubDate></item><item><title><![CDATA[Reply to asci conversion on Fri, 09 Feb 2024 11:11:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mike,</p>
<p dir="auto">in REXYGEN 3 we have introduced "Register String" in Modbus driver.</p>
<pre><code>Register string: text variable (Count is the number of bytes occupied by text in this case)
</code></pre>
<p dir="auto">Did you try out this option? Instead of the "Swap word" flag try to set the "Swap byte" flag since every character is represented by a byte.</p>
<p dir="auto">Let me know if it helped.</p>
<p dir="auto">Cheers,<br />
Tomas</p>
]]></description><link>https://forum.rexygen.com/post/1500</link><guid isPermaLink="true">https://forum.rexygen.com/post/1500</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Fri, 09 Feb 2024 11:11:04 GMT</pubDate></item></channel></rss>