<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Retain Variables and Simulation Mode on Codesys 2.3</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/45589cee19/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/45589cee19/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/45589cee19/</id><updated>2020-02-27T21:43:58.083000Z</updated><subtitle>Recent posts to Retain Variables and Simulation Mode on Codesys 2.3</subtitle><entry><title>Retain Variables and Simulation Mode on Codesys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/45589cee19/?limit=25#a879" rel="alternate"/><published>2020-02-27T21:43:58.083000Z</published><updated>2020-02-27T21:43:58.083000Z</updated><author><name>marios</name><uri>https://forge.codesys.com/u/marios/</uri></author><id>https://forge.codesys.coma566f2ea61369fb681305d212b8c6754c8aae914</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Exactly &lt;br/&gt;
I would write the state of all variables on the same pc I login&amp;amp;start the program, if retain variables will not work...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables and Simulation Mode on Codesys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/45589cee19/?limit=25#07b2" rel="alternate"/><published>2020-02-27T21:43:53.939000Z</published><updated>2020-02-27T21:43:53.939000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com3dfa6ab530d22f84e0da27877531ab603b96dfd1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;writing to a file works too, but where do you write it?&lt;br/&gt;
it should be on a PC or alike&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables and Simulation Mode on Codesys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/45589cee19/?limit=25#858a" rel="alternate"/><published>2020-02-27T21:43:52.397000Z</published><updated>2020-02-27T21:43:52.397000Z</updated><author><name>marios</name><uri>https://forge.codesys.com/u/marios/</uri></author><id>https://forge.codesys.coma14ce7b70b08c83af08714bc7af079b5de20812b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your answer shooter.&lt;br/&gt;
So It seems I need to operate directly on the PLC   . &lt;br/&gt;
And what about alternative solutions for restoring the state of the system after blackouts (for example writing on file is possible on code sys 2.3) ?&lt;br/&gt;
If retain variables work correctly in my opinion it's the most reliable solution, but I'm evaluating every possible way to improve the productivity of the work assigned to these machines. &lt;br/&gt;
Thank you very much&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables and Simulation Mode on Codesys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/45589cee19/?limit=25#1526" rel="alternate"/><published>2020-02-27T21:43:48.101000Z</published><updated>2020-02-27T21:43:48.101000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comaa677ff43204921bd72b8be67895ed73ff5a3d25</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;No retain does not work in simulation, you will need an PLC, maybe standalone on the bench without any modules if possible.&lt;br/&gt;
You will see that tasks are running a lot faster, and al these remanent constant and other things work.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retain Variables and Simulation Mode on Codesys 2.3</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/45589cee19/?limit=25#784d" rel="alternate"/><published>2020-02-27T21:43:46.616000Z</published><updated>2020-02-27T21:43:46.616000Z</updated><author><name>marios</name><uri>https://forge.codesys.com/u/marios/</uri></author><id>https://forge.codesys.comc4385738bd01b0af1f253164c0eb4bd7baac1695</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone, i’m new to codesys and I kindly ask an help on this useful forum.&lt;br/&gt;
I’m working on codesys 2.3 (configuration : WAGO_750-881) and I have to modify the running project with the purpose of obtaining the restore of the system after blackouts in its exact state before the power goes down.&lt;br/&gt;
I see that it is possible to declare “Retain” variables, to obtain the current state of all the variables, but in simulation mode they don’t work (if I logout, or reset the program they come back to their initialization value) , so I would know if it’s a normal thing and after the download on the plc they will work correctly, or if there is a way to make them also work in simulation mode. I would prefer to test the program in simulation mode first, that’s the reason of my question.&lt;br/&gt;
I’m also available for alternative solutions.&lt;br/&gt;
Thank you very much!    &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>