<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Strange behaviour - cycle time very long</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cdcbc4d48e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cdcbc4d48e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/cdcbc4d48e/</id><updated>2020-02-27T16:19:26.308000Z</updated><subtitle>Recent posts to Strange behaviour - cycle time very long</subtitle><entry><title>Strange behaviour - cycle time very long</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cdcbc4d48e/?limit=25#3980" rel="alternate"/><published>2020-02-27T16:19:26.308000Z</published><updated>2020-02-27T16:19:26.308000Z</updated><author><name>jinx</name><uri>https://forge.codesys.com/u/jinx/</uri></author><id>https://forge.codesys.com189756d9c82bfcb46c7bea6a1588d27196532d07</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank's Edwin,&lt;br/&gt;
this is it. Defining task for onewire helps!&lt;br/&gt;
The only comment I have with connected 4 DS18B20 thermometer, task for reading temperature takes 3.3 seconds, which I think is very slow. But now this is own task, so no problem.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;br/&gt;
Gregor&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Strange behaviour - cycle time very long</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cdcbc4d48e/?limit=25#e427" rel="alternate"/><published>2020-02-27T16:19:23.973000Z</published><updated>2020-02-27T16:19:23.973000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb8d6e9ad1607d5754afcd67196b581c64b6ec7f9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
you need to add a own task for the onewire handling,&lt;br/&gt;
you Need to take care that you do not reference other outputs in this Task.&lt;br/&gt;
Check this with the Taskdeployment.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: OneWireTask.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1125"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Taskdeployment.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1124"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Strange behaviour - cycle time very long</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cdcbc4d48e/?limit=25#b8b0" rel="alternate"/><published>2020-02-27T16:19:23.131000Z</published><updated>2020-02-27T16:19:23.131000Z</updated><author><name>jinx</name><uri>https://forge.codesys.com/u/jinx/</uri></author><id>https://forge.codesys.com5c37ff42537175290c78f650e7eefa91c3e8c94f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I can confirm it is linked to OneWire device beeing configured.&lt;br/&gt;
As soon as I configure only one DS18B20 1-wire meter I have problems with cycle time described above.&lt;br/&gt;
If I delete all DS18B20 devices, cycle times are normal (so I think).&lt;br/&gt;
BR,&lt;br/&gt;
Gregor&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Strange behaviour - cycle time very long</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/cdcbc4d48e/?limit=25#055e" rel="alternate"/><published>2020-02-27T16:19:22.307000Z</published><updated>2020-02-27T16:19:22.307000Z</updated><author><name>jinx</name><uri>https://forge.codesys.com/u/jinx/</uri></author><id>https://forge.codesys.com85f0b4a3b61be0410cd439d5abb126bc384c2525</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
I found out some strange behaviour (I think it is somehow linked with 1-wire devices configured).&lt;br/&gt;
The fastest task (which has fastest cycle time defined - or is the first with the same fastest cycle time defined), takes unreasonable long time to execute.&lt;br/&gt;
I have 4 tasks:&lt;br/&gt;
1. I2C&lt;br/&gt;
2. MainTask&lt;br/&gt;
3. Onewire_scan (this one is empty)&lt;br/&gt;
4. VISU_TASK&lt;/p&gt;
&lt;p&gt;Example1 - see cycle time definitions (the fastest cycle time and the first of the same 100ms cycle time is MainTask):&lt;br/&gt;
1. I2C .. 101ms .. priority 2&lt;br/&gt;
&lt;span style="color: underline;"&gt;2. MainTask .. 100ms .. priority 1&lt;/span&gt;&lt;br/&gt;
3. Onewire_scan (this one is empty) .. 5000ms .. priority 20&lt;br/&gt;
4. VISU_TASK .. 100ms .. priority 31&lt;/p&gt;
&lt;p&gt;Example2 - see cycle time definitions (the fastest cycle time and the first of the same 100ms cycle times is I2C task)&lt;br/&gt;
&lt;span style="color: underline;"&gt;1. I2C .. 100ms .. priority 2&lt;/span&gt;&lt;br/&gt;
2. MainTask .. 100ms .. priority 1&lt;br/&gt;
3. Onewire_scan (this one is empty) .. 5000ms .. priority 20&lt;br/&gt;
4. VISU_TASK .. 100ms .. priority 31&lt;/p&gt;
&lt;p&gt;Example3 - see cycle time definitions (the fastest cycle time 99ms has VISU_TASK)&lt;br/&gt;
1. I2C .. 100ms .. priority 2&lt;br/&gt;
2. MainTask .. 100ms .. priority 1&lt;br/&gt;
3. Onewire_scan (this one is empty) .. 5000ms .. priority 20&lt;br/&gt;
&lt;span style="color: underline;"&gt;4. VISU_TASK .. 99ms .. priority 31&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Example4 - all cycle times set to 100ms BUT NO 1WIRE DEVICE IS CONFIGURED - all tasks run normally&lt;br/&gt;
1. I2C .. 100ms .. priority 2&lt;br/&gt;
2. MainTask .. 100ms .. priority 1&lt;br/&gt;
3. VISU_TASK .. 100ms .. priority 31&lt;/p&gt;
&lt;p&gt;BR,&lt;br/&gt;
Gregor&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: example1" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1120"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: example2" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1121"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: example3" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1122"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: example4" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1123"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>