Now the SD card will copy itself at every boot into the PFC’s flash!
Power off/on to test the function (with inserted sd-card)
The progress of firmware update displayed via LED’s U1 to U4
YELLOW: Copy process is active(approx. 1 minute)
GREEN: Successfully done!
RED: Finished with ERROR!
The image is copied into flash. now remove the sd-card and test if the PFC is rebooting from internal flash.
Just be careful with this Magic SD if you create an Image with a program which contains Retain Persistent variables.
Sometimes, after PFC reboot (step 6), you will see that Firmware will be updated but program won’t be downloaded.
Indeed I had this problem myself more than once.
Anyone have a script/idea to solve this ?
I only found the best way in that case was to log in the PLC, disable the runtime and do the magic flash.
I used the same workaround as well.
For now, I am used to read/write data in file or database instead of using Retain Persistent variables, as much as possible.