<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to BIT type in persistent memory</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3d55649af1/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3d55649af1/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/3d55649af1/</id><updated>2022-03-17T16:55:43.462000Z</updated><subtitle>Recent posts to BIT type in persistent memory</subtitle><entry><title>BIT type in persistent memory</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3d55649af1/?limit=50#c24e" rel="alternate"/><published>2022-03-17T16:55:43.462000Z</published><updated>2022-03-17T16:55:43.462000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.com29db8e74b4f9086a74da47bc8a0f40984e380c64</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In case anyone else runs into this problem, this is a bug in Schneider Electric's latest release of Machine Expert (v2.0.2)  BIT types can't be used in Persistent Variables&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>BIT type in persistent memory</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3d55649af1/?limit=50#e577" rel="alternate"/><published>2022-03-16T18:09:07.398000Z</published><updated>2022-03-16T18:09:07.398000Z</updated><author><name>tvm</name><uri>https://forge.codesys.com/u/tvm/</uri></author><id>https://forge.codesys.com266f4426ad4a25f0b240b0aac7f9f4dff3122f42</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a very basic program, consisting of a single structure in persistent memory:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;TYPE&lt;/span&gt; &lt;span class="nt"&gt;SETPOINTS&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt;
&lt;span class="nt"&gt;STRUCT&lt;/span&gt;
    &lt;span class="nt"&gt;Bit0&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;Bit1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;Bit2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;Bit3&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;Bit4&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;Bit5&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;Bit6&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
    &lt;span class="nt"&gt;Bit7&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;           &lt;span class="nt"&gt;BIT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_STRUCT&lt;/span&gt;                           
&lt;span class="nt"&gt;END_TYPE&lt;/span&gt;

&lt;span class="nt"&gt;PROGRAM&lt;/span&gt; &lt;span class="nt"&gt;SR_Main&lt;/span&gt;
&lt;span class="nt"&gt;VAR&lt;/span&gt; &lt;span class="nt"&gt;PERSISTENT&lt;/span&gt;
    &lt;span class="nt"&gt;Setpt&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;          &lt;span class="nt"&gt;SETPOINTS&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;

&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="err"&gt;attribute&lt;/span&gt; &lt;span class="err"&gt;'qualified_only'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nt"&gt;VAR_GLOBAL&lt;/span&gt; &lt;span class="nt"&gt;PERSISTENT&lt;/span&gt; &lt;span class="nt"&gt;RETAIN&lt;/span&gt;
    &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nt"&gt;Generated&lt;/span&gt; &lt;span class="nt"&gt;instance&lt;/span&gt; &lt;span class="nt"&gt;path&lt;/span&gt; &lt;span class="nt"&gt;of&lt;/span&gt; &lt;span class="nt"&gt;persistent&lt;/span&gt; &lt;span class="nt"&gt;variable&lt;/span&gt;
    &lt;span class="nt"&gt;SR_Main&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Setpt&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;SETPOINTS&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Is there any reason that a BIT type cannot be stored in persistent memory?  Any considerations for their use?  The program compiles fine, but hangs up during a download.  Remove the declaration from the PersistentVars GVL and it works fine.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>