<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Error code 4024</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/</id><updated>2020-02-27T13:49:11.939000Z</updated><subtitle>Recent posts to Error code 4024</subtitle><entry><title>Error code 4024</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/?limit=25#febd" rel="alternate"/><published>2020-02-27T13:49:11.939000Z</published><updated>2020-02-27T13:49:11.939000Z</updated><author><name>garybolton2014</name><uri>https://forge.codesys.com/u/garybolton2014/</uri></author><id>https://forge.codesys.com65a6af6256b7f48fd6defcb0a8cc010f3d14bb0b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Singleton&lt;/p&gt;
&lt;p&gt;I'll re-write and see how it goes&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error code 4024</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/?limit=25#2923" rel="alternate"/><published>2020-02-27T13:49:11.829000Z</published><updated>2020-02-27T13:49:11.829000Z</updated><author><name>singleton</name><uri>https://forge.codesys.com/u/singleton/</uri></author><id>https://forge.codesys.com8dc52bde5ff88e19c18205f8e17ba532418ea044</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
your declaration is not IEC compliant. Whitespaces are not allowed&lt;/p&gt;
&lt;p&gt;Wrong:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;garybolton2014 hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
PROGRAM PLC_PRG&lt;br/&gt;
VAR&lt;br/&gt;
    Trig1: R_TRIG;&lt;br/&gt;
    Trig 2: F_TRIG;&lt;br/&gt;
    Timer 1: TOF;&lt;br/&gt;
    Timer 2: TON;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Correct:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Trig1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;R_TRIG&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Trig_2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;F_TRIG&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Timer_1&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;TOF&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="nt"&gt;Timer_2&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;TON&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;/div&gt;</summary></entry><entry><title>Error code 4024</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/?limit=25#0fd7" rel="alternate"/><published>2020-02-27T13:49:11.742000Z</published><updated>2020-02-27T13:49:11.742000Z</updated><author><name>garybolton2014</name><uri>https://forge.codesys.com/u/garybolton2014/</uri></author><id>https://forge.codesys.comc283f4e56f845ae5f8bbb9992b9442801639bf8e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Cheers Scott&lt;br/&gt;
This is my first attempt at writing a program, following First Steps.......&lt;br/&gt;
Following this guide, i get to the last step prior to creating a visualization, which is called BUILD PROJECT using the F11 key and that brings me up the 3 errors.&lt;/p&gt;
&lt;p&gt;I have copied &amp;amp; pasted my lines of code.&lt;/p&gt;
&lt;p&gt;PROGRAM PLC_PRG&lt;br/&gt;
VAR&lt;br/&gt;
    Trig1: R_TRIG;&lt;br/&gt;
    Trig 2: F_TRIG;&lt;br/&gt;
    Timer 1: TOF;&lt;br/&gt;
    Timer 2: TON;&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;What is CFC?&lt;br/&gt;
As for my timers,&lt;br/&gt;
I Have nothing connected to the ET outputs on both my timers.&lt;br/&gt;
And the 2 PT inputs are addressed as T#5s but have remained PINK.  Is that normal?&lt;br/&gt;
Thanks for your help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error code 4024</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/?limit=25#8f00" rel="alternate"/><published>2020-02-27T13:49:11.640000Z</published><updated>2020-02-27T13:49:11.640000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com0691c5cbffcac0fb5a609943e97d286c53300393</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;I am not quite sure which section you are getting the error on ("First Steps..."), but my first guess is you missed the ":" in an assignment statement ("x := 2;", not "x = 2;").  Also, possibly to missed a ";" at the end of a previous line.  Goto the line of the code the compiler is complaining about and look at that line and a few previous to it.  If you are using CFC, then maybe a wire is not actually terminating at an input/output on a function block.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error code 4024</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5c4151e907/?limit=25#006b" rel="alternate"/><published>2020-02-27T13:49:11.529000Z</published><updated>2020-02-27T13:49:11.529000Z</updated><author><name>garybolton2014</name><uri>https://forge.codesys.com/u/garybolton2014/</uri></author><id>https://forge.codesys.com60bc7d9514d56c5521097733e959d0df3ff45f6f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;THis is my first week Programming PLC's and i'm working through the First Steps with CoDeSys.&lt;br/&gt;
It all seems to go fine until i try to Build the Project, which brings me up multiply errors with the same code,&lt;br/&gt;
Error 4024: PLC_PRG (4): Expecting ":" before "2" as an example.&lt;br/&gt;
Now im using the latest software and the instructions are Dated 2004.&lt;br/&gt;
I imagine the software has been updated numerous times since the instrutions where last updated.&lt;br/&gt;
Could this be where its all going wrong?&lt;br/&gt;
Any help would be much appreciated.&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>