<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CoDeSys CAN Initialisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b7678d91cb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b7678d91cb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/b7678d91cb/</id><updated>2020-02-28T12:58:55.503000Z</updated><subtitle>Recent posts to CoDeSys CAN Initialisierung</subtitle><entry><title>CoDeSys CAN Initialisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b7678d91cb/?limit=25#b034" rel="alternate"/><published>2020-02-28T12:58:55.503000Z</published><updated>2020-02-28T12:58:55.503000Z</updated><author><name>Ralf Wardenbach</name><uri>https://forge.codesys.com/u/ralf-wardenbach/</uri></author><id>https://forge.codesys.coma015daf6c6e668bebd133dfa1da784024aeeb244</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo,&lt;/p&gt;
&lt;p&gt;das Problem lag in der Konfiguration des CAN Bus im CoDeSys.&lt;/p&gt;
&lt;p&gt;Zwar habe ich das Nodeguarding gesetzt, jedoch als Guard Time und Life Time eine Null eingetragen, was sich so verhält als wäre das Nodeguarding ausgeschaltet.&lt;/p&gt;
&lt;p&gt;Nach dem Eintragen der Werte werden nun auch die Umrichter nach einem Ausfall wieder einwandfrei gefunden.&lt;/p&gt;
&lt;p&gt;Das manuelle Starten des CAN Bus war eine Frage der richtigen Librarys.&lt;/p&gt;
&lt;p&gt;Danke an –AB- für die Hilfe&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys CAN Initialisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b7678d91cb/?limit=25#c07d" rel="alternate"/><published>2020-02-28T12:58:47.563000Z</published><updated>2020-02-28T12:58:47.563000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com1d764a04ee91da1a21ecbb927583299ba73ad2b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; -AB-&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;da ich den CanBus garnicht über die Steuerungskonfiguration parametriere kann ich dir nicht sagen wie es da funktioniert. Die folgenden 2 Ausschnitte kommen aus meinem Programm und zeigen einmal wie die CanKommunikation resetet werden kann und wie man die Can Knoten wieder operational schalten kann.&lt;/p&gt;
&lt;p&gt;&lt;span style="color: underline;"&gt;Reset&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;ResetNodeReturnValue := CanUser_Write(&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;            &lt;span class="nt"&gt;wDrvNr&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;dwCanID&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;bLen&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;2&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;xRtrFrame&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;ucMode&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;bByte0&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;16&lt;/span&gt;&lt;span class="p"&gt;#&lt;/span&gt;&lt;span class="nn"&gt;81&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;          &lt;span class="o"&gt;(*&lt;/span&gt; &lt;span class="nt"&gt;Resetkommando&lt;/span&gt; &lt;span class="o"&gt;*)&lt;/span&gt;

            &lt;span class="nt"&gt;bByte1&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;                  &lt;span class="o"&gt;(*&lt;/span&gt; &lt;span class="nt"&gt;Reset&lt;/span&gt; &lt;span class="nt"&gt;an&lt;/span&gt;      &lt;span class="nt"&gt;Knotenadresse&lt;/span&gt; &lt;span class="nt"&gt;0&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;alle&lt;/span&gt; &lt;span class="nt"&gt;CAN&lt;/span&gt; &lt;span class="nt"&gt;Teilnehmer&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="nt"&gt;senden&lt;/span&gt; &lt;span class="o"&gt;*)&lt;/span&gt;

                    &lt;span class="nt"&gt;bByte2&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;bByte3&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;bByte4&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;bByte5&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;bByte6&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

            &lt;span class="nt"&gt;bByte7&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;&lt;span style="color: underline;"&gt;In operational Mode schalten:&lt;/span&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;StartNodeReturnValue&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="nt"&gt;CanUser_Write&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;

    &lt;span class="nt"&gt;wDrvNr&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;dwCanID&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bLen&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;2&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;xRtrFrame&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;ucMode&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte0&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;16&lt;/span&gt;&lt;span class="p"&gt;#&lt;/span&gt;&lt;span class="nn"&gt;01&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte1&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;servo_nodeID&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte2&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte3&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte4&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte5&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte6&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;

    &lt;span class="nt"&gt;bByte7&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;0&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Veilleicht hilft es dir ja weiter.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CoDeSys CAN Initialisierung</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b7678d91cb/?limit=25#e887" rel="alternate"/><published>2020-02-28T12:58:44.955000Z</published><updated>2020-02-28T12:58:44.955000Z</updated><author><name>Ralf Wardenbach</name><uri>https://forge.codesys.com/u/ralf-wardenbach/</uri></author><id>https://forge.codesys.com648327a19308945fbb7a18c2c763970810e46579</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ein Hallo an alle Forumuser&lt;/p&gt;
&lt;p&gt;In einem Versuchsaufbau wird ein Umrichter der Fa. Lenze betrieben.&lt;/p&gt;
&lt;p&gt;Die Kommunikation mit dem IPC (Wago 870) funktioniert einwandfrei.&lt;/p&gt;
&lt;p&gt;Bei einem Kunden wird der gleiche Aufbau mit zwei weiteren Umrichtern in einer Anlage betrieben. &lt;/p&gt;
&lt;p&gt;Hier nun das Problem: In der Anlage wird nach unterbrechen des CAN Bus die Kommunikation nicht wieder aufgebaut.&lt;/p&gt;
&lt;p&gt;Im Versuchsaufbau mit einem Umrichte funktioniert dieses jedoch ohne Probleme.&lt;/p&gt;
&lt;p&gt;Hat schon jemand das gleich Problem gehabt ? oder einen Lösungsvorschlag ?&lt;/p&gt;
&lt;p&gt;Eine weitere Frage ist : In der CoDeSys Hilfe wird unter “CAN-Einstellungen eines CanDevices“ folgendes beschrieben:&lt;/p&gt;
&lt;p&gt;Ist die Option Automatisch starten aktiviert, so wird beim Download und beim Hochfahren der Steuerung der CAN-Bus automatisch initialisiert und gestartet. Ist es deaktiviert, wartet das CanDevice auf einen entsprechenden Befehl.  &lt;/p&gt;
&lt;p&gt;Meine Frage ist: Wie wird der CAN-Bus manuell initialisiert / (neu-)gestartet ??&lt;/p&gt;
&lt;p&gt;Wie und Wo ? ist der Befehl abzusetzen ?&lt;/p&gt;
&lt;p&gt;CoDeSys : 2.3.5.3&lt;/p&gt;
&lt;p&gt;Wago IPC 870 EC1COM 2.4.31 /0101&lt;/p&gt;
&lt;p&gt;Lenze E82ZAFUC001&lt;/p&gt;
&lt;p&gt;Kann mir jemand weiterhelfen ?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>