<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to APP can't start automatically when the PLC restart.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/686a950f63/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/686a950f63/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/686a950f63/</id><updated>2020-02-27T17:00:50.901000Z</updated><subtitle>Recent posts to APP can't start automatically when the PLC restart.</subtitle><entry><title>APP can't start automatically when the PLC restart.</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/686a950f63/?limit=25#e271" rel="alternate"/><published>2020-02-27T17:00:50.901000Z</published><updated>2020-02-27T17:00:50.901000Z</updated><author><name>zhanjun717</name><uri>https://forge.codesys.com/u/zhanjun717/</uri></author><id>https://forge.codesys.com425016ca4bda7ac6f8e2c66a3846ce6470deac30</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everybody! Recently, I encountered a difficult problem in the process of developing PLC in codesys. I really need your help.&lt;/p&gt;
&lt;p&gt;In my current PLC, I use CoDeSys V3.4 SP4 software. When I define "Retain. SRAM. Size" and "Retain. SRAM. Address" in the CFG file, I can start my APP normally during the system reboot process, but this configuration will make it impossible for me to obtain the address of IEC variables successfully through the "void&lt;em&gt; IecVarAccGetAddress 2" function provided by 3S. When these variables are defined in the CoDeSys program(ST) as global structure arrays under RETAIN, and when I specify "Retain.SRAM.Size" and "Retain.SRAM.Address" and "Retain.SRAM.AddressMapped" in the CFG file, I can correctly obtain the address of IEC variables from the bottom through the "void&lt;/em&gt; IecrAccGetAd2" function provided by 3S, When these variables are defined in the CoDeSys program(ST) as global structure arrays under RETAIN, But my APP can no longer start automatically.&lt;/p&gt;
&lt;p&gt;For this reason, my development has reached a deadlock, and I would like to ask for your help.&lt;/p&gt;
&lt;p&gt;The configuration of the " cfg" file:&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: question.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4262"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>