<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to running a project automaticlly</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/041010b5f7/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/041010b5f7/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/041010b5f7/</id><updated>2020-02-27T21:06:44.062000Z</updated><subtitle>Recent posts to running a project automaticlly</subtitle><entry><title>running a project automaticlly</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/041010b5f7/?limit=25#84aa" rel="alternate"/><published>2020-02-27T21:06:44.062000Z</published><updated>2020-02-27T21:06:44.062000Z</updated><author><name>Easy rider</name><uri>https://forge.codesys.com/u/easy-rider/</uri></author><id>https://forge.codesys.com2c6e801f0e849d0a8180c1971af3c88e68e354bb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You mean start up Codesys visualisation from your PC?&lt;/p&gt;
&lt;p&gt;You can do this by making a VBscript and putting it in the "start up" folder.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CODE]&lt;/span&gt;-------------------------------&lt;/p&gt;
&lt;p&gt;StrText = ("Start up program. Loading Codesys version 2 point 3.")&lt;br/&gt;
set objvoice = CreateObject ("SAPI.SpVoice")&lt;br/&gt;
objvoice.Volume = 100 &lt;br/&gt;
objvoice.Rate = 1 &lt;br/&gt;
objvoice.speak StrText&lt;/p&gt;
&lt;p&gt;Wscript.Sleep 1000&lt;/p&gt;
&lt;p&gt;Set objShell = Wscript.CreateObject("Wscript.Shell") &lt;br/&gt;
objShell.Run "path\to\file"&lt;/p&gt;
&lt;p&gt;Wscript.Sleep 7000&lt;br/&gt;
objShell.SendKeys "%{F8}"&lt;/p&gt;
&lt;p&gt;Wscript.Sleep 1000&lt;br/&gt;
objShell.SendKeys "{F5}"&lt;/p&gt;
&lt;p&gt;Wscript.Sleep 1000&lt;br/&gt;
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")&lt;br/&gt;
oAutoIt.MouseMove 10, 10&lt;/p&gt;
&lt;p&gt;Wscript.Quit&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[END_CODE]&lt;/span&gt;------------------------------------------&lt;/p&gt;
&lt;p&gt;"path\to\file" could be something like C:\program_files\S3\projects\test.pro&lt;/p&gt;
&lt;p&gt;Now put this text in a *.vbs file and you are ready&lt;/p&gt;
&lt;p&gt;You need to download "AutoItX3.Control" to move the mouse to the top left corner.&lt;/p&gt;
&lt;p&gt;My script also talks to you   .&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>running a project automaticlly</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/041010b5f7/?limit=25#77d1" rel="alternate"/><published>2020-02-27T21:06:40.062000Z</published><updated>2020-02-27T21:06:40.062000Z</updated><author><name>spfeif</name><uri>https://forge.codesys.com/u/spfeif/</uri></author><id>https://forge.codesys.comc250d5d993c8e4dc425369a7f15a4fcb63b23366</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Do you mean on the target PLC? It depends on the PLC and architecture. Some PLC's don't have ram space available so the program is immediately sent to non-volatile  memory and automatically starts after you have started the program with CoDeSys. using Online-&amp;gt; Run or F5.&lt;/p&gt;
&lt;p&gt;Other PLC's have ram and when you download the application is only temporarily stored in Ram memory that is volatile (lost) if you power cycle the PLC. For these PLC systems you have to perform a few steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download application.&lt;/li&gt;
&lt;li&gt;Go to menu Online-&amp;gt;Create Boot Project (this pushes the application into non-volatile (Saved) memory).&lt;/li&gt;
&lt;li&gt;Press F5 or Online-&amp;gt; Run.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry><entry><title>running a project automaticlly</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/041010b5f7/?limit=25#7cab" rel="alternate"/><published>2020-02-27T21:06:38.557000Z</published><updated>2020-02-27T21:06:38.557000Z</updated><author><name>malbec</name><uri>https://forge.codesys.com/u/malbec/</uri></author><id>https://forge.codesys.comcdac3a0e757ab5905c196e4107ddcb9769ff33f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;but that will open it in edit mode, right?&lt;br/&gt;
I want that the project will get to "run" mode automatically&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>running a project automaticlly</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/041010b5f7/?limit=25#3198" rel="alternate"/><published>2020-02-27T21:06:34.427000Z</published><updated>2020-02-27T21:06:34.427000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com7f2817310558e1c29a515a8973a6ea8f1d723d55</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;put a coupling in the startup directory of the computer.&lt;/p&gt;
&lt;p&gt;something like codesys c:\prog\prog.pro&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>running a project automaticlly</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/041010b5f7/?limit=25#6888" rel="alternate"/><published>2020-02-27T21:06:32.964000Z</published><updated>2020-02-27T21:06:32.964000Z</updated><author><name>malbec</name><uri>https://forge.codesys.com/u/malbec/</uri></author><id>https://forge.codesys.com235b246f7289e04138b419204eaf0dd7fcc7c13d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;br/&gt;
I have created a project and I want it to run automaticlly on powerup.&lt;br/&gt;
What do I need to do?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>