<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Detect the state change from STOP to RUN</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/</id><updated>2020-02-27T14:27:10.527000Z</updated><subtitle>Recent posts to Detect the state change from STOP to RUN</subtitle><entry><title>Detect the state change from STOP to RUN</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/?limit=25#c4a1" rel="alternate"/><published>2020-02-27T14:27:10.527000Z</published><updated>2020-02-27T14:27:10.527000Z</updated><author><name>FRI</name><uri>https://forge.codesys.com/u/fri/</uri></author><id>https://forge.codesys.coma5292dbdc190461ad67f8f7b3ae00f4a27d224ff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the explanations !&lt;/p&gt;
&lt;p&gt;I tried in my project but I have a library problem so I can not go to the end of my tests on this topic.&lt;/p&gt;
&lt;p&gt;Thanks again e.kislov&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detect the state change from STOP to RUN</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/?limit=25#7327" rel="alternate"/><published>2020-02-27T14:27:10.087000Z</published><updated>2020-02-27T14:27:10.087000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.com67bf6757bfbe846935782296f3cac8b8e22aa704</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Event Handler - it's just a way to create user function which calls after some event.&lt;br/&gt;
Just set event "Start Done" and enter name to create new function. Then add in this function your code.&lt;br/&gt;
This function will be calls everytime when project is started.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://help.codesys.com/webapp/_cds_obj_task_config_sys_event;product=codesys;version=3.5.13.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_ob ... n=3.5.13.0&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detect the state change from STOP to RUN</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/?limit=25#3e71" rel="alternate"/><published>2020-02-27T14:27:08.850000Z</published><updated>2020-02-27T14:27:08.850000Z</updated><author><name>FRI</name><uri>https://forge.codesys.com/u/fri/</uri></author><id>https://forge.codesys.com02cc40ff812096ff732bc0fe6926d5812fb2110a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the reply.&lt;/p&gt;
&lt;p&gt;I did not know the Event Handler.&lt;/p&gt;
&lt;p&gt;Can you please give me an example of use?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detect the state change from STOP to RUN</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/?limit=25#8b7d" rel="alternate"/><published>2020-02-27T14:27:08.417000Z</published><updated>2020-02-27T14:27:08.417000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.com237e155eb96f24d359e7932ac09e88660d041cf1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. See attached picture.&lt;/p&gt;
&lt;p&gt;Be aware, you should create a new function in this menu (don't try to call function which you already have).&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: 28" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3936"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Detect the state change from STOP to RUN</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/87ef950a60/?limit=25#e2a8" rel="alternate"/><published>2020-02-27T14:27:07.987000Z</published><updated>2020-02-27T14:27:07.987000Z</updated><author><name>FRI</name><uri>https://forge.codesys.com/u/fri/</uri></author><id>https://forge.codesys.com5d7306cc36c1ca85d850be7f9795f108e7a6a53b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;I am a PLC programmer for 10 years but I am new in the programming of Codesys and I use the Codesys v3.5 SP12 patch 4 since 2 months.&lt;/p&gt;
&lt;p&gt;I have an EXOR device that integrates both the HMI controller and the PLC controller.&lt;/p&gt;
&lt;p&gt;I'm trying to find a way to detect each time the controller is set to RUN (not only when the device is turned on)&lt;/p&gt;
&lt;p&gt;Does someone have an idea ? &lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>