<?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[Pulling data from Fuji Ultrasonic Time Delta C flow meters]]></title><description><![CDATA[<p dir="auto">Ok, I will keep this post as short as I can.  I can connect to the meter and pull simple 2-byte data just fine.</p>
<p dir="auto">There's a couple of registers that I just can't figure out what settings to use to get the data, and I feel like I've tried all the ones that I can think of.</p>
<p dir="auto">I've attached the whole communications manual if it's useful to anyone.</p>
<p dir="auto"><a href="/forum/uploads/files/1485965605411-time-delta-c-flow-transmitter-communications-manual.pdf">0_1485965603594_Time Delta-C Flow Transmitter Communications Manual.pdf</a></p>
<p dir="auto">Here's one part of the puzzle:</p>
<p dir="auto"><img src="https://camo.nodebb.org/6d99dc58f8f1f04350e00fdefe25b3cb52439cfb?url=https%3A%2F%2Fi.imgur.com%2FeD5TdFK.png" alt="0_1485965239419_data types.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Here's the other part of the puzzle.  I'd like to pull the registers in red:<br />
<img src="https://camo.nodebb.org/5b650880edbbf82a674745dd9c216b1a6ef43799?url=https%3A%2F%2Fi.imgur.com%2FlOZqZ3v.png" alt="0_1485965347555_addresses.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The following are my assumptions.</p>
<p dir="auto">For Data Type = float</p>
<p dir="auto">32-bit = 4 byte float<br />
Input Register</p>
<p dir="auto">For Data Type = double</p>
<p dir="auto">64-bit = 8 byte float</p>
]]></description><link>https://forum.mango-os.com/topic/2650/pulling-data-from-fuji-ultrasonic-time-delta-c-flow-meters</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 16:32:49 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2650.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Feb 2017 16:20:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Thu, 23 Feb 2017 17:09:05 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for sharing the resolution Mihai!</p>
<p dir="auto">I'm somewhat surprised the weirdness of the register map didn't factor into the solution. I found it extremely weird that the data types are described with twice as much space as they need in the definitions in 7.2 :</p>
<p dir="auto"><code>double : Floating data. This data is handled in 4-word units. One data per eight addresses</code></p>
<p dir="auto">Eight modbus addresses is 128 bits, when it's definitely spelled out as a 64 bit double. And when I manually decoded the hexadecimal returned in doing a raw read on the first many registers, I found the value you expected to be at 30012 to really be at 30006, which would make sense to me if all that data is in order but the producer of the document got the "Register Number" column wrong because the data type key has the number of registers required for a data type doubled.</p>
<p dir="auto">But, glad you got the meter reading!</p>
]]></description><link>https://forum.mango-os.com/post/13977</link><guid isPermaLink="true">https://forum.mango-os.com/post/13977</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 23 Feb 2017 17:09:05 GMT</pubDate></item><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Thu, 23 Feb 2017 16:57:47 GMT]]></title><description><![CDATA[<p dir="auto">Much thanks, especially to the guys at IA, for helping me diagnose this issue off thread.</p>
<p dir="auto">I discovered what my problem was:</p>
<p dir="auto">Under the modbus datapoint properties:<br />
Max read register count must be a minimum of 4.  I had it set at 1.</p>
<p dir="auto">It's due to my lack of knowledge of modbus and all that but to get a total value for these items, multiple registers are actually read and added together.</p>
<p dir="auto">The data types that worked were the 4 byte float and 8 byte float as in the original post.</p>
]]></description><link>https://forum.mango-os.com/post/13976</link><guid isPermaLink="true">https://forum.mango-os.com/post/13976</guid><dc:creator><![CDATA[mihairosu]]></dc:creator><pubDate>Thu, 23 Feb 2017 16:57:47 GMT</pubDate></item><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Mon, 06 Feb 2017 20:04:49 GMT]]></title><description><![CDATA[<p dir="auto">I suspect Craig is correct. The various bitshifts and orderings can be found in this class in Modbus4J: <a href="https://github.com/infiniteautomation/modbus4j/blob/50d7dfe6c0330bf720ae97492c9213c21fdb8d5f/Modbus4J/src_cdc/com/serotonin/cdc/modbus4j/locator/NumericLocator.java" rel="nofollow ugc">https://github.com/infiniteautomation/modbus4j/blob/50d7dfe6c0330bf720ae97492c9213c21fdb8d5f/Modbus4J/src_cdc/com/serotonin/cdc/modbus4j/locator/NumericLocator.java</a></p>
<p dir="auto">Perhaps we will look into adding more data types to support this situation.</p>
]]></description><link>https://forum.mango-os.com/post/13813</link><guid isPermaLink="true">https://forum.mango-os.com/post/13813</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 06 Feb 2017 20:04:49 GMT</pubDate></item><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Mon, 06 Feb 2017 17:39:47 GMT]]></title><description><![CDATA[<p dir="auto">Craig,</p>
<p dir="auto">Yeah, I see what you're saying.  I've not done that before, but I may have to take that route.</p>
<p dir="auto">Phil,</p>
<p dir="auto">I do not get any errors when reading the registers.  I tried the first 50 with success.</p>
]]></description><link>https://forum.mango-os.com/post/13809</link><guid isPermaLink="true">https://forum.mango-os.com/post/13809</guid><dc:creator><![CDATA[mihairosu]]></dc:creator><pubDate>Mon, 06 Feb 2017 17:39:47 GMT</pubDate></item><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Wed, 01 Feb 2017 21:30:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mihairosu" aria-label="Profile: mihairosu">@<bdi>mihairosu</bdi></a></p>
<p dir="auto">What is occurring when you try to read the registers normally? I would use the read registers tool on the Modbus data source page to try to read over the entire range. The Modbus protocol is agnostic about the format of the data in the registers, so the decoding of the data type is on our end and the data type shouldn't affect what registers can be read. Do you get an error if you read the first 28 registers in the Input Register range?</p>
]]></description><link>https://forum.mango-os.com/post/13779</link><guid isPermaLink="true">https://forum.mango-os.com/post/13779</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 01 Feb 2017 21:30:14 GMT</pubDate></item><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Wed, 01 Feb 2017 20:08:10 GMT]]></title><description><![CDATA[<p dir="auto">if you want to work strictly in mango you could read the 4 byte value as an unsigned long integer and then use a meta point to mask off each byte and try reassembling different arrangements of bytes and converting types to float until you find the float that has the correct value.</p>
<p dir="auto">Here is an excerpt from another scada system's help file:<br />
Control byte order for floating point values (the Modbus driver supports floating point values).<br />
Some systems expect to use a different byte order for their floating point data.<br />
Allowable Values: 0 to 3, where:<br />
0 - Byte order = 1 0 3 2<br />
1 - Byte order = 3 2 1 0<br />
2 - Byte order = 0 1 2 3<br />
3 - Byte order = 2 3 0 1<br />
Default Value: 0</p>
<p dir="auto">mango supports option 0 and 1 I think, so it is also possible that the system you have is using option 2 or 3 if you are sure you aren't off by one and neither 4 byte float and 4 byte float swapped worked.</p>
]]></description><link>https://forum.mango-os.com/post/13771</link><guid isPermaLink="true">https://forum.mango-os.com/post/13771</guid><dc:creator><![CDATA[craig]]></dc:creator><pubDate>Wed, 01 Feb 2017 20:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Wed, 01 Feb 2017 19:26:58 GMT]]></title><description><![CDATA[<p dir="auto">Hey Craig,</p>
<p dir="auto">I tried both the swapped and unswapped.  I tried every 4 byte option there was.</p>
<p dir="auto">A simple 2 byte register works, so the connection is fine.</p>
<p dir="auto">Thanks for the software suggestion.  I'll try it out, and see what it does, though I'd assume the communication manual would have everything I need =(</p>
]]></description><link>https://forum.mango-os.com/post/13770</link><guid isPermaLink="true">https://forum.mango-os.com/post/13770</guid><dc:creator><![CDATA[mihairosu]]></dc:creator><pubDate>Wed, 01 Feb 2017 19:26:58 GMT</pubDate></item><item><title><![CDATA[Reply to Pulling data from Fuji Ultrasonic Time Delta C flow meters on Wed, 01 Feb 2017 18:21:52 GMT]]></title><description><![CDATA[<p dir="auto">a byte is 8 bits.  so the flow rate is a 4 byte float and the total is an 8 byte float.  There are two settings in mango for each of these, 4 byte float and 4 byte float swapped, and 8 byte float and 8 byte float swapped.  Try both, see which if any works.</p>
<p dir="auto">make sure you are not off-by-one with the register addresses. find a simple register that is INT type and make sure you can read it correctly and that you are not getting the register before or after.</p>
<p dir="auto">If neither work then I would use the program called qmodmaster to connect to the salve and see what the exact bytes are at what address and then you can try different arrangements of bytes to floating point until you find the one that works.</p>
]]></description><link>https://forum.mango-os.com/post/13769</link><guid isPermaLink="true">https://forum.mango-os.com/post/13769</guid><dc:creator><![CDATA[craig]]></dc:creator><pubDate>Wed, 01 Feb 2017 18:21:52 GMT</pubDate></item></channel></rss>