<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Check if Codesys runtime is on 'Running' or 'Stopped' state?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01a1648bc0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01a1648bc0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/01a1648bc0/</id><updated>2024-07-02T18:10:06.871000Z</updated><subtitle>Recent posts to Check if Codesys runtime is on 'Running' or 'Stopped' state?</subtitle><entry><title>Check if Codesys runtime is on 'Running' or 'Stopped' state?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01a1648bc0/?limit=25#8615" rel="alternate"/><published>2024-07-02T18:10:06.871000Z</published><updated>2024-07-02T18:10:06.871000Z</updated><author><name>andre-luis</name><uri>https://forge.codesys.com/u/andre-luis/</uri></author><id>https://forge.codesys.com95e0420ae17d30c22ef7435ed191901d9e618c24</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Just to share, for those who as me are seeking for this and had found no information anywhere in this World: Every time I stop/start the PLC runtime ( turning into 'Stopped' or 'Running' state ) the 'CODESYSControlService' appears at the Taskmanager list, which could suggest a straight correlation:&lt;/p&gt;
&lt;p&gt;I was expecting a clever solution, but this one solves for while. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Check if Codesys runtime is on 'Running' or 'Stopped' state?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01a1648bc0/?limit=25#8052" rel="alternate"/><published>2024-07-02T15:01:07.031000Z</published><updated>2024-07-02T15:01:07.031000Z</updated><author><name>andre-luis</name><uri>https://forge.codesys.com/u/andre-luis/</uri></author><id>https://forge.codesys.com05a074f1adbd3df7f5e91a3b3752922d8d3716bc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It's already there, the service get started as default.&lt;br/&gt;
I missed to say that sometimes it happens w/o even the system get restarted.&lt;/p&gt;
&lt;p&gt;Anyway, the main issue here is to know the state of the runtime. We collect a lot of informations about the whole system, and it would be nice to have a way to detect the runtime state.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Check if Codesys runtime is on 'Running' or 'Stopped' state?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01a1648bc0/?limit=25#7a61" rel="alternate"/><published>2024-07-02T14:38:14.717000Z</published><updated>2024-07-02T14:38:14.717000Z</updated><author><name>mos89p</name><uri>https://forge.codesys.com/u/mos89p/</uri></author><id>https://forge.codesys.come2cb13453ab3e449a75f2b1a0bda3fa4c37b90f7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;why not put it on windows startup ? to start at each start&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Check if Codesys runtime is on 'Running' or 'Stopped' state?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/01a1648bc0/?limit=25#ecd1" rel="alternate"/><published>2024-07-02T12:01:45.516000Z</published><updated>2024-07-02T12:01:45.516000Z</updated><author><name>andre-luis</name><uri>https://forge.codesys.com/u/andre-luis/</uri></author><id>https://forge.codesys.com8ad7031be13de415db36c85e268a1af42fca7d17</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I'm running the Codesys runtime on Windows 64 and I need to know if it is on "Running" or "Stopped", just after a system crash. The following commands works perfectly well to (re)start it...&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;net stop “CODESYS Control Win V3 - x64"
net start “CODESYS Control Win V3 - x64"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;...however I'm unable to determine when it is required to be call; I mean, by checking the System Tray icon, it is possible to know if it is on "Stopped" state, but I wanted to run a .BAT command to retrieve it.&lt;/p&gt;
&lt;p&gt;How can we do that?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>