<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/</id><updated>2020-03-18T05:54:58.779000Z</updated><subtitle>Recent posts to How to disable the VISU task in 'runtime' ?</subtitle><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#ecf1" rel="alternate"/><published>2020-03-18T05:54:58.779000Z</published><updated>2020-03-18T05:54:58.779000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7c9f1c16b2c13cb157f53aba076b1dbadc6b8723</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hm... maybe using Multicore on Control Win &lt;br/&gt;
&lt;a href="https://store.codesys.com/codesys-control-win-mc-sl.html" rel="nofollow"&gt;https://store.codesys.com/codesys-control-win-mc-sl.html&lt;/a&gt;&lt;br/&gt;
might then improve the situation but I'm not sure,&lt;br/&gt;
maybe you should give this a try. &lt;br/&gt;
The bad thing is even for trying it you need a multicore license.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#2160/921d" rel="alternate"/><published>2020-03-17T22:50:12.756000Z</published><updated>2020-03-17T22:50:12.756000Z</updated><author><name>alrcastro</name><uri>https://forge.codesys.com/u/alrcastro/</uri></author><id>https://forge.codesys.com8ab885d95a64b1255fb51d1b38e88146e1bf816a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="n"&gt;sounds&lt;/span&gt; &lt;span class="k"&gt;like&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;plc&lt;/span&gt; &lt;span class="n"&gt;needs&lt;/span&gt; &lt;span class="n"&gt;better&lt;/span&gt; &lt;span class="n"&gt;realtime&lt;/span&gt; &lt;span class="n"&gt;capabilites&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Cannot agree at all, without running the Visu task the PC seems pretty well sized for the application; as mentioned above, the average task processing lies between 19-22us for a task whose cycle was defined as 1,000us, something very comfortable. The issue is the delay peaks resulting from Task Visu execution, something confirmed by the absence of these 400-500us artifacts whenever this task is disabled, so my conclusion is that Visu task is primarily intended to be used with simplest PLC applications, such as interlock or any other for which timming is not so critical in the range of miliseconds.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;an&lt;/span&gt; &lt;span class="k"&gt;option&lt;/span&gt; &lt;span class="n"&gt;would&lt;/span&gt; &lt;span class="n"&gt;be&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;switch&lt;/span&gt; &lt;span class="k"&gt;to&lt;/span&gt; &lt;span class="n"&gt;Control&lt;/span&gt; &lt;span class="n"&gt;RTE&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Unfortunately, Codesys in the RTE variant took all the processing from the other applications running on the PC, turned them almost frozen. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Which&lt;/span&gt; &lt;span class="n"&gt;plc&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="o"&gt;?&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The "CODESYS Control Win SL", it was the one that best fit both worlds, evenly distributing processing among the PLC runtime, and the applications running under SO.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#2160" rel="alternate"/><published>2020-03-11T20:00:45.558000Z</published><updated>2020-03-11T20:00:45.558000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comd2de615b1d744675868e963e6b7c3d12039a1d4a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
for me it sounds like your plc needs better realtime capabilites ;-) ?&lt;br/&gt;
Then these kind of problems should not occure.&lt;br/&gt;
Which plc is it?&lt;br/&gt;
If it is Control Win ( think you have mentioned this in an older post, not sure) an option would be to switch to Control RTE?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#e121" rel="alternate"/><published>2020-03-11T13:38:08.593000Z</published><updated>2020-03-11T13:38:08.593000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com41bf1f803af98478a8c64ae8c01c6e6a060f9eeb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;this can be achieved in a much easier way.&lt;/p&gt;
&lt;p&gt;You can start the webserver without having a visualization (or a webvisu below the visu manager).&lt;br/&gt;
Therefore you have to adjust the configuration (CODESYSControl.cfg).&lt;/p&gt;
&lt;p&gt;Check out the section CmpWebServer.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[CmpWebServer]&lt;/span&gt;
&lt;span class="c1"&gt;;The handling of startup/shutdown of the webserver:&lt;/span&gt;
&lt;span class="c1"&gt;;0-&amp;gt;automatically start, shutdown only on shutdown of the runtime;1-&amp;gt;automatically start, could be shutdown on demand&lt;/span&gt;
&lt;span class="c1"&gt;;2(default)-&amp;gt;start/shutdown on demand;3-&amp;gt;start on demand, shutdown only on shutdown of the runtime&lt;/span&gt;
&lt;span class="c1"&gt;;StartupType=2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For your use case you simple set StartupType=0 like this&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[CmpWebServer]&lt;/span&gt;
&lt;span class="na"&gt;StartupType&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;With this you do not need a visualization, it will reduce your application size and still the webserver is always running.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#e00c" rel="alternate"/><published>2020-03-11T07:00:40.961000Z</published><updated>2020-03-11T07:00:40.961000Z</updated><author><name>marci4</name><uri>https://forge.codesys.com/u/marci4/</uri></author><id>https://forge.codesys.com6607b18b7fe9ef9835e354b3fd6de80c7cf1f32f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;this can be achieved in a much easier way.&lt;/p&gt;
&lt;p&gt;You can start the webserver without having a visualization (or a webvisu below the visu manager).&lt;br/&gt;
Therefore you have to adjust the configuration (CODESYSControl.cfg).&lt;/p&gt;
&lt;p&gt;Check out the section CmpWebServer.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[CmpWebServer]&lt;/span&gt;
&lt;span class="c1"&gt;;The handling of startup/shutdown of the webserver:&lt;/span&gt;
&lt;span class="c1"&gt;;0-&amp;gt;automatically start, shutdown only on shutdown of the runtime;1-&amp;gt;automatically start, could be shutdown on demand&lt;/span&gt;
&lt;span class="c1"&gt;;2(default)-&amp;gt;start/shutdown on demand;3-&amp;gt;start on demand, shutdown only on shutdown of the runtime&lt;/span&gt;
&lt;span class="c1"&gt;;StartupType=2&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;For your use case you simple set StartupType=0 like this&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[CmpWebServer]&lt;/span&gt;
&lt;span class="na"&gt;StartupType&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;With this you do not need a visualization, it will reduce your application size and still the webserver is always running.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#8231" rel="alternate"/><published>2020-03-11T01:19:29.033000Z</published><updated>2020-03-11T01:19:29.033000Z</updated><author><name>alrcastro</name><uri>https://forge.codesys.com/u/alrcastro/</uri></author><id>https://forge.codesys.com2a4e0baf4d4541fade36d451823033d7213707c6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;span&gt;[&lt;strong&gt;&lt;em&gt; Could you please describe why you would like to do such a thing? &lt;/em&gt;&lt;/strong&gt;]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Because the Visu task is not necessary to run everytime, it is a mere webserver, and sometimes the task ehxibit a sudden peak in the processing time, from 19-22us to something around 400-500us, dangerously too close from the Task cycle - which is  close 1,000us. &lt;/p&gt;
&lt;p&gt;BTW, I was able to solve the issue charmly by using both the following functions, either to start or to stop the task:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;        &lt;span class="n"&gt;CmpIecTask&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IecTaskDisableScheduling&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;hIecTask&lt;/span&gt;   &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;  &lt;span class="n"&gt;hLastTask&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;                
        &lt;span class="n"&gt;CmpIecTask&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;IecTaskEnableScheduling&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="n"&gt;hIecTask&lt;/span&gt;    &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;  &lt;span class="n"&gt;hLastTask&lt;/span&gt; &lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#b781" rel="alternate"/><published>2020-03-10T07:04:04.448000Z</published><updated>2020-03-10T07:04:04.448000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.com34de79b40cd642d066b48aa9f995b912211b057d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
