<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Network Byte Orders</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5bcb436bfa/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5bcb436bfa/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5bcb436bfa/</id><updated>2021-01-12T05:42:29.129000Z</updated><subtitle>Recent posts to Network Byte Orders</subtitle><entry><title>Network Byte Orders</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5bcb436bfa/?limit=25#ccdc" rel="alternate"/><published>2021-01-12T05:42:29.129000Z</published><updated>2021-01-12T05:42:29.129000Z</updated><author><name>MadsKaizer</name><uri>https://forge.codesys.com/u/madskaizer/</uri></author><id>https://forge.codesys.com4573630cbf31000e9d0d5686eb1b6e895d161b40</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Scroll down to programming: &lt;a href="https://disorder.dk/wonderware/2020/10/07/modbus-tcp-between-codesys-controllers/" rel="nofollow"&gt;https://disorder.dk/wonderware/2020/10/07/modbus-tcp-between-codesys-controllers/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You could use a struct "Union", in this example I always read out the real value, but I can switch around on the word0 and word1 when reading from the MODBUS register.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Network Byte Orders</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5bcb436bfa/?limit=25#f691" rel="alternate"/><published>2021-01-11T15:49:13.892000Z</published><updated>2021-01-11T15:49:13.892000Z</updated><author><name>Inna</name><uri>https://forge.codesys.com/u/inna/</uri></author><id>https://forge.codesys.comd0035f6615ab67951c5889add143bc9566d9a551</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
We have a system with PLCs with different byte order conventions - little endian/big endian. &lt;br/&gt;
I'm looking for Codesys routines for converting data between a host's internal representation and Network Byte Order(like htons() and ntohs()).&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>