<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to information plc error events</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/947efca8c4/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/947efca8c4/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/947efca8c4/</id><updated>2020-02-27T19:30:33.011000Z</updated><subtitle>Recent posts to information plc error events</subtitle><entry><title>information plc error events</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/947efca8c4/?limit=25#874b" rel="alternate"/><published>2020-02-27T19:30:33.011000Z</published><updated>2020-02-27T19:30:33.011000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com50bb5c4d42f7f64b5f5392fc40a0035102579086</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For preventing division by zero or accessing Arrays out of it's bounds, 3S-Software developed the check.lib.&lt;/p&gt;
&lt;p&gt;You only need to add this library to your project to "hide" programming errors.&lt;/p&gt;
&lt;p&gt;Unfortuntely you cannot find exactly where and when this happens.&lt;/p&gt;
&lt;p&gt;Therefore you can also write these functions yourself and add them to the project.&lt;/p&gt;
&lt;p&gt;Here you can add your own code and set breakpoints to find out when or where it happens.&lt;/p&gt;
&lt;p&gt;Attached is a zip file with export files which you can import in your project.&lt;/p&gt;
&lt;p&gt;About the Callback functionality: 3S-Software has made some example projects which I also Attached.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=182" rel="nofollow"&gt;Callback.zip &lt;span&gt;&lt;span&gt;[15.16 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=181" rel="nofollow"&gt;CHECK_export.zip &lt;span&gt;&lt;span&gt;[1.64 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>information plc error events</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/947efca8c4/?limit=25#1131" rel="alternate"/><published>2020-02-27T19:30:31.766000Z</published><updated>2020-02-27T19:30:31.766000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com4973e39e2c80faef6d8a478e975c64b2b6312ea3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;as the board is english i will answer in english although i do speak dutch.&lt;/p&gt;
&lt;p&gt;have you found resources.&lt;/p&gt;
&lt;p&gt;that is one level above the library.&lt;/p&gt;
&lt;p&gt;yes i do lots with 750-841 and in modbus.&lt;/p&gt;
&lt;p&gt;i am _ in measuring and controlling temperatures.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>information plc error events</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/947efca8c4/?limit=25#4157" rel="alternate"/><published>2020-02-27T19:30:30.498000Z</published><updated>2020-02-27T19:30:30.498000Z</updated><author><name>cor.burggraaf</name><uri>https://forge.codesys.com/u/cor-burggraaf/</uri></author><id>https://forge.codesys.com43f4900ae0d0494b248e9644ba813fc35771ef21</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Gezien de reactie op het onderwerp in het nederlands&lt;/p&gt;
&lt;p&gt;SysCallback.lib is een library welke kan reageren op system events&lt;/p&gt;
&lt;p&gt;zoals deling door nul before reset io error enz enz&lt;/p&gt;
&lt;p&gt;desgewenst kan door een zelf te maken functie te registreren met&lt;/p&gt;
&lt;p&gt;de functie SysCallbackRegister()  een te definiëren event deze functie te triggeren &lt;/p&gt;
&lt;p&gt;wel moet deze functie de volgende ingangs parameters hebben&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;                    &lt;span class="nt"&gt;FUNCTION&lt;/span&gt; &lt;span class="nt"&gt;Callback&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;DWORD&lt;/span&gt;

                    &lt;span class="nt"&gt;VAR_INPUT&lt;/span&gt;

                        &lt;span class="nt"&gt;dwEvent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;DWORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

                        &lt;span class="nt"&gt;dwFilter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;DWORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

                        &lt;span class="nt"&gt;dwOwner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nd"&gt;DWORD&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;

                    &lt;span class="nt"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;met de input dwEvent kun je kiezen op welk event de functie getriggert&lt;/p&gt;
&lt;p&gt;wordt&lt;/p&gt;
&lt;p&gt;over de 2 andere parameters tast ik nog in het duister&lt;/p&gt;
&lt;p&gt;en weet ik nog niet exact wat ik daar mee aan moet.&lt;/p&gt;
&lt;p&gt;Als iemand het wel weet hoor ik het graag&lt;/p&gt;
&lt;p&gt;in deze functie kun je dan zelf het een en ander programmeren&lt;/p&gt;
&lt;p&gt;Ik heb ook even gekeken naar de open source Oscat library&lt;/p&gt;
&lt;p&gt;Dit is best interessant inmiddels al gedownload&lt;/p&gt;
&lt;p&gt;en in deze schatkist aan het graven&lt;/p&gt;
&lt;p&gt;ik ben benieuwd of een aantal functies ook werken op een wago target&lt;/p&gt;
&lt;p&gt;mijn core busyness&lt;/p&gt;
&lt;p&gt;ondanks dat alle targets op Codesys draaien hebben de meeste toch hun onhebbelijkheden&lt;/p&gt;
&lt;p&gt;in ieder geval bedankt voor de info&lt;/p&gt;
&lt;p&gt;Groeten Cor&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>information plc error events</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/947efca8c4/?limit=25#d214" rel="alternate"/><published>2020-02-27T19:30:27.019000Z</published><updated>2020-02-27T19:30:27.019000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com476f481f6ffeef55e5445db26ac07b82c282c6b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when a task starts i will print something on screen or have a light go on.&lt;/p&gt;
&lt;p&gt;like 'starting pou init'&lt;/p&gt;
&lt;p&gt;when complex i can numbers in it like 'for loop number '&lt;/p&gt;
&lt;p&gt;i do not like to use syslibcallback a i do not know what happens when running.&lt;/p&gt;
&lt;p&gt;you must make a program hufterproof even when it are blocks or functions.&lt;/p&gt;
&lt;p&gt;see also the oscat lib. very handy and tested.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>information plc error events</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/947efca8c4/?limit=25#899f" rel="alternate"/><published>2020-02-27T19:30:25.780000Z</published><updated>2020-02-27T19:30:25.780000Z</updated><author><name>cor.burggraaf</name><uri>https://forge.codesys.com/u/cor-burggraaf/</uri></author><id>https://forge.codesys.comf5ab9237b1dfbbd133677b70ad1f41ab8dc3bdd8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am Using codesys 2.3 on a wago plc 758-870&lt;/p&gt;
&lt;p&gt;I want to log plc errors when a plc crashes for debugging purposes&lt;/p&gt;
&lt;p&gt;divide by zero, watchdog errors etc.&lt;/p&gt;
&lt;p&gt;and try to get in formation about&lt;/p&gt;
&lt;p&gt;witch error caused the crasch &lt;/p&gt;
&lt;p&gt;witch pou or task caused the crash&lt;/p&gt;
&lt;p&gt;I am expirimenting with the library syslibcallback.lib&lt;/p&gt;
&lt;p&gt;witch enables the posibility to catch an error event&lt;/p&gt;
&lt;p&gt;by triggering a function registered with a function in the syslibcallback library&lt;/p&gt;
&lt;p&gt;but i dont have a clou how to get  information in witch task or pou the problem ocurred&lt;/p&gt;
&lt;p&gt;has anybody more experience with error logging or a better way&lt;/p&gt;
&lt;p&gt;to solve this problem &lt;/p&gt;
&lt;p&gt;kind regards Cor&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>