<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to watchdog Decoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/</id><updated>2020-02-27T18:24:52.476000Z</updated><subtitle>Recent posts to watchdog Decoder</subtitle><entry><title>watchdog Decoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/?limit=25#7cee" rel="alternate"/><published>2020-02-27T18:24:52.476000Z</published><updated>2020-02-27T18:24:52.476000Z</updated><author><name>fahansen</name><uri>https://forge.codesys.com/u/fahansen/</uri></author><id>https://forge.codesys.com6c98ce05cf27c981fe0cfc15efb8cfd3e0b2aab7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I split the loop of the decoder task in other task calling by event.&lt;br/&gt;
Also changed the MAST task to cyclic and the priorities.&lt;/p&gt;
&lt;p&gt;The wacthdog exception is not happing since those changes.&lt;/p&gt;
&lt;p&gt;Thanks a lot for helping.&lt;/p&gt;
&lt;p&gt;BR.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>watchdog Decoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/?limit=25#c990" rel="alternate"/><published>2020-02-27T18:24:51.386000Z</published><updated>2020-02-27T18:24:51.386000Z</updated><author><name>B.Roth</name><uri>https://forge.codesys.com/u/b-roth/</uri></author><id>https://forge.codesys.comf2426a257d1a49e84d62e5512617da697f66c094</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;you should use on LMC58 a lower prio for the Decoder-Task &amp;gt; 15 then also increment the cycle-time e.x. to 40ms and disable the watchdog.&lt;br/&gt;
Also a freewheling task (Mast) on this controller is not a good idea this could also block other tasks which leads to a wachtdog. &lt;/p&gt;
&lt;p&gt;Bruno&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>watchdog Decoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/?limit=25#ac83" rel="alternate"/><published>2020-02-27T18:24:48.262000Z</published><updated>2020-02-27T18:24:48.262000Z</updated><author><name>josepmariarams</name><uri>https://forge.codesys.com/u/josepmariarams/</uri></author><id>https://forge.codesys.com5e20c6b1d0c95b46ca2162bb418c0615077ba94d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The thing that I will do is move all for loop code to the assync task, and start this code via an execute-done method.&lt;/p&gt;
&lt;p&gt;I make all my trajectory calcs, read-write files,... in the assync task.&lt;/p&gt;
&lt;p&gt;Enviat des del meu Aquaris M5.5 usant Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>watchdog Decoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/?limit=25#1f1c" rel="alternate"/><published>2020-02-27T18:24:47.148000Z</published><updated>2020-02-27T18:24:47.148000Z</updated><author><name>fahansen</name><uri>https://forge.codesys.com/u/fahansen/</uri></author><id>https://forge.codesys.comff724f23a3e9ec99edf2436c4886056a7486e02c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when took those pics the task configuration  were:&lt;br/&gt;
&lt;strong&gt;Motion&lt;/strong&gt; &lt;br/&gt;
priority: 1&lt;br/&gt;
type: External Can1_Sync&lt;br/&gt;
watchdog enabled: true&lt;br/&gt;
watchdog time: 250ms&lt;br/&gt;
sensitivity: 2&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can0_Sync:&lt;/strong&gt; &lt;br/&gt;
priority: 2 &lt;br/&gt;
type: External Can0_Sync&lt;br/&gt;
watchdog enabled: true&lt;br/&gt;
watchdog time: 300ms&lt;br/&gt;
sensitivity: 1&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Decoder&lt;/strong&gt; &lt;br/&gt;
priority: 3&lt;br/&gt;
type: Cyclic&lt;br/&gt;
interval: 10ms&lt;br/&gt;
watchdog enabled: true&lt;br/&gt;
wathcdog time: 300ms&lt;br/&gt;
sensitivity: 2&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mast&lt;/strong&gt; &lt;br/&gt;
priority: 15&lt;br/&gt;
type: Freewheling &lt;br/&gt;
watchdog enabled: true&lt;br/&gt;
wathcdog time: 1000ms&lt;br/&gt;
sensitivity: 2&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Task_26&lt;/strong&gt; &lt;br/&gt;
priority: 26&lt;br/&gt;
type: Cyclic&lt;br/&gt;
interval: 1000ms&lt;br/&gt;
watchdog enabled: true&lt;br/&gt;
wathcdog time: 1000ms&lt;br/&gt;
sensitivity: 5&lt;/p&gt;
&lt;p&gt;Because of the max time of the decoder task, I create a new task moving some POU of the decoder task. Also changeg the decoder interval but keeps doing watchdog in a while. &lt;br/&gt;
The new task must use in short interval have a pulse counter inside.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Decoder&lt;/strong&gt; &lt;br/&gt;
priority: 3&lt;br/&gt;
type: Cyclic&lt;br/&gt;
interval: 30ms&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Task_04&lt;/strong&gt; &lt;br/&gt;
priority: 4&lt;br/&gt;
type: Cyclic&lt;br/&gt;
interval: 10ms&lt;br/&gt;
watchdog enabled: true&lt;br/&gt;
wathcdog time: 1000ms&lt;br/&gt;
sensitivity: 5&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>watchdog Decoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/?limit=25#44d1" rel="alternate"/><published>2020-02-27T18:24:44.040000Z</published><updated>2020-02-27T18:24:44.040000Z</updated><author><name>B.Roth</name><uri>https://forge.codesys.com/u/b-roth/</uri></author><id>https://forge.codesys.come9bc08cfc749fff975239a0a549f4f5627fc699d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;could you please attach the whole project or at least the task configuration to see the properties(cycle time etc)  ,do you have activated a watchdog for the decoding task?&lt;br/&gt;
With LMC058 you have to be careful with while loops. &lt;/p&gt;
&lt;p&gt;Bruno&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>watchdog Decoder</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/d45037f110/?limit=25#0a1b" rel="alternate"/><published>2020-02-27T18:24:42.938000Z</published><updated>2020-02-27T18:24:42.938000Z</updated><author><name>fahansen</name><uri>https://forge.codesys.com/u/fahansen/</uri></author><id>https://forge.codesys.com1a565d3c8588847477763391b79ee2081dfc8540</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have an application using SoMachineV4.1 SP2 (PLC LMC058 + servodrivers LXM32). The application calculate the points and save in table (PVL.tabValores) and then this values are using in the decoder.  There are two while loops in the aplication, one for calculate the points and other do fill the GEO table/execute (loop_decoder.png). Both loops are used to reduce the time between execution of the differents "steps" of the movement.The loops are in different tasks. Im put debug boolean variables that set on when enter in the loop and reset when leave. None of those variable where set when the exception happen.&lt;/p&gt;
&lt;p&gt;The program works fine, but once a while the PLC got exception and stops. (Running fews days and stop).&lt;/p&gt;
&lt;p&gt;Tasks monitor normal cycle:&lt;/p&gt;
&lt;p&gt;Task monitor with exception:&lt;/p&gt;
&lt;p&gt;Loop decoder:&lt;/p&gt;
&lt;p&gt;Loop calcs:&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: description_exception.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2877"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: task_monitor_without_EXCEPTION.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2878"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: task_monitor_WITH_EXCEPTION.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2879"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: loop_decoder.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2880"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: loop_calc.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=2882"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>