<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to use real data in ModbusTcp protocol</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/54bc95535e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/54bc95535e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/54bc95535e/</id><updated>2020-02-27T14:19:27.133000Z</updated><subtitle>Recent posts to How to use real data in ModbusTcp protocol</subtitle><entry><title>How to use real data in ModbusTcp protocol</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/54bc95535e/?limit=25#ecc1" rel="alternate"/><published>2020-02-27T14:19:27.133000Z</published><updated>2020-02-27T14:19:27.133000Z</updated><author><name>ndzied1</name><uri>https://forge.codesys.com/u/ndzied1/</uri></author><id>https://forge.codesys.com202a3dc80c6dcd356ae6f23ae2c71ebb448e15b0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What you need to do is "pack" the 32 bits of the real into 2 contiguous UINTS.  &lt;/p&gt;
&lt;p&gt;Then you usually have to do some experimentation to see what the other end expects. Sometimes you need to swap high and low words. Sometimes you have to swap hi and low bytes and sometimes you have to do both. &lt;/p&gt;
&lt;p&gt;Then you have to figure out if addres 0 is really 0 or if there is an implied offset to 1. &lt;/p&gt;
&lt;p&gt;I usually set things up to transfer 3 reals in continuous addresses and keep changing parameters and swapping until they all transfer ok.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to use real data in ModbusTcp protocol</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/54bc95535e/?limit=25#6a5d" rel="alternate"/><published>2020-02-27T14:19:26.019000Z</published><updated>2020-02-27T14:19:26.019000Z</updated><author><name>tommyjeans</name><uri>https://forge.codesys.com/u/tommyjeans/</uri></author><id>https://forge.codesys.comb3b935853553f2bbc37c5f165c503e402528d3af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I use PC( Win V3 ) as ModbusTCP master, &lt;br/&gt;
I want to send a negative number, using floating point type data.&lt;br/&gt;
But I found that only UINT can be selected!&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: BBB.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2102"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>