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
is there a way to save the current values of all the variables to a file inside the PLC?
I have a system with a Codesys 2.3 PLC and a touchscreen panel, no PC around.
I want, if some unexpected behavior occurs, to dump the internal PLC state to a file stored inside the PLC itself, which I can later upload and examine. This file should contain the current values of all the variables declared in the project in a given moment.
Is there a relatively easy way to do that?
I know I can create a POU that can query all the values, but the project is quite big with tons of variables, FB instances etc. Creating such a POU would be a nightmare, so I'm looking for an easier way to do it.
Thanks for any suggestions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
is there a way to save the current values of all the variables to a file inside the PLC?
I have a system with a Codesys 2.3 PLC and a touchscreen panel, no PC around.
I want, if some unexpected behavior occurs, to dump the internal PLC state to a file stored inside the PLC itself, which I can later upload and examine. This file should contain the current values of all the variables declared in the project in a given moment.
Is there a relatively easy way to do that?
I know I can create a POU that can query all the values, but the project is quite big with tons of variables, FB instances etc. Creating such a POU would be a nightmare, so I'm looking for an easier way to do it.
Thanks for any suggestions.
use retain