<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CANopen Cia405.NMT timeout; how to resolve?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/</id><updated>2020-02-27T14:02:02.510000Z</updated><subtitle>Recent posts to CANopen Cia405.NMT timeout; how to resolve?</subtitle><entry><title>CANopen Cia405.NMT timeout; how to resolve?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/?limit=25#d796" rel="alternate"/><published>2020-02-27T14:02:02.510000Z</published><updated>2020-02-27T14:02:02.510000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com28de949847058763d264e144351af20d6ced090c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;please do not workaround these issues you will never have a reliable working system,&lt;br/&gt;
if you do not solve the root cause, the non reliable working CAN mini driver.&lt;br/&gt;
It is not needed to protect the queue with semaphore!&lt;br/&gt;
This CAN mini driver functionality need to be proved by the CAN-Echo project&lt;br/&gt;
If SDO's stuck in the queue it might be a problem of wrong executed SDO fb's, but semaphores are never needed..&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen Cia405.NMT timeout; how to resolve?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/?limit=25#480c" rel="alternate"/><published>2020-02-27T14:02:02.249000Z</published><updated>2020-02-27T14:02:02.249000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.come8260fe8498946d1a778bf168084ed3702207b11</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Long time no see,&lt;/p&gt;
&lt;p&gt;The application with this work-around, has the issue again.&lt;br/&gt;
The NMT function results in a TIME-OUT.&lt;br/&gt;
Both NMT- and SDO- function are called with DISABLE, if a TIME-OUT occurs.&lt;br/&gt;
But still the NMT keeps resulting in TIME-OUT.&lt;/p&gt;
&lt;p&gt;Can the CANopen Manager / stack keep the SDO queue blocked?&lt;br/&gt;
And how can I reset the CANopen Manager / stack?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen Cia405.NMT timeout; how to resolve?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/?limit=25#01c2" rel="alternate"/><published>2020-02-27T14:02:01.982000Z</published><updated>2020-02-27T14:02:01.982000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.coma5cc5ac526add0e4273e4c64816cb993e3cd1a63</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the relation between MNT and SDO (both in the Cia405 library).&lt;/p&gt;
&lt;p&gt;I resolved the issue by implemneting only one instance of the Cia405 functionblocks.&lt;br/&gt;
(One NMT function block and one SDO function block.)&lt;/p&gt;
&lt;p&gt;And added a semaphore to allow the NMT or SDO function block enabled.&lt;br/&gt;
(Both function blocks are executed! Only one is allowed to be enabled.) &lt;/p&gt;
&lt;p&gt;In addition, I added an 'error handler' which resets both function blocks, when an error occurs.&lt;/p&gt;
&lt;p&gt;Testing was succesful.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen Cia405.NMT timeout; how to resolve?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/?limit=25#dcc8" rel="alternate"/><published>2020-02-27T14:02:01.701000Z</published><updated>2020-02-27T14:02:01.701000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.com55d807b75cb95613ce21ecff67e68a74d5ccba60</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;the NMT fb will be aborted with a falling edge on the ENABLE Input.&lt;br/&gt;
does'nt this solve your problem?&lt;br/&gt;
If it does not abort even with falling edge you will see a timeout which means  another fb blocks the internal  SDO channel.&lt;/p&gt;
&lt;p&gt;Rule: Never execute  StkClose and StkOpen function &lt;br/&gt;
-&amp;gt; this should never executed by the application.&lt;/p&gt;
&lt;p&gt;BR &lt;br/&gt;
E.Schwellinger&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen Cia405.NMT timeout; how to resolve?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/935c4cda60/?limit=25#9964" rel="alternate"/><published>2020-02-27T14:02:00.808000Z</published><updated>2020-02-27T14:02:00.808000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.com49453f1715490af4cc9fb9b4916a44b9b75872fe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;In my application, in a particular situation, the NMT function keeps giving a time-out error. &lt;br/&gt;
The CANopen master processes the PDO succesfully. And the other functions. &lt;/p&gt;
&lt;p&gt;Once the time-out occurs once. It never goes away! &lt;br/&gt;
How can I resolve the time-outs?&lt;/p&gt;
&lt;p&gt;The NMT function does not have any "reset" posibility. Can I "reset" the NMT function.&lt;br/&gt;
I checked the CANopen master reset / re-init function: StkClose and StkOpen function.&lt;br/&gt;
StkClose is OK. But the StkOpen function, with the correct parameters, results in a PLC exception!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>