<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to A problem about *EXCEPTION* FPU DivisionByZero</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c62b3dd675/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c62b3dd675/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/c62b3dd675/</id><updated>2020-02-27T14:16:09.106000Z</updated><subtitle>Recent posts to A problem about *EXCEPTION* FPU DivisionByZero</subtitle><entry><title>A problem about *EXCEPTION* FPU DivisionByZero</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c62b3dd675/?limit=25#73cc" rel="alternate"/><published>2020-02-27T14:16:09.106000Z</published><updated>2020-02-27T14:16:09.106000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.comd558b60660e617328ecc8948254f475e4571f46d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;To prevent an exception in the application caused by a division by zero it is best to check all your code for division by any variable and make sure it can never be zero or won't execute the division if it is zero.&lt;/p&gt;
&lt;p&gt;But if you don't want this and want to automatically divide by 1 if it is zero, you can add the objects "POU for implicit checks..." to your application. Then enable all division options. CODESYS will automatically create code and call this with every division to check if the variable value is 0. It will then replace this by 1.&lt;/p&gt;
&lt;p&gt;The consequence will be that your code will be somewhat larger and therefor slower.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>A problem about *EXCEPTION* FPU DivisionByZero</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/c62b3dd675/?limit=25#15eb" rel="alternate"/><published>2020-02-27T14:16:08.728000Z</published><updated>2020-02-27T14:16:08.728000Z</updated><author><name>zhanjun717</name><uri>https://forge.codesys.com/u/zhanjun717/</uri></author><id>https://forge.codesys.com9481456b7dba4bae31803a2cf11481f0dccac205</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;HELLO:&lt;br/&gt;
       i have updated to V3.5,when i run my app(named X105PLC) in the PLC,it will occur error below:&lt;br/&gt;
 “1405958206: Cmp=CmpIecTask, Class=8, Error=338, Info=3, pszInfo=#### &lt;em&gt;EXCEPTION&lt;/em&gt;&lt;br/&gt;
&lt;span&gt;[&amp;lt;excpt&amp;gt;FPU DivisionByZero&amp;lt;/excpt&amp;gt;]&lt;/span&gt; occurred: App=&lt;span&gt;[&amp;lt;app&amp;gt;X105PLC&amp;lt;/app&amp;gt;]&lt;/span&gt;, Task=&lt;span&gt;[&amp;lt;&lt;br/&gt;
task&amp;gt;Task]&lt;/span&gt; ”；&lt;br/&gt;
      How can i  ignore thses errors in my PLC and keep the task "X105PLC" running when it occur?&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #4000BF;"&gt;MY CPU：MPC8280 400MHz；VxWorks 5.5.2&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>