Snapshort of current programm and all variables

Hello Dear Team.

I need to make a snapshot of actual values of all local, global variables in program.

Can you suggest me a way how I can save a “backup” and later open it with simulator or simple offline.

I had this possibility with Rockwell PLCs but B&R is a bit different architecture.

Thanks a lot for help!

Hi,

If you’re connected with Automation Studio, you could try the watch functionality archive mode.

Best regards!

Hello Alexander.

Thanks for advise, but it is not fully cover my needs.

The idea behind is to save the actual status of a program together with variables values for father analyse without running a program itself.

Regards, Sergei.

Hi,

okay, then I would say it’s not possible.
But I’m not completely sure what you mean with “actual status of a program”? The only thing of a task that changes at runtime are the variables, so which status do you mean additionaly?

Best regards.

Maybe you can use the RUC (Runtime Utility Center installed with the AS) and save Global and/or task variables, but you have to code it inside the RUC. To understand interface and command for coding, you have to open the RUC’s help contextual guide.

Hi Alexander.

I’m agree with you - it is a like a snapshot.

The only functionality what I miss is that I can’t use this data in grafical languages to see the status of program.

Yes, I can use a lot of separate status info, but it is not qiuck process.

Thanks a lot for help!

Thanks for advise!

I have to deep dive into this solution. Never used it before.

Hi,

okay, now I understand.
The only possibility could be to run the same program in the simulated PLC (ARSim), transfer the watch archive variable values captured before to this program running in simulation (which is possible also direct in the watch window commands), and debug the program/ see the states of graphical programs.

Please also mention that with watch, you’ve additionaly the possibility to stop cyclic computing of the program, and / or let it run for just 1 or multiple cycles.

Best regards.

There was a similar request some time ago:

Easy and quick way to save/restore values of permanent variables? - Ask Questions - B&R Community

so the topic owner created a Python script to save and restore variables.

1 Like

Hello @Sergei_Novik have you been able to solve this topic by following one of the suggested solutions? If so, please let us know which one it was by marking it as solution in the thread.

Thank you!

Hello Lukas. Due to workload I didn’t tried yet, sorry.

1 Like

I closed the topic for now, but please share your findings with us when you have time to test it :slight_smile: