<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Can I save the current values of all variables to a file?</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a42ceed6b5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a42ceed6b5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a42ceed6b5/</id><updated>2020-02-27T20:29:52.942000Z</updated><subtitle>Recent posts to Can I save the current values of all variables to a file?</subtitle><entry><title>Can I save the current values of all variables to a file?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a42ceed6b5/?limit=25#a6fa" rel="alternate"/><published>2020-02-27T20:29:52.942000Z</published><updated>2020-02-27T20:29:52.942000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.come188e622627aa773f2d078ce1b945d72b51df7d2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;use retain&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can I save the current values of all variables to a file?</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a42ceed6b5/?limit=25#e842" rel="alternate"/><published>2020-02-27T20:29:51.569000Z</published><updated>2020-02-27T20:29:51.569000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.com37802e40297eca8a39c8565fe323b16c7154ecea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;is there a way to save the current values of all the variables to a file inside the PLC?&lt;/p&gt;
&lt;p&gt;I have a system with a Codesys 2.3 PLC and a touchscreen panel, no PC around.&lt;br/&gt;
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.&lt;br/&gt;
Is there a relatively easy way to do that?&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Thanks for any suggestions.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>