<?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 memorylocation %m</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/78b7ab8c1a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/78b7ab8c1a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/78b7ab8c1a/</id><updated>2020-02-27T22:54:58.265000Z</updated><subtitle>Recent posts to How to use memorylocation %m</subtitle><entry><title>How to use memorylocation %m</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/78b7ab8c1a/?limit=25#9bfe" rel="alternate"/><published>2020-02-27T22:54:58.265000Z</published><updated>2020-02-27T22:54:58.265000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.com0a326b472ac8dc90b50c1ed1b35f5e7eef904696</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Maybe this will help.  This is an excel sheet with how the memory is aligned.  Like Shooter said not all PLC/HMI align the memory the same.  This sheet is based off SoMachine/Vijeo hardware built by SE.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=379" rel="nofollow"&gt;SoM Modbus Table.xls &lt;span&gt;&lt;span&gt;[418.5 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to use memorylocation %m</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/78b7ab8c1a/?limit=25#bb90" rel="alternate"/><published>2020-02-27T22:54:53.643000Z</published><updated>2020-02-27T22:54:53.643000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com8c716799ade613c4a781a1ae92bb857f01b324b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes it is a known location , and you when having several PLC in a communication like the old MODBUS you can ask any plc for a memory location and get its results.&lt;br/&gt;
Many HMI displays work with these MARKERS.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to use memorylocation %m</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/78b7ab8c1a/?limit=25#a1c7" rel="alternate"/><published>2020-02-27T22:54:52.034000Z</published><updated>2020-02-27T22:54:52.034000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.comfa843f154957c280429781ee1154e98f769c97b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
     Thanks for the reply.&lt;/p&gt;
&lt;p&gt;What is the difference between&lt;/p&gt;
&lt;p&gt;sarath:array &lt;span&gt;[1..10]&lt;/span&gt; of DWORD; and  myDwordArray AT %MD0 : ARRAY&lt;span&gt;[0..10]&lt;/span&gt; OF DWORD; &lt;/p&gt;
&lt;p&gt;Is it just that %MD0 is known location?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to use memorylocation %m</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/78b7ab8c1a/?limit=25#56d5" rel="alternate"/><published>2020-02-27T22:54:47.616000Z</published><updated>2020-02-27T22:54:47.616000Z</updated><author><name>jzhvymetal</name><uri>https://forge.codesys.com/u/jzhvymetal/</uri></author><id>https://forge.codesys.com0f4d76b4360815dfba10b2f4f24db2a6cc3b39c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;They can declared anywhere in declaration.  Below are examples &lt;/p&gt;
&lt;p&gt;myBool  AT %MX0.0 : BOOL; //Boolean Type&lt;br/&gt;
myInput AT %IX0.0 : BOOL;&lt;br/&gt;
myOut   AT %QX0.0 : BOOL;&lt;/p&gt;
&lt;p&gt;myByte  AT %MB0   : BYTE; //Byte Type&lt;br/&gt;
mySINT  AT %MB0   : SINT;&lt;br/&gt;
myUSINT AT %MB0   : USINT;&lt;br/&gt;
myByteArary AT %MB0 : ARRAY&lt;span&gt;[0..10]&lt;/span&gt; OF BYTE; &lt;/p&gt;
&lt;p&gt;myWORD  AT %MW0   : WORD; //16 bit types&lt;br/&gt;
myINT   AT %MW0   : INT;&lt;br/&gt;
myUINT  AT %MW0   : UINT;&lt;br/&gt;
myWordArary AT %MW0 : ARRAY&lt;span&gt;[0..10]&lt;/span&gt; OF WORD; &lt;/p&gt;
&lt;p&gt;myDWORD AT %MD0   : DWORD; //32bit Types&lt;br/&gt;
myDINT  AT %MD0   : DINT;&lt;br/&gt;
myUDINT AT %MD0   : UDINT;&lt;br/&gt;
myReal  AT %MD0   : REAL;&lt;br/&gt;
myDwordArray AT %MD0 : ARRAY&lt;span&gt;[0..10]&lt;/span&gt; OF DWORD;&lt;/p&gt;
&lt;p&gt;mySTRING AT %MB0 : STRING;  //STRING&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to use memorylocation %m</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/78b7ab8c1a/?limit=25#ea2a" rel="alternate"/><published>2020-02-27T22:54:46.030000Z</published><updated>2020-02-27T22:54:46.030000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comcdb3d8b59afb2b2298d43d10ed50bdf9d718db24</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;same place as you would do with the in and outputs&lt;/p&gt;
&lt;p&gt;I tend to put them all global so i can see and change them anywhere.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to use memorylocation %m</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/78b7ab8c1a/?limit=25#6d4e" rel="alternate"/><published>2020-02-27T22:54:41.599000Z</published><updated>2020-02-27T22:54:41.599000Z</updated><author><name>sarathbabu</name><uri>https://forge.codesys.com/u/sarathbabu/</uri></author><id>https://forge.codesys.com6090f4613ec03f3890773274373b9ae26dd3938b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
      Can any give me an example of how %M is used in the program,means where I have to declare this ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>