<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Common exception handling</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2ea9b8a08b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2ea9b8a08b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2ea9b8a08b/</id><updated>2020-02-27T13:58:34.179000Z</updated><subtitle>Recent posts to Common exception handling</subtitle><entry><title>Common exception handling</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2ea9b8a08b/?limit=25#e305" rel="alternate"/><published>2020-02-27T13:58:34.179000Z</published><updated>2020-02-27T13:58:34.179000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com173ec51f15fed859c5528f19aaec8309a670c44a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You could use the Callback functionality, but in this case I would advise to add the "POU for implicit checks".&lt;br/&gt;
Here you can select which kind of checks you want the runtime to do.&lt;br/&gt;
This helps you find any problems in the code regarding division by zero or accessing an array out of bounds.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Common exception handling</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2ea9b8a08b/?limit=25#4f05" rel="alternate"/><published>2020-02-27T13:58:33.919000Z</published><updated>2020-02-27T13:58:33.919000Z</updated><author><name>chab</name><uri>https://forge.codesys.com/u/chab/</uri></author><id>https://forge.codesys.com14d6e99d480f6fcb265264741d01bc4d2cf4afe0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;What is the common handling for System Exception?&lt;/p&gt;
&lt;p&gt;For example when the exception DIVIDE BY ZERO is triggered.&lt;/p&gt;
&lt;p&gt;In my test setup, the device will halt. And I can see what happened in the CodeSys ControlDevice; Log. See figure.&lt;/p&gt;
&lt;p&gt;But in the factory, the CodeSys ControlDevice; Log is not available. A GUI is available, but that is not updated anymore (halted also).&lt;br/&gt;
The users will have to do a device reset (power cycle) manually. Or can / should I do a device reset automatically (if possible at all).&lt;/p&gt;
&lt;p&gt;In this case, the application is not critical. But the users will notice an automatic reset. So my preference is a manual restart by the users. &lt;/p&gt;
&lt;p&gt;Any thoughts...&lt;/p&gt;
&lt;p&gt;Regards,&lt;br/&gt;
Edwin.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: exception_log_02.JPG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=356"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>