guess the main question is missing you probably are asking for
how to save retain/persistent data on this system, ist that right?
for using retain memory you need to have an UPS on your industrial pc or additional hardware (non volatile ram – NVRAM)
This is needed for CODESYS V2.3 and CODESYS V3.
For using retains a proper shutdown of the plc/pc is needed (the plc runtime does save the retain/persistent variables on this shutdown to the retain file and restore them on next bootup)
This is the way it works (V2.3 RTE and Version 3 Control RTE)
If you have additional hardware in your PC NVRAM – then this proper shutdown of windows is not needed you could only which off because the retains are written cyclic.
That is the whole story for the retains. Some industrial pc manufacturer provide a NVRAM (pci express I guess) card to do this in CODESYS Control RTE V3 as hardware add on (you need to ask your pc manufacturer if the have it for this pc)
But not sure if this works in V2.3. For Control RTE V3 it is for sure possible.
Now you need to decide:
1. Add a UPS to your system (maybe it is already there?)
2. Add NVRAM card to your system
See the description how to use them here in the online help:https://help.codesys.com/webapp/cds-var ... n=22.214.171.124
maybe the third option in combination with UPS, you could use the persistence manager from application composer.
There is the description in the online help too for doing this.