<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Data Types and following variables comments</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcc19e721/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcc19e721/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4bcc19e721/</id><updated>2020-02-27T13:48:54.846000Z</updated><subtitle>Recent posts to Data Types and following variables comments</subtitle><entry><title>Data Types and following variables comments</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4bcc19e721/?limit=25#a36a" rel="alternate"/><published>2020-02-27T13:48:54.846000Z</published><updated>2020-02-27T13:48:54.846000Z</updated><author><name>Giova</name><uri>https://forge.codesys.com/u/giova/</uri></author><id>https://forge.codesys.com03951c398563252d2ed685b646b1890e88642409</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a question about creation a data unit type like below:&lt;br/&gt;
Data types:&lt;br/&gt;
TYPE DIn :&lt;br/&gt;
STRUCT&lt;br/&gt;
    In:INT;&lt;br/&gt;
    Flag:INT;&lt;br/&gt;
END_STRUCT&lt;br/&gt;
END_TYPE&lt;br/&gt;
If I declare a GlobalVariable like below:&lt;br/&gt;
VAR_GLOBAL&lt;br/&gt;
    I:DIn;&lt;br/&gt;
END_VAR&lt;br/&gt;
when in a POU I insert a BOOL derivate from this G.variable (i.e. I.Flag.0 or I.In.1 and so)&lt;br/&gt;
the comment that I assign to the bit doesn't be automatically assigned every time&lt;br/&gt;
the same bit is used.&lt;br/&gt;
The same issue happens with Dt composed by ARRAY of Bool.&lt;/p&gt;
&lt;p&gt;Thanks for your co operation&lt;br/&gt;
giova&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>