Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

RecipeManCommands.ReloadRecipes

2024-05-16
2024-05-24
  • William Blandon - 2024-05-16

    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?

     
  • dkugler - 2024-05-16

    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

     
  • dkugler - 2024-05-16

    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

     
  • William Blandon - 2024-05-23

    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?

     
  • William Blandon - 2024-05-24

    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?

     

Log in to post a comment.