<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Max resolution timer</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/27644c2cba/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/27644c2cba/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/27644c2cba/</id><updated>2020-02-27T17:15:52.879000Z</updated><subtitle>Recent posts to Max resolution timer</subtitle><entry><title>Max resolution timer</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/27644c2cba/?limit=25#7d38" rel="alternate"/><published>2020-02-27T17:15:52.879000Z</published><updated>2020-02-27T17:15:52.879000Z</updated><author><name>mrubioc</name><uri>https://forge.codesys.com/u/mrubioc/</uri></author><id>https://forge.codesys.com91ea33034d4d9dadc50e916497acf798191b42c6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your reply..&lt;/p&gt;
&lt;p&gt;I'm trying to read a encoder though a Ethercat BUS, and i was wondering what max cycle task could be achieve without stuck the pi.. If we consider that i have a PREEMPT kernel, i should be able to get it properly, as you explain...&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Miquel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Max resolution timer</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/27644c2cba/?limit=25#7882" rel="alternate"/><published>2020-02-27T17:15:49.958000Z</published><updated>2020-02-27T17:15:49.958000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comab72aac28aa3dadb85b7cecb977c75b79e6a0021</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;if you use a Pi2 or Pi3 even cycltimes &amp;lt; 1ms should not be a problem, (for example 500us is possible)&lt;br/&gt;
but I agree to Joseph you need to take care if you set this in the highest prio task the max calc time from your code should not take&lt;br/&gt;
more than the cycle time you have specified.&lt;br/&gt;
If you do this I would recommend to set the following settting&lt;br/&gt;
in /etc/CODESYSControl.cfg to enable the processorload supervision.&lt;br/&gt;
&lt;strong&gt;&lt;span&gt;&lt;span&gt;[CmpSchedule]&lt;/span&gt;&lt;/span&gt;ProcessorLoad.Enable=1ProcessorLoad.Maximum=95ProcessorLoad.Interval=5000&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Max resolution timer</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/27644c2cba/?limit=25#3bd3" rel="alternate"/><published>2020-02-27T17:15:48.979000Z</published><updated>2020-02-27T17:15:48.979000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com0abdc95f72d5f1e2db836cfeb4272948eeec23c0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ei Miquel.&lt;/p&gt;
&lt;p&gt;It depends on the execution time of your codesys code.&lt;/p&gt;
&lt;p&gt;For example. If your code takes 1 ms of execution time, you can use a timer task of 10 ms. But if your execution time is 9 ms, 10 ms could not be a good option&lt;/p&gt;
&lt;p&gt;As I can remember, raspberry codesys allow a minimum cycle of 10ms. Normally a cycle time between 10 and 100 ms. Could be good.&lt;/p&gt;
&lt;p&gt;Be carefull with visualization tasks on Raspberry. Its takes a lot of time.&lt;/p&gt;
&lt;p&gt;And finally, executing on an standard raspbian linux you will have a jitter which can be 0,5 ms. The people says that with a preemtive kernel it is reduced to 100 us...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Max resolution timer</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/27644c2cba/?limit=25#9cdb" rel="alternate"/><published>2020-02-27T17:15:46.268000Z</published><updated>2020-02-27T17:15:46.268000Z</updated><author><name>mrubioc</name><uri>https://forge.codesys.com/u/mrubioc/</uri></author><id>https://forge.codesys.com01c17c2990d4d245e65641ae2b402d2f33934890</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I would like to now the max resolution for a timer/task on a Pi 3, and having a good performance for others tasks..&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Miquel&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>