<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Error C0297 when trying to simulate PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/</id><updated>2023-05-15T10:14:42.450000Z</updated><subtitle>Recent posts to Error C0297 when trying to simulate PLC</subtitle><entry><title>Error C0297 when trying to simulate PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/?limit=25#8924" rel="alternate"/><published>2023-05-15T10:14:42.450000Z</published><updated>2023-05-15T10:14:42.450000Z</updated><author><name>manuelpineda</name><uri>https://forge.codesys.com/u/manuelpineda/</uri></author><id>https://forge.codesys.com6b223dd184f4f58060681b5054633bbdd860ea50</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am having the same issue when trying to add Mqtt libraries to my project. This message error appear only when generating code or simulating.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[ERROR]&lt;/span&gt;         C0297:  Stack overflow detected in MQTT_CONTROL (PLC_PRG()-&amp;gt;HowTo()-&amp;gt;MqttClient()-&amp;gt;MQTT_CONTROL()-&amp;gt;STRING_TO_URL())&lt;/p&gt;
&lt;p&gt;Has anyone experienced something similar? It would be great if someone can help.&lt;br/&gt;
Many thanks,&lt;br/&gt;
Manuel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error C0297 when trying to simulate PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/?limit=25#91b1" rel="alternate"/><published>2022-12-09T22:22:04.462000Z</published><updated>2022-12-09T22:22:04.462000Z</updated><author><name>a-simone</name><uri>https://forge.codesys.com/u/a-simone/</uri></author><id>https://forge.codesys.com1e5c90e3739e755fef53f1dc338296577902f34b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Same problem also for me.&lt;br/&gt;
V3.5 SP11&lt;br/&gt;
&lt;span&gt;[...]&lt;/span&gt;              &lt;br/&gt;
                generate relocations ...&lt;br/&gt;
&lt;span&gt;[ERROR]&lt;/span&gt;         C0297:  Stack overflow detected in get__time (CANopenManager.BeforeReadInputs()-&amp;gt;CANopenManager.IoDrvStartBusCycle()-&amp;gt;CANopenManager.CheckLicense()-&amp;gt;OLM_OnlineLicenseManager.GetLicenseValue()-&amp;gt;OLM_OnlineLicenseManager.GetPureLicenseValue()-&amp;gt;SysTargetGetId()-&amp;gt;SysTargetGetType()-&amp;gt;RegisterLicenseFunctions()-&amp;gt;CMRegisterLicenseFunctions()-&amp;gt;LicenseFunctions.FB_INIT()-&amp;gt;OLM_OnlineLicenseManager.ReadLicenseFile()-&amp;gt;CMAddComponent()-&amp;gt;SysFileOpen()-&amp;gt;OLM_OnlineLicenseManager.LogErrorMessage()-&amp;gt;LogAdd2()-&amp;gt;OLM_OnlineLicenseManager.GenerateException()-&amp;gt;SysFileGetSizeByHandle()-&amp;gt;SysFileRead()-&amp;gt;OLM_OnlineLicenseManager.UdintValueOfLine()-&amp;gt;mySTRING_TO_UDINT()-&amp;gt;OLM_OnlineLicenseManager.ValueOfLine()-&amp;gt;LEN()-&amp;gt;FIND()-&amp;gt;LEFT()-&amp;gt;MID()-&amp;gt;RIGHT()-&amp;gt;LEN()-&amp;gt;SysFileClose()-&amp;gt;CONCAT()-&amp;gt;myUDINT_TO_STRING()-&amp;gt;OLM_OnlineLicenseManager.UdintValueOfLine()-&amp;gt;mySTRING_TO_UDINT()-&amp;gt;OLM_OnlineLicenseManager.ValueOfLine()-&amp;gt;LEN()-&amp;gt;FIND()-&amp;gt;LEFT()-&amp;gt;MID()-&amp;gt;RIGHT()-&amp;gt;LEN()-&amp;gt;OLM_OnlineLicenseManager.GetCodemeterLicenseValue()-&amp;gt;OLM_OnlineLicenseManager.StoreLicense()-&amp;gt;OLM_OnlineLicenseManager.GetDemoLicense()-&amp;gt;LogAdd2())&lt;br/&gt;
&lt;span&gt;[INFORMATION]&lt;/span&gt;   Size of generated code: 114816 bytes &lt;span&gt;[...]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The problem appear only in simulation mode.&lt;/p&gt;
&lt;p&gt;Someone solved this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error C0297 when trying to simulate PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/?limit=25#c1f6" rel="alternate"/><published>2022-06-13T09:16:33.560000Z</published><updated>2022-06-13T09:16:33.560000Z</updated><author><name>Robert Ingvarsson</name><uri>https://forge.codesys.com/u/robert-ing/</uri></author><id>https://forge.codesys.com136b0e6a7ede2299f3647875d72c2b3a20ff4e72</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Not really. But i suspect this is only a problem with the simulation.&lt;/p&gt;
&lt;p&gt;If you would like to run simulations i would probably just remove the canopen manager and test the program that way.&lt;/p&gt;
&lt;p&gt;My setup is complicated to fully simulate so i will switch over to running from the actual PLC in mid August to fully test things.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error C0297 when trying to simulate PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/?limit=25#1579" rel="alternate"/><published>2022-06-09T17:29:24.421000Z</published><updated>2022-06-09T17:29:24.421000Z</updated><author><name>ponderablepine</name><uri>https://forge.codesys.com/u/ponderablepine/</uri></author><id>https://forge.codesys.com2bdb5db93a06d1effc21c43480f50351bc155b0a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am experiencing the same issue - did either of you find a solution for this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error C0297 when trying to simulate PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/?limit=25#a1aa" rel="alternate"/><published>2022-04-29T03:43:34.220000Z</published><updated>2022-04-29T03:43:34.220000Z</updated><author><name>nobbysnuts</name><uri>https://forge.codesys.com/u/nobbysnuts/</uri></author><id>https://forge.codesys.com2dc7367405fe7305b6e3bcd2267849ec9fd1b63d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This same error has just started for me also, using V3.5 SP11.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error C0297 when trying to simulate PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/7dc754faee/?limit=25#dcba" rel="alternate"/><published>2022-04-27T11:58:53.111000Z</published><updated>2022-04-27T11:58:53.111000Z</updated><author><name>Robert Ingvarsson</name><uri>https://forge.codesys.com/u/robert-ing/</uri></author><id>https://forge.codesys.come1ba74638ea12c5ca4d285d13bd251417f84fe18</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, i seem to have an issue with canopen manager that causes an error when trying to simulate the PLC.&lt;/p&gt;
&lt;p&gt;When i press download the compliation occurs as the attached txt file.&lt;/p&gt;
&lt;p&gt;I recieve the error C0297 stack overflow that hinders me from downloading to the simulation PLC. If i remove the canopen manager i can download just fine to the simulation.&lt;/p&gt;
&lt;p&gt;I have a licence for "CODESYS CANopen Manager SL" installed on the PC but this problem seems to persist.&lt;/p&gt;
&lt;p&gt;I am running version 3.5 SP11.&lt;/p&gt;
&lt;p&gt;Would be very grateful for som guidence where the problem for all of this could be located!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>