<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/</id><updated>2020-02-27T17:35:02.059000Z</updated><subtitle>Recent posts to problem with exception</subtitle><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#3d67" rel="alternate"/><published>2020-02-27T17:35:02.059000Z</published><updated>2020-02-27T17:35:02.059000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.comf6b23ff62230f5f503668fecee45a694ad03fe8a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;finally, even if I do not like the solution, I have chosen not to use blocks for later programs, but to create programs with a module that writes all the persistent variables to others. In this way, it seems that everything works correctly, in case it is worth someone to help.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#0e41" rel="alternate"/><published>2020-02-27T17:35:01.034000Z</published><updated>2020-02-27T17:35:01.034000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com45da57de45449e70497486f7ca045a27390b3d05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yeah, that's a general concept issue. w/o a breakpoint CODESYS can only monitor "global data". For example variables in GVLs, FB instance variables, etc...&lt;br/&gt;
All data in functions and methods are only allocated while the function is executed.&lt;/p&gt;
&lt;p&gt;Gesendet von meinem LG-H870 mit Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#9ce5" rel="alternate"/><published>2020-02-27T17:34:57.802000Z</published><updated>2020-02-27T17:34:57.802000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.combc100656a108dd5b22b2a4aed79e369abc7719f9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I continue with the problems ...&lt;br/&gt;
I really did not expect to have so many problems with this.&lt;/p&gt;
&lt;p&gt;someone knows why a function that is in an FB does not have internal values ​​come out "???" and that you need a break point.&lt;br/&gt;
Some functions, if they work well inside FB but others do not ... (the timer almost none)&lt;/p&gt;
&lt;p&gt;Or I do not understand well how to do it or it can not be done.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#aa78" rel="alternate"/><published>2020-02-27T17:34:56.403000Z</published><updated>2020-02-27T17:34:56.403000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com7d8e5e2f70ffa0d097d60aa5653caeedb790cceb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Good:&lt;br/&gt;
I've been doing tests with the subject.&lt;br/&gt;
As a conclusion, if there is an FB within another FB and in either of the two there are persistent variables, failure, with functions (other than FB) does not happen.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#c24e" rel="alternate"/><published>2020-02-27T17:34:54.984000Z</published><updated>2020-02-27T17:34:54.984000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com1d24cb84f80738074d2d323ce8e12123e32e9507</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;good and many thanks for the help.&lt;br/&gt;
I have removed the general persistent list, but I continue with the problem.&lt;br/&gt;
Charge well the first time, but as soon as I save variables and remove the light, it restarts in exception in the first FB of the program.&lt;br/&gt;
I use sp 11 patch 4.&lt;br/&gt;
The reason for using the whole block to be retained is because after a complete program load the variables are not maintained if they are not declared in that area&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Captura.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3303"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#4180" rel="alternate"/><published>2020-02-27T17:34:51.997000Z</published><updated>2020-02-27T17:34:51.997000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.comb707837ea817828e0fe2a8d79bdfbf93e047fe37</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I tried to reproduce your problem, but sadly without success. I had SP11 with an RPI Zero W running here, so I tried it with that. What I noticed in your project was, that you placed the whole "persistent FB" into a "retain persistent" variable list.&lt;/p&gt;
&lt;p&gt;This seems to be bad, as your FB itself defines already retains. So, your Persistent variables list says "persistent!" and your FB says "retains!". If this doesn't only confuse me, but also the compiler, I could imagine that it leads to side effects.&lt;/p&gt;
&lt;p&gt;Your first approach looks cleaner to me. So that you declare the basic variables within your FB as "retain". FBs are consisting of code and data. So placing a whole instance of an FB in a retain area is IMHO bad practice. I prefer to define as few variables as retain as possible.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#0db6" rel="alternate"/><published>2020-02-27T17:34:50.996000Z</published><updated>2020-02-27T17:34:50.996000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com49de43fbadf421c2a01162e01e33c5616925243c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes go to first FB in the program, is a problem with the system retain memory for raspberry for cmpapp, but I do not understand why it does not work.&lt;br/&gt;
Copy code program and library in case you want to take a look.&lt;/p&gt;
&lt;p&gt;When it restarts after a power outage, it starts in exception.&lt;br/&gt;
thanks&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=3302" rel="nofollow"&gt;prueba_proyecto.project &lt;span&gt;&lt;span&gt;[130.34 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=3301" rel="nofollow"&gt;bibli_prueba.library &lt;span&gt;&lt;span&gt;[85.3 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#7382" rel="alternate"/><published>2020-02-27T17:34:48.181000Z</published><updated>2020-02-27T17:34:48.181000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com7317a724572eaff35655f89bc1b502eb4828cbe0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Difficult to say w/o knowing more about the code. But when you right click on the logger message to show the position of the exception, does CODESYS show you the position?&lt;/p&gt;
&lt;p&gt;Gesendet von meinem LG-H870 mit Tapatalk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>problem with exception</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/be95f7bb07/?limit=25#3053" rel="alternate"/><published>2020-02-27T17:34:47.181000Z</published><updated>2020-02-27T17:34:47.181000Z</updated><author><name>jbarrio</name><uri>https://forge.codesys.com/u/jbarrio/</uri></author><id>https://forge.codesys.com6d0968be48644f63cdc169980a68d53580f5d74a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hello:&lt;br/&gt;
I have a problem, I am generating a library with its own blocks.&lt;br/&gt;
If I use a function block that has a variable retain in my library, an exception is generated, when I use the block function in a program. What can be the cause?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Captura.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3296"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Captura.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3295"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>