<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/</id><updated>2025-10-23T14:02:01.110000Z</updated><subtitle>Recent posts to High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</subtitle><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#5252" rel="alternate"/><published>2025-10-23T14:02:01.110000Z</published><updated>2025-10-23T14:02:01.110000Z</updated><author><name>alimans</name><uri>https://forge.codesys.com/u/alimans/</uri></author><id>https://forge.codesys.com74d702e983063731da5b08aad0fde6c199cd6797</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Manuknecht,&lt;br/&gt;
Did you manage to solve the problem?&lt;br/&gt;
I’m facing the same issue with Windows RTE SoftMotion — it works fine as long as nothing else is open in Windows, but as soon as I start another application, the EtherCAT DC time and max jitter values spike, and then all axes stop.&lt;/p&gt;
&lt;p&gt;I’ve already sent a support request to CODESYS, but haven’t received a response yet.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#99d5" rel="alternate"/><published>2024-03-22T12:27:50.646000Z</published><updated>2024-03-22T12:27:50.646000Z</updated><author><name>manuknecht</name><uri>https://forge.codesys.com/u/manuknecht/</uri></author><id>https://forge.codesys.comd00ff39fda038501d01da5269901282b030c2f5c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, thanks a lot for the response. I did check all these parameters, but if the PlanningTask takes up to 60 ms, I can't increase the Buffer to such values. I contacted the Codesys support with a projectarchive. Let's see if they can help.&lt;/p&gt;
&lt;p&gt;Thanks again for your great support!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#f8ba" rel="alternate"/><published>2024-03-22T11:23:37.050000Z</published><updated>2024-03-22T11:23:37.050000Z</updated><author><name>tk096</name><uri>https://forge.codesys.com/u/tk096/</uri></author><id>https://forge.codesys.com12a34663c55dbde43e36eadaeaff3c921118670d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;under this circumstances the performance of a Raspberry Pi 4 should be sufficient to run a Softmotion robotics application.&lt;/p&gt;
&lt;p&gt;A closer look at the project would be required. Maybe you could contact the codesys support?&lt;/p&gt;
&lt;p&gt;Usually it is recommended to run the planning task cyclically every 2ms with task priority of 0 on a dedicated core. &lt;br/&gt;
In the task configuration you can have a look at the average and maximum execution time of the planning task. You could use the function block SMC_TuneCPKernel (https://content.helpme-codesys.com/en/libs/SM3_Robotics/Current/SM3_Robotics/POUs/AdministrativeConfiguration/Computation/SMC_TuneCPKernel.html) to define suitable values for the parameters 'fSyncBufferDuration' and 'fPlanningInterval'. However, as previously mentioned, the performance of a Raspberry Pi 4 with realtime patch should be sufficient.&lt;/p&gt;
&lt;p&gt;The 'fPlanningInterval' parameter specifies the maximum planning step width in seconds. The cycle time of the planning task should not permanently exceed this value. A higher value reduces the computational effort, but can lead to a violation or no full utilization of the set limit values for velocity, acceleration and jerk. From a starting value of 0.016 seconds, the value should be increased gradually until the performance is acceptable.&lt;/p&gt;
&lt;p&gt;The parameter 'fSyncBufferDuration' specifies the size (in seconds) of the buffer between the planning and fieldbus task. The cycle time of the planning task must not exceed this value at peak times (this will lead to the error SMC_CP_QUEUE_UNDERRUN). A higher value can compensate for peaks in the cycle time of the planning task. At the same time, however, this also increases the latency for executing interrupts and aborting movements.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#49d2" rel="alternate"/><published>2024-03-14T09:24:00.828000Z</published><updated>2024-03-14T09:24:00.828000Z</updated><author><name>manuknecht</name><uri>https://forge.codesys.com/u/manuknecht/</uri></author><id>https://forge.codesys.comd35f6963f185e88c9d598c76d0dae56a700fe0a9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we did install the real-time kernel patch on the RPI and also performed the additional optimizations including isolating the cores. &lt;/p&gt;
&lt;p&gt;Changing the configuration of the planning task e.g. running it on a separate core, changing the cycle times and mode from cyclic to freewheeling did not show any improvements.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#ef3f" rel="alternate"/><published>2024-03-13T15:33:02.035000Z</published><updated>2024-03-13T15:33:02.035000Z</updated><author><name>tk096</name><uri>https://forge.codesys.com/u/tk096/</uri></author><id>https://forge.codesys.com4c3204ac1d7e9c8fd6d86de6d86f25df3a063816</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you need a realtime capable plc. Codesys Control WinV3 is not realtime capable.&lt;br/&gt;
&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_performance_optimization_linux.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_performance_optimization_linux.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The last chapter of &lt;a href="https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_robotics_diagnosis_movement_problems.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_robotics_diagnosis_movement_problems.html&lt;/a&gt; deals with how to configure the planning task.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#371b" rel="alternate"/><published>2024-03-13T14:20:42.356000Z</published><updated>2024-03-13T14:20:42.356000Z</updated><author><name>manuknecht</name><uri>https://forge.codesys.com/u/manuknecht/</uri></author><id>https://forge.codesys.comb12cc769d260707b2b5410c2ad9619fa270a145f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;These issues occured using a Raspberry Pi 4. &lt;/p&gt;
&lt;p&gt;I also repeated the experiment with codesys control for Windows, which results in much lower cycle times. With up to 3 ms, I still think they are fairly high given they should run at 2 ms and don't require complicated kinematics. The effect of higher cycle times for slower movements also prevails. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#a54b" rel="alternate"/><published>2024-03-13T11:50:26.617000Z</published><updated>2024-03-13T11:50:26.617000Z</updated><author><name>tk096</name><uri>https://forge.codesys.com/u/tk096/</uri></author><id>https://forge.codesys.comff571dc05b440e3c3c5aff0b981018177e161be2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
which (kind of) PLC do you use?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>High Cycle Times for SoftMotion_PlanningTask when using AxisGroup</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/2149a454a0/?limit=25#2ac1" rel="alternate"/><published>2024-03-07T08:40:16.504000Z</published><updated>2024-03-07T08:40:16.504000Z</updated><author><name>manuknecht</name><uri>https://forge.codesys.com/u/manuknecht/</uri></author><id>https://forge.codesys.com9826430d00aa1cd8f789b7ef53c7b83395d3880c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello all&lt;/p&gt;
&lt;p&gt;I am using an AxisGroup with the &lt;em&gt;Gantry2&lt;/em&gt; Kinematics to move a 2D-Gantry system. When creating the AxisGroup, the &lt;em&gt;SoftMotion_PlanningTask&lt;/em&gt; is created automatically with a cycle time of 2 ms in my case. I realized that the maximum cycle time of this task can spike to very high values (up to 20 ms) at lower speeds of the motion, leading to synchronization issues and errors on the axes. The same behaviour - though not as drastic - can be observed with virtual axes too. &lt;/p&gt;
&lt;p&gt;Is this behaviour intended or to be expected? Can the cycle time or type of the &lt;em&gt;SoftMotion_PlanningTask&lt;/em&gt; be changed to prevent these errors? Or is there another fix for this issue?&lt;/p&gt;
&lt;p&gt;Thanks in advance and best regards&lt;br/&gt;
Manuel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>