in the visu task all the calculations required to paint the visualization.&lt;br/&gt;
You should never suspend this task! Otherwise you can get into a lot of problems (e.g. during download/online change).&lt;/p&gt;
&lt;p&gt;Could you please describe why you would like to do such a thing?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to disable the VISU task in 'runtime' ?</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/79539c3467/?limit=25#68fa" rel="alternate"/><published>2020-03-09T23:18:21.972000Z</published><updated>2020-03-09T23:18:21.972000Z</updated><author><name>alrcastro</name><uri>https://forge.codesys.com/u/alrcastro/</uri></author><id>https://forge.codesys.come91950180befd4bddaf2d6040b14da6b92c67c9a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a project which consists of 2 'standard'  &lt;strong&gt;PRG&lt;/strong&gt; tasks, and 1 additional task called as "&lt;strong&gt;&lt;em&gt;VisuElements.VisuPrg&lt;/em&gt;&lt;/strong&gt;".&lt;/p&gt;
&lt;p&gt;If I wanted to disable for example the first 2 tasks above, it could be easily accomplished with a flag within an &lt;strong&gt;IF...ELSE&lt;/strong&gt; control logic.&lt;/p&gt;
&lt;p&gt;However, it is not clear how to interact with the Visual task programmatically, I mean, is there any procedure in the IEC library with which I can handle Tasks (e.g: exit, pause, resume, etc...) ?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>