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

Can I save the current values of all variables to a file?

pnn
2013-01-13
2013-01-14
  • pnn - 2013-01-13

    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.

     
  • shooter - 2013-01-14

    use retain

     

Log in to post a comment.