<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to how to declare network variables?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/0ab8bb875e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/0ab8bb875e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/0ab8bb875e/</id><updated>2020-02-27T22:39:20.990000Z</updated><subtitle>Recent posts to how to declare network variables?</subtitle><entry><title>how to declare network variables?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/0ab8bb875e/?limit=25#8e2e" rel="alternate"/><published>2020-02-27T22:39:20.990000Z</published><updated>2020-02-27T22:39:20.990000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com51f302e03b24a4ffce4c9bb2535f8242974726dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; 89268965185&lt;/p&gt;
&lt;p&gt;Correct me if I made mistakes in terms or in substance.&lt;br/&gt;
How to declare variables that I want to receive and transmit to the network (for example LON)? Throw a code example please. &lt;/p&gt;
&lt;p&gt;As far as I understand from the manual storage area that is preserved under the required network begins with a 256 word (type word) and ends 511 words. Therefore, if I want to declare a variable that will be transmitted to the network, the code is as follows:&lt;br/&gt;
for entering variables:&lt;br/&gt;
bI AT% IX256.0: BOOL; (&lt;em&gt; for the logical type &lt;/em&gt;)&lt;br/&gt;
dI AT% ID129: DWORD; (&lt;em&gt; for double-word type &lt;/em&gt;)&lt;br/&gt;
outgoing variables: bI1 AT% IX256.0: BOOL;&lt;br/&gt;
bQ AT% QX256.0: BOOL; (&lt;em&gt; for the logical type &lt;/em&gt;)&lt;br/&gt;
dQ AT% QD129: DWORD; (&lt;em&gt; for double-word type &lt;/em&gt;)&lt;br/&gt;
Right? &lt;/p&gt;
&lt;p&gt;Controller: wago 750-819&lt;br/&gt;
ctnm: Network LON. The controller has a slot that is in the description called FieldBus conection, it is through this connector and connect the network.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>