<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspi SL MC: Which core is used by OPC-UA server</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e42cf0bc59/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e42cf0bc59/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/e42cf0bc59/</id><updated>2020-12-16T13:46:13.865000Z</updated><subtitle>Recent posts to Raspi SL MC: Which core is used by OPC-UA server</subtitle><entry><title>Raspi SL MC: Which core is used by OPC-UA server</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e42cf0bc59/?limit=25#d5d6" rel="alternate"/><published>2020-12-16T13:46:13.865000Z</published><updated>2020-12-16T13:46:13.865000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.comd0c78360b67e8e4b4e37951e6cc43c28b988883b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ol&gt;
&lt;li&gt;With SP16 there was multicore introduced for OPC UA.  By default it works across all cores.&lt;br/&gt;
You can limit the number of cores it uses with this setting in the CODESYSControl_User.cfg file, where 1 is the number of cores you want to use.  Setting it to 0 or less will use all available cores:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[OPCUAServer]&lt;/span&gt;
&lt;span class="na"&gt;NumOfWorkerTasks&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I am not 100% sure though, which core it will run in.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Are you using an RT-preempt patch?  Normally the lower priority OPC UA task should be interrupted.  It is possible though, that some semaphore is used so that while it reads a function block, it cannot be interrupted.  You will have to test this.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;There is a setting if you right click the Device &amp;gt; Properties &amp;gt; Options. Called "Access variables in sync with IEC Tasks".  If ticked, the OPC UA stuff waits for a time when no IEC tasks are running, and then does its thing.  It doesn't let the IEC tasks run until it is finished.  The setting has a big warning about jitter on it, so check what it's value is.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry><entry><title>Raspi SL MC: Which core is used by OPC-UA server</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e42cf0bc59/?limit=25#2df9" rel="alternate"/><published>2020-12-09T15:11:16.364000Z</published><updated>2020-12-09T15:11:16.364000Z</updated><author><name>SEW1</name><uri>https://forge.codesys.com/u/sew1/</uri></author><id>https://forge.codesys.com0a57cb8e3d7a617431cc68aab184c3b114e670ff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;additional info: same problem with codesys 3.5.16.30 and raspi sl mc 4.0.0.0&lt;br/&gt;
Not only Jitter is affected, but the whole max task cycle time increases from 600 µs to 12 ms with the latest version.&lt;br/&gt;
the problem occurs when adding/browsing a large (&amp;gt;1 MB) structure with ua-expert. &lt;br/&gt;
I'm not surprised by the increase of the cycle time, I'm just wondering why it affects my highest-prio IEC-Tasks, while the system is running multicore and opc-ua should be using a different core.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspi SL MC: Which core is used by OPC-UA server</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e42cf0bc59/?limit=25#e1e5" rel="alternate"/><published>2020-12-09T09:52:57.491000Z</published><updated>2020-12-09T09:52:57.491000Z</updated><author><name>SEW1</name><uri>https://forge.codesys.com/u/sew1/</uri></author><id>https://forge.codesys.com0cc8bc900101ad1c771349ca1c1c2cda740689bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
I'm running Raspi 3.5.16.0 SL multicore with OPC-UA server functionality enabled. The image is equipped with preempt patch and fulfills all requirements for 2ms prio-task cycle time (jitter max 300 µs).&lt;br/&gt;
I defined 2 task groups, see picture attached. Hoping the OPC-UA functionality gets assigned to my Non-RT-Tasks group.&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/attachment.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;However, when an OPC-UA-client connects to my server, Max-Jitter explodes up to 5 ms. I suppose the OPC-server runs in also my IEC-Tasks group. How can i check or define the task, that executes my OPC-UA server?&lt;/p&gt;
&lt;p&gt;In this document (https://www.codesys.com/news-events/publications/article/with-the-power-of-many-cores-codesys-multicore-on-a-welding-system.html) you are talking of implicit generated tasks. For VISU_TASK this happens in my project. For OPC-UA I can't find any info.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>