<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to doubt with modbus to read 32-bit words</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eae41625ef/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eae41625ef/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/eae41625ef/</id><updated>2020-02-27T16:39:36.133000Z</updated><subtitle>Recent posts to doubt with modbus to read 32-bit words</subtitle><entry><title>doubt with modbus to read 32-bit words</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eae41625ef/?limit=25#619d" rel="alternate"/><published>2020-02-27T16:39:36.133000Z</published><updated>2020-02-27T16:39:36.133000Z</updated><author><name>teichhei</name><uri>https://forge.codesys.com/u/teichhei/</uri></author><id>https://forge.codesys.comf8f0912ac6584a041aa30759ab84b6a080ef128f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can also use a pointer to an array of word and stick the high and low word in there and then have a pointer do dword with the address of the low word.&lt;br/&gt;
And I think there are functions blocks in the OSCAT library for that or from some manufacturers e.g. Wago.&lt;/p&gt;
&lt;p&gt;Sent from my SM-G935F using Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>doubt with modbus to read 32-bit words</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eae41625ef/?limit=25#3430" rel="alternate"/><published>2020-02-27T16:39:33.685000Z</published><updated>2020-02-27T16:39:33.685000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com515bb3bee60364aecb4850b360d89e6b1b639fff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You can use a union.&lt;/p&gt;
&lt;p&gt;Union&lt;/p&gt;
&lt;p&gt;Byte1:usint:&lt;br/&gt;
Byte2:usint;&lt;br/&gt;
Int:uint;&lt;/p&gt;
&lt;p&gt;End&lt;br/&gt;
Know&lt;br/&gt;
You can write to byte1 and byte2 and read int.&lt;/p&gt;
&lt;p&gt;It could be some sintax errors&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>doubt with modbus to read 32-bit words</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eae41625ef/?limit=25#fc6a" rel="alternate"/><published>2020-02-27T16:39:32.801000Z</published><updated>2020-02-27T16:39:32.801000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com2a2836c94fae70eb80acc04c2bf8fcf7f2343a51</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;First of all I say I just started with codesys and although I love it I am very newbie.&lt;br/&gt;
I have a doubt and managed to read modbus both ip and rtu. But the records I use are usually double records, now what I do is that I read them individually and put them together in a function that multiplies by 65536 the high part and the low part. Can you do this codesys only in some way ???&lt;/p&gt;
&lt;p&gt;Greetings, excuse my bad English.&lt;/p&gt;
&lt;p&gt;greetings and congratulations on the product and forum&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>