Hello.
I'm trying to use RecipeManCommands.ReloadRecipes Method for getting recipes from files. When I call the method it does not generate any error but also not reload any recipe to the recipe definition.
Actually I have 6 recipe files on the directory PlcLogic. The rest of the methods work creating recipes, saving to file, etc.
Does any one have the same issue? it is something to be set on the recipe manager?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Dave. Thanks for your answer. I still struggling with this. I have done everything according with the Codesys help even I have looked in detail at the example. I have double checked the recipe manager configuration and the use of all the methods.
There are two methods that do not work as expected. I'm using Codesys 3.5.19.20 and recipe management 4.4.0.0
.CreateRecipe just create a recipe in the recipe definition but do not create the file. This have a walk around just giving a .ReadAndSaveRecipe afterwards.
.ReloadRecipes do nothing but do not generate any error as well. After calling it I call the .GetRecipeCount and the number is always 0. When I create a new recipe (using the function block methods) then the number changes.
Looks like this method is looking to the wrong directory finding nothing.
I don't know if there is a missing configuration in the CODESYSControl.cfg file.
I'm thinking in a walk around for this but I need to create a strings array with the recipe names as retentive and making all the management when deleting and adding recipes.
Have had some one the same problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
and additional keep in mind that all files which are generated / or read should be exist in the iecfilepath
this means:
for Windows (Control Win as example)
c:\ProgramData\CODESYS\CODESYSControlWinV3x64\268E8ADF\PlcLogic
for Linux
/var/opt/codesys/PlcLogic
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Edwin.
I have reviewed the example and I'm doing basically the same when calling the methods. The recipe files are in the right directory. Everything looks okay but simply it doesn't work.
May migrating to Codesys 3.5.20 will solve this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello.
I'm trying to use RecipeManCommands.ReloadRecipes Method for getting recipes from files. When I call the method it does not generate any error but also not reload any recipe to the recipe definition.
Actually I have 6 recipe files on the directory PlcLogic. The rest of the methods work creating recipes, saving to file, etc.
Does any one have the same issue? it is something to be set on the recipe manager?
Hi William,
I struggled in the same way as you at the beginning with the recipe manager. This chapter helped me a lot to understand how it has to be used:
https://content.helpme-codesys.com/en/CODESYS%20Recipes/_rec_start_page.html
Check out the Methode LoadFromAndWriteRecipe / LoadAndWriteRecipe
Good luck!
Dave
Hi William,
I struggled in the same way as you at the beginning with the recipe manager. This chapter helped me a lot to understand how it has to be used:
https://content.helpme-codesys.com/en/CODESYS%20Recipes/_rec_start_page.html
Check out the Methode LoadFromAndWriteRecipe / LoadAndWriteRecipe
Good luck!
Dave
Hi Dave. Thanks for your answer. I still struggling with this. I have done everything according with the Codesys help even I have looked in detail at the example. I have double checked the recipe manager configuration and the use of all the methods.
There are two methods that do not work as expected. I'm using Codesys 3.5.19.20 and recipe management 4.4.0.0
.CreateRecipe just create a recipe in the recipe definition but do not create the file. This have a walk around just giving a .ReadAndSaveRecipe afterwards.
.ReloadRecipes do nothing but do not generate any error as well. After calling it I call the .GetRecipeCount and the number is always 0. When I create a new recipe (using the function block methods) then the number changes.
Looks like this method is looking to the wrong directory finding nothing.
I don't know if there is a missing configuration in the CODESYSControl.cfg file.
I'm thinking in a walk around for this but I need to create a strings array with the recipe names as retentive and making all the management when deleting and adding recipes.
Have had some one the same problem?
does this recipe example help you here? https://forge.codesys.com/prj/codesys-example/home/Home/
https://forge.codesys.com/prj/codesys-example/recipe-manageme/home/Home/
and additional keep in mind that all files which are generated / or read should be exist in the iecfilepath
this means:
for Windows (Control Win as example)
c:\ProgramData\CODESYS\CODESYSControlWinV3x64\268E8ADF\PlcLogic
for Linux
/var/opt/codesys/PlcLogic
Thanks Edwin.
I have reviewed the example and I'm doing basically the same when calling the methods. The recipe files are in the right directory. Everything looks okay but simply it doesn't work.
May migrating to Codesys 3.5.20 will solve this?