<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/</id><updated>2025-09-16T13:19:29.283000Z</updated><subtitle>Recent posts to Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</subtitle><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#5147" rel="alternate"/><published>2025-09-16T13:19:29.283000Z</published><updated>2025-09-16T13:19:29.283000Z</updated><author><name>Sharer</name><uri>https://forge.codesys.com/u/sharer/</uri></author><id>https://forge.codesys.comae3d80ac2fca60fd73d1d9fe02d40513319d49ad</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;With reference to the release note for "CODESYS Recipe..." from CoDeSys (https://www.codesys.com/ecosystem/release-lifecycle/releases-updates/recipes/). After installing this on CoDeSys 3.5.21.1 I am no longer able to reproduce the problem.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#b687" rel="alternate"/><published>2024-03-04T12:12:57.572000Z</published><updated>2024-03-04T12:12:57.572000Z</updated><author><name>ewi04</name><uri>https://forge.codesys.com/u/ewi04/</uri></author><id>https://forge.codesys.com190367663e7dc01b269c06515b58fdbbc6c01fa7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It's good that you've found a workaround. But it's bad that you need one. &lt;/p&gt;
&lt;p&gt;The array length auf my struct is 16. My struct also contains other arrays of structs. It contains a total of 1716 variables. I have tested saving and loading extensively under version 4.3.0.0. It looks good. I couldn’t find any problems. Maybe it helps to reinstall the update (see previous post). Otherwise you could try my test project (first post). This should work with version 4.3.0.0.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#6488" rel="alternate"/><published>2024-03-02T07:31:20.042000Z</published><updated>2024-03-02T07:31:20.042000Z</updated><author><name>dominggus</name><uri>https://forge.codesys.com/u/dominggus/</uri></author><id>https://forge.codesys.com759a18a90bc1a4f78ccc0f5cb4b3a51d88d6de87</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I've workaround it by not using an array but 30 instances of the struct and putting these in the recipe, and then using converter functions to save and load&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#cd72" rel="alternate"/><published>2024-02-26T23:08:58.736000Z</published><updated>2024-02-26T23:08:58.736000Z</updated><author><name>dominggus</name><uri>https://forge.codesys.com/u/dominggus/</uri></author><id>https://forge.codesys.combb9e238eca138b51d49d732ecf59492f9dfe542d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I still have the same problem even when updating to CODESYS Recipes 4.3.0.0. My scenario:&lt;/p&gt;
&lt;p&gt;I'm trying to save/load an array of structs using the Visu:&lt;br/&gt;
- Execute Command &amp;gt; "SaveRecipeAs"  works properly&lt;br/&gt;
- Execute Command &amp;gt; "LoadWriteRecipe" works not entirely: the structs of array&lt;span&gt;[6]&lt;/span&gt; and array&lt;a class="alink" href="/forge/talk-ru/7/"&gt;[7]&lt;/a&gt; should have been empty but were duplicates of array&lt;span&gt;[4]&lt;/span&gt; and array&lt;a class="alink" href="/forge/talk-ru/5/"&gt;[5]&lt;/a&gt;...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#6586/17d5" rel="alternate"/><published>2024-01-04T09:30:26.464000Z</published><updated>2024-01-04T09:30:26.464000Z</updated><author><name>ewi04</name><uri>https://forge.codesys.com/u/ewi04/</uri></author><id>https://forge.codesys.com26fd40f6674c6508a72f5bf496fb52e087d9d091</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Nice to hear that I'm not the only one. I share your suffering. I was on the verge of doing the same.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#dbdf/8ca0" rel="alternate"/><published>2024-01-04T09:29:16.109000Z</published><updated>2024-01-04T09:29:16.109000Z</updated><author><name>ewi04</name><uri>https://forge.codesys.com/u/ewi04/</uri></author><id>https://forge.codesys.com5b6a1244e0ba27efdad0bdbc41b89fffe0960876</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;according to Codesys, the problem should be solved with version 4.3.0.0.&lt;/p&gt;
&lt;p&gt;After the update to version 4.3.0.0 I had the problem that the recipes weren’t saved correctly, but loading was okay. Return to the version 4.2.0.0 didn’t change the behavior. Strange… &lt;/p&gt;
&lt;p&gt;So I uninstalled the update, cleaned the project and built it new. The known behavior of version 4.2.0.0 was back. Update to version 4.3.0.0, clean and build it new, it works. Even with version 4.2.0.0. Strange, but okay.&lt;/p&gt;
&lt;p&gt;Notice: ManCommands.LoadRecipe() no longer writes into the PLC. Just as it should be.&lt;/p&gt;
&lt;p&gt;All's well that ends well? Almost. RecipeManCommands.ReadAndSaveRecipe no longer overwrites the existing file. So I have to delete the old recipe and create the it new.&lt;/p&gt;
&lt;p&gt;As of now, I can use the new version.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=50#6586" rel="alternate"/><published>2023-12-16T04:48:39.049000Z</published><updated>2023-12-16T04:48:39.049000Z</updated><author><name>SiegeLion</name><uri>https://forge.codesys.com/u/smartcoco/</uri></author><id>https://forge.codesys.com48f14952b04b94921d7954145dc2cca824a0e9c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have also been troubled by this issue for a long time, to the extent that I have to implement a recipe management library myself.&lt;br/&gt;
Codesys version used: 3.5.19.40&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#dbdf" rel="alternate"/><published>2023-12-15T11:04:32.319000Z</published><updated>2023-12-15T11:04:32.319000Z</updated><author><name>mputaggio</name><uri>https://forge.codesys.com/u/mputaggio/</uri></author><id>https://forge.codesys.com5717eb85ef7029f47543cc275029caea3b325e0e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We encountered the same issues on both recipe library versions 4.2.0.0 and the newest 4.3.0.0.&lt;/p&gt;
&lt;p&gt;The Arrays of structs get saved correctly but loading them restores only some indexes, while others get lost or completely wrong.&lt;/p&gt;
&lt;p&gt;We have been using the same recipes for the last two years on recipe manager  vers. 3.5.17 withoud issues.&lt;/p&gt;
&lt;p&gt;There also seems to be a different behaviour in vers. 4.3.0.0 but it's still incorrectly loading the recipes.&lt;/p&gt;
&lt;p&gt;Did you find any workaround or solution?&lt;/p&gt;
&lt;p&gt;Codesys version used: 3.5.19.50&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#a624" rel="alternate"/><published>2023-11-16T10:45:46.527000Z</published><updated>2023-11-16T10:45:46.527000Z</updated><author><name>ewi04</name><uri>https://forge.codesys.com/u/ewi04/</uri></author><id>https://forge.codesys.com43d07e813b91dd6a668b3156a48b97f48ebb41df</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm getting closer to the error. The combination of STRUCT and ARRAY probably causes the strange behavior. As soon as the ARRAY is followed by a variable, the problem arises. Examples:&lt;/p&gt;
&lt;p&gt;X: ARRAY&lt;span&gt;[1..2]&lt;/span&gt; OF INT; // okay&lt;/p&gt;
&lt;p&gt;Y: ARRAY&lt;span&gt;[1..2]&lt;/span&gt; OF STRUCT; // problem&lt;/p&gt;
&lt;p&gt;Z: STRUCT;&lt;/p&gt;
&lt;p&gt;Z.ArrayOfInt&lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt;;        // okay&lt;br/&gt;
Z.ArrayOfStruct&lt;a class="alink" href="/forge/talk-ru/1/"&gt;[1]&lt;/a&gt;. Variable    // problem&lt;/p&gt;
&lt;p&gt;I can't be the only one who has this problem. Or? Maybe there is a solution. Anyone?  Or is it a bug after all?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Recipe Manager - RecipeManCommands, load &amp; write wrong values, Bug?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/4dd4cf3db8/?limit=25#e6c5" rel="alternate"/><published>2023-11-15T15:42:24.902000Z</published><updated>2023-11-15T15:42:24.902000Z</updated><author><name>ewi04</name><uri>https://forge.codesys.com/u/ewi04/</uri></author><id>https://forge.codesys.come250f10aaf1aff7620b5af7e7f241a75ce6d71b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It seems that there is a limitation with the STRUCTs. Does anybody know, what’s okay to save (add to the recipe) and what’s not okay? Or is there another problem with my project?&lt;/p&gt;
&lt;p&gt;If I have only an array in the recipe definition everything works perfectly (see project).&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>