<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to warning C0195</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/34f0484c90/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/34f0484c90/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/34f0484c90/</id><updated>2025-11-20T07:49:16.777000Z</updated><subtitle>Recent posts to warning C0195</subtitle><entry><title>warning C0195</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/34f0484c90/?limit=25#0d25" rel="alternate"/><published>2025-11-20T07:49:16.777000Z</published><updated>2025-11-20T07:49:16.777000Z</updated><author><name>gatto</name><uri>https://forge.codesys.com/u/gatto/</uri></author><id>https://forge.codesys.comb0da927cf3e272a491c9c522740f45d9cf56fe7d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I answer myself:&lt;br/&gt;
 xyz : ARRAY &lt;span&gt;[1..10]&lt;/span&gt; OF BYTE := &lt;span&gt;[10(BYTE#100)]&lt;/span&gt; ; // no warning :-)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>warning C0195</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/34f0484c90/?limit=25#f3f5" rel="alternate"/><published>2025-11-20T07:24:51.722000Z</published><updated>2025-11-20T07:24:51.722000Z</updated><author><name>gatto</name><uri>https://forge.codesys.com/u/gatto/</uri></author><id>https://forge.codesys.com77e18b2c6a4bba5a8f342b3bad64cd021f3c6975</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good morning dear codesys users.&lt;br/&gt;
I'm using 3.5.20.40 and I get this warning C0195 when I assign an initial value to xyz.&lt;br/&gt;
However, if I do it on a single byte (abc), it doesn't display any warning.&lt;br/&gt;
Why?&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;VAR_GLOBAL&lt;/span&gt;
    &lt;span class="n"&gt;abc&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;BYTE&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;xyz&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;ARRAY&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;..&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="kr"&gt;OF&lt;/span&gt; &lt;span class="kt"&gt;BYTE&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt; &lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;END_VAR&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry></feed>