Hello:
I am doing a program that to have persistent variables I am using the formula manager. That is achieved and it works well.
Now what I want to know if there is the possibility of saving the file in the plc in the place where I want instead of in the path / var / opt / codesys / Plclogic, since I would like to try to save in a plc, and put the computer in read-only mode to try to avoid corrupting the sd if there is a voltage failure.
I'm using the recipemancommands library
to save RecipeManCommands.ReadAndSaveRecipe
to reset RecipeManCommands.LoadAndWriteRecipe
Thanks for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello:
I am doing a program that to have persistent variables I am using the formula manager. That is achieved and it works well.
Now what I want to know if there is the possibility of saving the file in the plc in the place where I want instead of in the path / var / opt / codesys / Plclogic, since I would like to try to save in a plc, and put the computer in read-only mode to try to avoid corrupting the sd if there is a voltage failure.
I'm using the recipemancommands library
to save RecipeManCommands.ReadAndSaveRecipe
to reset RecipeManCommands.LoadAndWriteRecipe
Thanks for your help.
Hi,
you need to change the /etc/CODESYSControl.cfg
[SysFile]
FilePath.1=/etc/, 3S.dat
FilePath.2=/media/sd/, *.txtrecipe
PlaceholderFilePath.1=/media/sd, $SDCard$
.
.
.
BR
Edwin
hello and thanks:
Is it possible to save the license file and the program on a pendrive?
My intention is to leave the sd in read only and in case of corruption the pendrive will not damage the sd,
Is this possible?