<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to wagolibstatus????</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b41094f73e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b41094f73e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/b41094f73e/</id><updated>2020-02-28T08:28:36.174000Z</updated><subtitle>Recent posts to wagolibstatus????</subtitle><entry><title>wagolibstatus????</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b41094f73e/?limit=25#29da" rel="alternate"/><published>2020-02-28T08:28:36.174000Z</published><updated>2020-02-28T08:28:36.174000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.com37c2c7a3546ffb495828d580e0c16dd6d4ba51d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In der Lib gibts eine Struktur:&lt;/p&gt;
&lt;p&gt;TYPE STATUS_LAST_ERROR :&lt;/p&gt;
&lt;p&gt;STRUCT&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;errCode&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;   &lt;span class="o"&gt;(*&lt;/span&gt; &lt;span class="n"&gt;Fault&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;*)&lt;/span&gt;

&lt;span class="n"&gt;errArg&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;    &lt;span class="n"&gt;DWORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;   &lt;span class="o"&gt;(*&lt;/span&gt; &lt;span class="n"&gt;Fault&lt;/span&gt; &lt;span class="n"&gt;argument&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;*)&lt;/span&gt;

&lt;span class="n"&gt;errTime&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;DT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;       &lt;span class="o"&gt;(*&lt;/span&gt; &lt;span class="n"&gt;Time&lt;/span&gt; &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="n"&gt;Date&lt;/span&gt; &lt;span class="n"&gt;when&lt;/span&gt; &lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="n"&gt;has&lt;/span&gt; &lt;span class="n"&gt;occured&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;was&lt;/span&gt; &lt;span class="n"&gt;cleared&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="o"&gt;*)&lt;/span&gt;

&lt;span class="kd"&gt;set&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;   &lt;span class="n"&gt;BOOL&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;    &lt;span class="o"&gt;(*&lt;/span&gt; &lt;span class="n"&gt;TRUE&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;New&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt; &lt;span class="n"&gt;FALSE&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;Error&lt;/span&gt; &lt;span class="n"&gt;cleared&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;  &lt;span class="o"&gt;*)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;END_STRUCT&lt;/p&gt;
&lt;p&gt;END_TYPE&lt;/p&gt;
&lt;p&gt;Du musst dir also in deinem Projekt eine Variable von diesem Typ anlegen.&lt;/p&gt;
&lt;p&gt;Bsp:  myVar: STATUS_LAST_ERROR;&lt;/p&gt;
&lt;p&gt;An die Funktion üergibst du dann die Adresse dieser Struktur:&lt;/p&gt;
&lt;p&gt;STATUS_GET_LAST_ERROR(adr(myVar));&lt;/p&gt;
&lt;p&gt;Die Funktion füllt dir dann die Struktur mit Daten.&lt;/p&gt;
&lt;p&gt;Beschreibung aus der lib:&lt;/p&gt;
&lt;p&gt;Returns the number of errors since power up. The structure that 'pLastError' points to, is filled with information about the kind of error.&lt;/p&gt;
&lt;p&gt;It is recommended to call this function in conjunction with the event 'blink_code'.&lt;/p&gt;
&lt;p&gt;For detailed error information see the manual of the fieldbus controller.&lt;/p&gt;
&lt;p&gt;Gruss Erik&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>wagolibstatus????</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/b41094f73e/?limit=25#f568" rel="alternate"/><published>2020-02-28T08:28:33.781000Z</published><updated>2020-02-28T08:28:33.781000Z</updated><author><name>Janko12301</name><uri>https://forge.codesys.com/u/janko12301/</uri></author><id>https://forge.codesys.com5a1ab0291595e85ef89410b637deaa589389661a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;also ich komme nicht zu recht mit der wagolibstatus.lib&lt;/p&gt;
&lt;p&gt;STATUS_GET_LAST_ERROR&lt;/p&gt;
&lt;p&gt;gibt es als funktion&lt;/p&gt;
&lt;p&gt;Eingangsparameter: Datentyp: Kommentar: &lt;/p&gt;
&lt;p&gt;pLastError&lt;/p&gt;
&lt;p&gt;POINTER TO STATUS_LAST_ERROR&lt;/p&gt;
&lt;p&gt;Zeiger auf fehlerbeschreibende Struktur.&lt;/p&gt;
&lt;p&gt;Rückgabewert: Datentyp: Kommentar: &lt;/p&gt;
&lt;p&gt;STATUS_GET_LAST_ERROR&lt;/p&gt;
&lt;p&gt;DWORD&lt;/p&gt;
&lt;p&gt;Anzahl der Fehler seit dem Start des Controllers.&lt;/p&gt;
&lt;p&gt;ich weiss nicht was ich da als eingabewert übermitteln soll????&lt;/p&gt;
&lt;p&gt;es steht da dieser baustein soll mit dem ans systemereigniss blink_code gekoppelt sein?&lt;/p&gt;
&lt;p&gt;verstehe das nicht so recht!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>