The present invention relates to a system and methodology for saving and restoring
controller state and context in an industrial controller. In an aspect of the invention,
the industrial controller has a memory module having at least RAM and flash memory.
Savings of the state and context is accomplished through writing an image of the
RAM to flash memory prior to the power being removed from the RAM. Restoring is
accomplished through writing the RAM image in the flash memory back to the RAM
after the RAM has been energized.