<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Different behavior between the "Start" button in the IDE and the Cmp function "AppStartApplication()"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1847290c3f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1847290c3f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/1847290c3f/</id><updated>2024-03-22T10:00:37.612000Z</updated><subtitle>Recent posts to Different behavior between the "Start" button in the IDE and the Cmp function "AppStartApplication()"</subtitle><entry><title>Different behavior between the "Start" button in the IDE and the Cmp function "AppStartApplication()"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1847290c3f/?limit=25#08f4" rel="alternate"/><published>2024-03-22T10:00:37.612000Z</published><updated>2024-03-22T10:00:37.612000Z</updated><author><name>markushunter</name><uri>https://forge.codesys.com/u/markushunter/</uri></author><id>https://forge.codesys.com93fbbcb4a0aea4618a60bf6165ae88be7deddc0c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;One workaround is to create a second application which is started after the rested of the main application.&lt;br/&gt;
The second application starts the main application after time x and is rest after done start of the main application.&lt;/p&gt;
&lt;p&gt;No problems during the fieldbus re-start by this workaround.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Different behavior between the "Start" button in the IDE and the Cmp function "AppStartApplication()"</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1847290c3f/?limit=25#9241" rel="alternate"/><published>2024-03-20T13:52:14.683000Z</published><updated>2024-03-20T13:52:14.683000Z</updated><author><name>markushunter</name><uri>https://forge.codesys.com/u/markushunter/</uri></author><id>https://forge.codesys.comf0612f0cf4ba729c5bc2c5a251702c18c648b4e5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In our application with CODESYS V3.5 SP19 Patch 5 and the Soft-PLC&lt;/p&gt;
&lt;p&gt;Name: CODESYS Control Win V3 x64&lt;br/&gt;
Typ: 4096&lt;br/&gt;
ID: 0000 0004&lt;br/&gt;
Version: 3.5.19.50&lt;/p&gt;
&lt;p&gt;the application behaves differently when we start the application via &lt;code&gt;Cmp.AppStartApplication(pApp)&lt;/code&gt; than when we press the "Start" button in online mode in the IDE.&lt;br/&gt;
Unfortunately, it looks like the AppStartApplication() function, which is called in the "StopDone" system event, is not able to restart the fieldbus driver correctly, in our case the EtherNet_IP_Scanner:&lt;/p&gt;
&lt;p&gt;Name: EtherNet/IP Scanner&lt;br/&gt;
Hersteller: 3S - Smart Software Solutions GmbH&lt;br/&gt;
Kategorien: EtherNet/IP Scanner&lt;br/&gt;
Typ: 100&lt;br/&gt;
ID: 0000 100B&lt;br/&gt;
Version: 4.5.1.0&lt;br/&gt;
Bestellnummer: 1&lt;/p&gt;
&lt;p&gt;And one EtherNet/IP adapter &lt;/p&gt;
&lt;p&gt;Name: FANUC Robot R30iB Plus&lt;br/&gt;
Hersteller: FANUC Robotics America&lt;br/&gt;
Kategorien: EtherNet/IP Remote Adapter&lt;br/&gt;
Typ: 101&lt;br/&gt;
ID: 356_12_4_3&lt;br/&gt;
Version: Major Revision=16#3, Minor Revision = 16#1&lt;br/&gt;
Beschreibung: EtherNet/IP Target imported from EDS File: fanucrobot0301_r30ibp.eds Device: FANUC Robot R30iB Plus&lt;br/&gt;
Version Konfiguration 3.5.6.0&lt;/p&gt;
&lt;p&gt;The application was cold reset in both cases via &lt;code&gt;CmpApp.AppReset(pApp := pApp, usResetOption := CmpApp.RTS_RESET_COLD&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Does anyone know the difference between the functions or services executed by the "START" button in online mode and Cmp.AppStartApplication()?&lt;/p&gt;
&lt;p&gt;Thanks and best regards,&lt;/p&gt;
&lt;p&gt;markushunter&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>