<?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[Dataitem, multiplier and additive]]></title><description><![CDATA[<p dir="auto">hi, i have some data items from a modbus source with unusual modifiers...</p>
<p dir="auto">12bit analogue, with 820 - 4095 = 0 - 100 %</p>
<p dir="auto">so i use * (0.0303) and + (-24)</p>
<p dir="auto">this works A ok for all read only sources...</p>
<p dir="auto">however, i now have some write data... and by rights, it should reverse the process to produce the scaled value to the register..</p>
<p dir="auto">but when i enter, for example 50... i get 27 come back from the modbus source...</p>
<p dir="auto">and entering 80 gives me 57...</p>
<p dir="auto">i have other tags with simple 0.1 multipliers, so it seems the additive must be the problem.</p>
<p dir="auto">it looks like, in the case of writing the data back, its ignoring the additive....</p>
<p dir="auto">i.e.</p>
<p dir="auto">50 should be 50+24 = 74, 74 / 0.0303 = 2442 ( 49.99 - correct)</p>
<p dir="auto">whereas, i'm seeing 50 (not +24) = 50, 50 / 0.0303 = 1650 (25.99 - incorrect).</p>
<p dir="auto">can this be fixed please?</p>
]]></description><link>https://forum.mango-os.com/topic/617/dataitem-multiplier-and-additive</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 03:24:07 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/617.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Nov 2010 23:48:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dataitem, multiplier and additive on Thu, 04 Nov 2010 08:13:24 GMT]]></title><description><![CDATA[<p dir="auto">thanks....</p>
<p dir="auto">look forward to that release</p>
]]></description><link>https://forum.mango-os.com/post/4825</link><guid isPermaLink="true">https://forum.mango-os.com/post/4825</guid><dc:creator><![CDATA[skiv71]]></dc:creator><pubDate>Thu, 04 Nov 2010 08:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to Dataitem, multiplier and additive on Thu, 04 Nov 2010 00:39:48 GMT]]></title><description><![CDATA[<p dir="auto">The reverse arithmetic was present, but the operations were in the reverse order. Incoming: value = input * mult + add. But, output = value / mult - add. The operation has been corrected to be output = (value - add) / mult. This will be available in the next release.</p>
]]></description><link>https://forum.mango-os.com/post/4824</link><guid isPermaLink="true">https://forum.mango-os.com/post/4824</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Thu, 04 Nov 2010 00:39:48 GMT</pubDate></item></channel></rss>