<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Explicitly setting the threadcount for ControlWin x64 PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9705434404/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9705434404/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/9705434404/</id><updated>2020-07-23T23:35:22.399000Z</updated><subtitle>Recent posts to Explicitly setting the threadcount for ControlWin x64 PLC</subtitle><entry><title>Explicitly setting the threadcount for ControlWin x64 PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9705434404/?limit=250#adb7" rel="alternate"/><published>2020-07-23T23:35:22.399000Z</published><updated>2020-07-23T23:35:22.399000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.comfb06e16b682f1121b1db3d8f8cae7b155f946e11</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have found the way to do bind the softPLC to a specific CPU Core (actually a thread)&lt;br/&gt;
Find the directory where your ControlWin x64 instance runs, which is something like;&lt;/p&gt;
&lt;p&gt;C:\ProgramData\CODESYS\CODESYSControlWinV3x64\F11FFF3A&lt;/p&gt;
&lt;p&gt;Now open the CODESYSControl.cfg and search for the following section &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysCpuMultiCore]&lt;/span&gt;
&lt;span class="c1"&gt;;BindProcess.CoreID=-1&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now uncomment line which says: BindProcess.CoreID=-1&lt;br/&gt;
or edit it like I did so you can always undo the change quickly;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysCpuMultiCore]&lt;/span&gt;
&lt;span class="c1"&gt;;BindProcess.CoreID=-1&lt;/span&gt;
&lt;span class="na"&gt;BindProcess.CoreID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0 ;the PLC explicitly runs on core 0 (the first core/thread)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Which results after a restart of ControlWin x64 in;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;Number&lt;/span&gt; &lt;span class="nv"&gt;of&lt;/span&gt; &lt;span class="nv"&gt;licensed&lt;/span&gt; &lt;span class="nv"&gt;cores&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;IEC&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;tasks&lt;/span&gt;: &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="nv"&gt;from&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Entry&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nv"&gt;Number&lt;/span&gt; &lt;span class="nv"&gt;of&lt;/span&gt; &lt;span class="nv"&gt;available&lt;/span&gt; &lt;span class="nv"&gt;cores&lt;/span&gt;: &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;Entry&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nv"&gt;MultiCore&lt;/span&gt; &lt;span class="nv"&gt;support&lt;/span&gt;: [&lt;span class="nv"&gt;deactivated&lt;/span&gt;], &lt;span class="nv"&gt;process&lt;/span&gt; &lt;span class="nv"&gt;is&lt;/span&gt; &lt;span class="nv"&gt;bound&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;core&lt;/span&gt; 
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;So now the SoftPLC isn't hogging threads anymore. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Explicitly setting the threadcount for ControlWin x64 PLC</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/9705434404/?limit=250#4ecb" rel="alternate"/><published>2020-07-22T23:06:16.475000Z</published><updated>2020-07-22T23:06:16.475000Z</updated><author><name>aliazzz</name><uri>https://forge.codesys.com/u/aliazzz/</uri></author><id>https://forge.codesys.comd2064b30699a2ae39d943c43e76c177ec580d245</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I wanted to know if it possible to limit the default thread count used when running the ControlWin x64 PLC? At this time it hogging my all available (per default) threads. Can this be overridden somehow?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>