<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/da4aead380/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/da4aead380/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/da4aead380/</id><updated>2020-02-27T19:02:44.725000Z</updated><subtitle>Recent posts to launch external application from codesys</subtitle><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#0b9d" rel="alternate"/><published>2020-02-27T19:02:44.725000Z</published><updated>2020-02-27T19:02:44.725000Z</updated><author><name>lkxcodesys</name><uri>https://forge.codesys.com/u/lkxcodesys/</uri></author><id>https://forge.codesys.com8e09b4915f9d6559ddad521f60b43981a180344c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, aes,&lt;br/&gt;
I tried with your macro code, but seems the path like what you wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
$PROJECT_DRIVE$$PROJECT_PATH$\$PROJECT_NAME$.exp&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It doesn't work.&lt;br/&gt;
I have to use absolute path.&lt;br/&gt;
Do you know how to fix it?&lt;/p&gt;
&lt;p&gt;On the other hand, do you have the macro command list of CoDeSys?&lt;br/&gt;
Because there is quite few information about macro in the manual.&lt;br/&gt;
For example, now I want to export just the Global Variables to EXP file.&lt;br/&gt;
But with my macro, my CoDeSys project always export the EXP file of the whole project.&lt;br/&gt;
Do you konw is there any way to get my need?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#008d" rel="alternate"/><published>2020-02-27T19:02:41.407000Z</published><updated>2020-02-27T19:02:41.407000Z</updated><author><name>aes</name><uri>https://forge.codesys.com/u/aes/</uri></author><id>https://forge.codesys.com6190944e8f279d58a400f76cb578599fde4a7c70</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can call a external program via the macro function during prebuild and post build:&lt;/p&gt;
&lt;p&gt;Project -&amp;gt; Options -&amp;gt; Macro&lt;br/&gt;
- Define marcos. I have to use absolute path:&lt;br/&gt;
call $PROJECT_DRIVE$$PROJECT_PATH$\macro\PostBuild_exp_copy_wdatetime.mac&lt;/p&gt;
&lt;p&gt;You can run a macro before and after build:&lt;br/&gt;
Project -&amp;gt; Options -&amp;gt; Build&lt;br/&gt;
Macro before build: prebuild.mac&lt;br/&gt;
Macro after Build: PostBuild_exp_copy_wdatetime.mac&lt;/p&gt;
&lt;p&gt;In the macro you can make system calls:&lt;br/&gt;
in my PostBuild.mac:&lt;/p&gt;
&lt;p&gt;;; this only copies the 2nd digit of the hour this will overwrite files -&amp;gt; %time:~1,1%&lt;br/&gt;
system copy $PROJECT_DRIVE$$PROJECT_PATH$\$PROJECT_NAME$.exp $PROJECT_DRIVE$$PROJECT_PATH$\$PROJECT_NAME$&lt;em&gt;%date:~-4,4%%date:~-10,2%%date:~-7,2%&lt;/em&gt;%time:~1,1%%time:~3,2%%time:~6,2%.exp&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#20f3" rel="alternate"/><published>2020-02-27T19:02:40.197000Z</published><updated>2020-02-27T19:02:40.197000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comf9fbe032d44c3b67da8b6dac6097801222948b56</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I do not have the realtime system. Sorry.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#95a2" rel="alternate"/><published>2020-02-27T19:02:36.581000Z</published><updated>2020-02-27T19:02:36.581000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com90622ca440f33bb21ab236e7f1396d394b37a390</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Stefano.Casarini&lt;/p&gt;
&lt;p&gt;I don't find any &lt;em&gt;.hex file.. can you send me the &lt;/em&gt;.hex file that i have to compile?In which folder i'd to find the *.hex file?&lt;/p&gt;
&lt;p&gt;regards &lt;/p&gt;
&lt;p&gt;Stefano&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#6f8b" rel="alternate"/><published>2020-02-27T19:02:35.342000Z</published><updated>2020-02-27T19:02:35.342000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comd07dd1322398df179cffed4e749a1bc5d43726f1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Check and make sure there is also a .hex file in the folder as well. It appears to be an external library instead of an internal library so it will need the compiled file.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#8526" rel="alternate"/><published>2020-02-27T19:02:34.021000Z</published><updated>2020-02-27T19:02:34.021000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com8be9e62b23bfeab6a32f356e287fb0d0e80f229f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Stefano.Casarini&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;my codesys runtime is for target winXP and in the folder of the available libraries (\Lib_NTRT) there isn't SysLibOs.lib.&lt;/p&gt;
&lt;p&gt;But SysLibOs.lib is in the folder \Lib_PLCWinNT so i add this library, use the function SysCreateprocess and build-all and it's ok but when i download the program to the target it shows the message "Unresolved external POU: SysCreateProcess _" &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Stefano&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#393b" rel="alternate"/><published>2020-02-27T19:02:30.660000Z</published><updated>2020-02-27T19:02:30.660000Z</updated><author><name>Andreas Kehrer</name><uri>https://forge.codesys.com/u/andreas-kehrer/</uri></author><id>https://forge.codesys.com60f1620080b65218e9485859d294a3a096491c8f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, it's possible. Please have a look to the SysProcess.library (V3) or the SysLibOs.lib (V2) library. You can start an application from your IEC code by calling the  function SysProcessCreate2 (V3) or  SysCreateProcess (V2).&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>launch external application from codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/da4aead380/?limit=25#3132" rel="alternate"/><published>2020-02-27T19:02:29.474000Z</published><updated>2020-02-27T19:02:29.474000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com8e57fbe9611e0f066cba1100decb57ec53d1fb0d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Stefano.Casarini&lt;/p&gt;
&lt;p&gt;I need to launch and run after codesys bootproject a visual basic project.exe:&lt;/p&gt;
&lt;p&gt;Is possible to launch by codesys an external program for example ".exe" of visual basic?? &lt;/p&gt;
&lt;p&gt;Regars&lt;/p&gt;
&lt;p&gt;Stefano&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>