<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Retentive variables and ModbusTCP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0565174223/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0565174223/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/0565174223/</id><updated>2020-02-27T13:49:19.631000Z</updated><subtitle>Recent posts to Retentive variables and ModbusTCP</subtitle><entry><title>Retentive variables and ModbusTCP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0565174223/?limit=25#faf3" rel="alternate"/><published>2020-02-27T13:49:19.631000Z</published><updated>2020-02-27T13:49:19.631000Z</updated><author><name>prplxr</name><uri>https://forge.codesys.com/u/prplxr/</uri></author><id>https://forge.codesys.com2449f994380c3bd711235b648f90c6fc8615aab9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I resolved this by storing each variable in the HMI in a separate variable copy on data change. I then load the values from the copies on startup.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retentive variables and ModbusTCP</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/0565174223/?limit=25#d0e7" rel="alternate"/><published>2020-02-27T13:49:19.542000Z</published><updated>2020-02-27T13:49:19.542000Z</updated><author><name>prplxr</name><uri>https://forge.codesys.com/u/prplxr/</uri></author><id>https://forge.codesys.comb773e2b40ddda0db7d1d588ac09fc01cdc26613c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I'm new to this forum so forgive if I posted this wrong.&lt;/p&gt;
&lt;p&gt;I have a Magelis GTO display connected to a PAC320 PLC over ModbusTCP. I have a few settings stored in variables in the PLC that I want to be retentive. I've put them in a persistant variables list and flagged them with RETAIN and PERSISTENT. Every time I brake the power and then switch it back on again the display overwrites the old values. How can I resolve this?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br/&gt;
Christian Lundahl&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>