<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PLC Project CPU @ 99%</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/418d551269/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/418d551269/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/418d551269/</id><updated>2020-02-27T16:09:25.494000Z</updated><subtitle>Recent posts to PLC Project CPU @ 99%</subtitle><entry><title>PLC Project CPU @ 99%</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/418d551269/?limit=25#b9a3" rel="alternate"/><published>2020-02-27T16:09:25.494000Z</published><updated>2020-02-27T16:09:25.494000Z</updated><author><name>Araforn</name><uri>https://forge.codesys.com/u/araforn/</uri></author><id>https://forge.codesys.com9cedfbd12544219b36d9eaf66cc4f91f7490053b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
on which Pi is this running?&lt;br/&gt;
PIB, PIB+ , P2 or PI3?&lt;br/&gt;
Think I need the project to check details.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks for the reply Edwin. Its a RPi3.&lt;/p&gt;
&lt;p&gt;I have checked some more and can see the cycle time was taking much longer when I open the trend screen. &lt;br/&gt;
I found the issue after this where i had set the MAIN task to freewheeling for some tests but never changed it back to cyclic.&lt;/p&gt;
&lt;p&gt;Performance is much improved now after changing back to cyclic however CPU is high still on the PI when I enter the Trend screen. See below.&lt;br/&gt;
PLC Load average is low though as this screen is only accessed on occasion. Any clear explanation why freewheeing would cause the original issue?.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Less CPU Usage After changing from freewheeling to cyclic.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3516"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PLC Project CPU @ 99%</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/418d551269/?limit=25#929e" rel="alternate"/><published>2020-02-27T16:09:24.683000Z</published><updated>2020-02-27T16:09:24.683000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comeb363497adf1f1f98c9fd05035c015c1ea1d73f4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
on which Pi is this running?&lt;br/&gt;
PIB, PIB+ , P2 or PI3?&lt;/p&gt;
&lt;p&gt;Think I need the project to check details.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PLC Project CPU @ 99%</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/418d551269/?limit=25#6dfe" rel="alternate"/><published>2020-02-27T16:09:22.355000Z</published><updated>2020-02-27T16:09:22.355000Z</updated><author><name>Araforn</name><uri>https://forge.codesys.com/u/araforn/</uri></author><id>https://forge.codesys.comc6d87634c1fddc2fec023735a4f1cb639c739de2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All/Edwin,&lt;/p&gt;
&lt;p&gt;I'm working on a Home automation control project and have started to notice considerable slowdown, specifically when I view trends which are monitoring 9 variables at the moment.&lt;/p&gt;
&lt;p&gt;Looking at direct monitoring side by side on the PI and in codesys Runtime you can see the high CPU usage on this screen. It result in up to 5 seconds delay when updating.&lt;br/&gt;
This is confirmed by checking the shell command for PLC Load. Also pictured below. &lt;/p&gt;
&lt;p&gt;Is my application getting too big for the Pi or is there something I can do to improve this?. I notice Codesys is using only 1 core. Is it possible to use more?. Would overclocking help?. Just want to look at all options before updating hardware.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PLC Load High.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3503"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: High CPU Usage.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3502"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>