<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to Permanent Variables mixed with MODBUS</title><link href="https://forge.codesys.com/u/duvanmoreno/blog/2022/09/permanent-variables-mixed-with-modbus/" rel="alternate"/><link href="https://forge.codesys.com/u/duvanmoreno/blog/2022/09/permanent-variables-mixed-with-modbus/feed.atom" rel="self"/><id>https://forge.codesys.com/u/duvanmoreno/blog/2022/09/permanent-variables-mixed-with-modbus/</id><updated>2022-09-28T02:01:54.641000Z</updated><subtitle>Recent changes to Permanent Variables mixed with MODBUS</subtitle><entry><title>Permanent Variables mixed with MODBUS</title><link href="https://forge.codesys.com/u/duvanmoreno/blog/2022/09/permanent-variables-mixed-with-modbus/" rel="alternate"/><published>2022-09-28T02:01:54.641000Z</published><updated>2022-09-28T02:01:54.641000Z</updated><author><name>duvanmoreno</name><uri>https://forge.codesys.com/u/duvanmoreno/</uri></author><id>https://forge.codesys.comc57eb0e832155e52d1eb2cd6058f5d559070c300</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi fellas,&lt;br/&gt;
I would like to know how I can set a permanent variable in Codesys, I explain the case a little bit better.&lt;br/&gt;
I need to initialize a variable with certain value that I will give it until somebody change it in the GUI and type another value, so if somebody reboot the PLC, the permanent value should be the one I initialized. I already set it permanent with a value of 95 but it is being killed to "0", I reckon It is happening because in the project I have many modes, one of them is sent the data through MODBUS and that variable is affected by that, so I don't know if that is causing that my variable is being initializing in '0', Because I have other variable which aren't being modified through MODBUS and those ones are being initializing properly with the value I gave them. so if somebody know how I can fix this issue I'd be a great help. I just need that my variable begin with the value I initialized it. it's more for security reasons that the client is asking me &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>