<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to [MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/</id><updated>2020-10-16T10:16:18.572000Z</updated><subtitle>Recent posts to [MODBUS/TCP] variable type</subtitle><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#b7e7" rel="alternate"/><published>2020-10-16T10:16:18.572000Z</published><updated>2020-10-16T10:16:18.572000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.com48ee5aa98bef82059d4d520c15664514dab0340b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I wrote a extensive guide on how to set up MODBUS TCP communication between codesys controllers: &lt;a href="http://disorder.dk/wonderware/2020/10/07/modbus-tcp-between-codesys-controllers/" rel="nofollow"&gt;http://disorder.dk/wonderware/2020/10/07/modbus-tcp-between-codesys-controllers/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#6842" rel="alternate"/><published>2020-07-07T18:20:02.092000Z</published><updated>2020-07-07T18:20:02.092000Z</updated><author><name>ndzied2</name><uri>https://forge.codesys.com/u/ndzied2/</uri></author><id>https://forge.codesys.combdb48c72ec866e842afe1c5b0067900a9e422dba</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have always used this one:&lt;br/&gt;
&lt;a href="https://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html" rel="nofollow"&gt;https://babbage.cs.qc.cuny.edu/IEEE-754.old/Decimal.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#ce85" rel="alternate"/><published>2020-07-05T09:35:13.192000Z</published><updated>2020-07-05T09:35:13.192000Z</updated><author><name>rojak</name><uri>https://forge.codesys.com/u/rojak/</uri></author><id>https://forge.codesys.com0a75270d03c6329fda9bc45e72bc7fe370d57b47</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
Can you please share with me the program for the ieee conversion?&lt;br/&gt;
Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#4d72" rel="alternate"/><published>2020-02-27T13:47:49.742000Z</published><updated>2020-02-27T13:47:49.742000Z</updated><author><name>aagueda</name><uri>https://forge.codesys.com/u/aagueda/</uri></author><id>https://forge.codesys.com9dbf98d5e8ccb09bec3b4025dedb091bd81a80af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Correctly read!!&lt;/p&gt;
&lt;p&gt;Thanks for the very helpful time you've spent!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#d25b" rel="alternate"/><published>2020-02-27T13:47:49.698000Z</published><updated>2020-02-27T13:47:49.698000Z</updated><author><name>Comingback4u</name><uri>https://forge.codesys.com/u/comingback4u/</uri></author><id>https://forge.codesys.com5525c6f03522ce9ee1927ba791f212488ee0512d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;A Union is a DUT (Data unit type). See example below. Using the original value you see the float/real value of 49.75&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: UnionExample.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3791"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#8982" rel="alternate"/><published>2020-02-27T13:47:49.652000Z</published><updated>2020-02-27T13:47:49.652000Z</updated><author><name>aagueda</name><uri>https://forge.codesys.com/u/aagueda/</uri></author><id>https://forge.codesys.comc700bdab9ba66d897cad96afd837f65b45821407</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;thanks for the reply!&lt;/p&gt;
&lt;p&gt;I tried what I think you mean, but I do still read the 16968 value.&lt;/p&gt;
&lt;p&gt;Any other suggestion? or may I be doing it wrong?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Antton,&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: forum_codesys1.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3788"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: forum_codesys.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3787"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#080b" rel="alternate"/><published>2020-02-27T13:47:49.589000Z</published><updated>2020-02-27T13:47:49.589000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comd49ad3f67f0ad3999929a074a280499b69eade02</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; ph0010421&lt;/p&gt;
&lt;p&gt;Hello&lt;br/&gt;
Create a UNION with members...&lt;/p&gt;
&lt;p&gt;AsWord: ARRAY&lt;span&gt;[0..1]&lt;/span&gt; OF WORD;&lt;br/&gt;
AsREAL: REAL;&lt;/p&gt;
&lt;p&gt;Map your Modbus Words to Array members &lt;span&gt;[0]&lt;/span&gt; and &lt;span&gt;[1]&lt;/span&gt;.&lt;br/&gt;
Your REAL number will be the Hz.&lt;/p&gt;
&lt;p&gt;You may need to swap the map to &lt;span&gt;[0]&lt;/span&gt; and &lt;span&gt;[1]&lt;/span&gt; if the REAL number is wrong.&lt;br/&gt;
Regards&lt;br/&gt;
Paul&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[MODBUS/TCP] variable type</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/814c0aa6b2/?limit=25#ffd5" rel="alternate"/><published>2020-02-27T13:47:49.541000Z</published><updated>2020-02-27T13:47:49.541000Z</updated><author><name>aagueda</name><uri>https://forge.codesys.com/u/aagueda/</uri></author><id>https://forge.codesys.com012b09f2f1097d0b3c9905d1dc52eb01f9b0bfa5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good morning,&lt;/p&gt;
&lt;p&gt;I am kind of new to codesys, and on my project I am reading from a Schneider energy meter over modbus/tcp, but the variables that I get are in FLOAT32 format.&lt;/p&gt;
&lt;p&gt;As an example, I read the current frequency on the network, that should be around 50Hz, and I get the 16967 value, or 4247 in Hex, which transformed with an online hex to float converter gives me the 49.75 value.&lt;/p&gt;
&lt;p&gt;How can I transform the data in codesys?&lt;/p&gt;
&lt;p&gt;check attached files,&lt;/p&gt;
&lt;p&gt;thanks in advance,&lt;/p&gt;
&lt;p&gt;Antton&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: codesys1.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3783"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: codesys2.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3782"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Data transform.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3781"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>