<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Force external variables to be defined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dc60dffa77/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dc60dffa77/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/dc60dffa77/</id><updated>2022-01-05T12:55:42.698000Z</updated><subtitle>Recent posts to Force external variables to be defined</subtitle><entry><title>Force external variables to be defined</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/dc60dffa77/?limit=25#4282" rel="alternate"/><published>2022-01-05T12:55:42.698000Z</published><updated>2022-01-05T12:55:42.698000Z</updated><author><name>the-program</name><uri>https://forge.codesys.com/u/the-program/</uri></author><id>https://forge.codesys.com0957d19e222ed2dd1ea529fcdeb377f48d124162</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In the manual describing the definition of &lt;a class="" href="https://https://help.codesys.com/webapp/_cds_vartypes_var_external;product=codesys;version=3.5.17.0" rel="nofollow"&gt;VAR_EXTERNAL&lt;/a&gt; we have the following part.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Hint&lt;/span&gt;

&lt;span class="n"&gt;CODESYS&lt;/span&gt; &lt;span class="n"&gt;does&lt;/span&gt; &lt;span class="k"&gt;not&lt;/span&gt; &lt;span class="n"&gt;require&lt;/span&gt; &lt;span class="n"&gt;you&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="k"&gt;declare&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="k"&gt;global&lt;/span&gt; &lt;span class="k"&gt;variable&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="k"&gt;external&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="k"&gt;order&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;use&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="n"&gt;POU&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="n"&gt;The&lt;/span&gt; &lt;span class="n"&gt;keyword&lt;/span&gt; &lt;span class="k"&gt;exists&lt;/span&gt; &lt;span class="k"&gt;only&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;maintaining&lt;/span&gt; &lt;span class="n"&gt;compliance&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="n"&gt;IEC&lt;/span&gt; &lt;span class="mi"&gt;61131&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Since I don't like this behavior (produces bad habits in my opinion) i was wondering if it is possible to turn off this behavior and use VAR_EXTERNAL as intended by IEC 61131-3.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>