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

Save Current Values to Recipe

karsten
2020-10-08
2022-10-17
  • karsten

    karsten - 2020-10-08

    Codesys 3.5
    I want to save my persistent variablelist in to a recipe. I now that this can be done marking the variables rightclick and press SaveCurrentValuesToRecipe, i would like to trigger this command in the PLC program by some logic. Can this be done and how

     
  • kislov

    kislov - 2022-10-17

    Are you sure that you need exactly this command? (with note "You would normally select this command after executing the command Reorder list and clear gaps"

    Maybe the "common" way will work for you...
    https://content.helpme-codesys.com/en/libs/Recipe%20Management/Current/pou-RecipeManCommands/LoadFromAndWriteRecipe.html

     
    πŸ‘
    1
    • Araforn

      Araforn - 2022-10-17

      Thanks for your help again. So i now have what I want using the below commands.

      I needed to create the backup file incase of a power cut in which case i can simply rename it to the same name as the persvars file and reload.

       
    • Araforn

      Araforn - 2022-10-17

      Thanks for your help again. So I now have what I want using the below commands.

      I needed to create the backup file incase of a power cut in which case I can simply rename it to the same name as the persvars recipe file and reload.

       

      Last edit: Araforn 2022-10-17

Log in to post a comment.