Hi fellas,
I would like to know how I can set a permanent variable in Codesys, I explain the case a little bit better.
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