<?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/259814aace/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/259814aace/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/259814aace/</id><updated>2024-03-20T13:52:11.656000Z</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/259814aace/?limit=25#fdf1" rel="alternate"/><published>2024-03-20T13:52:11.656000Z</published><updated>2024-03-20T13:52:11.656000Z</updated><author><name>markushunter</name><uri>https://forge.codesys.com/u/markushunter/</uri></author><id>https://forge.codesys.come248f9aca7ed8b0a877e99486e975c7a417a7a58</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>