If you have a shutdown sequence on your machine, you can write the recipe Index to a retentive register (RW) using a Data Transfer (Per-page) object. Otherwise you can use the Data Transfer (Global) object to transfer the index of the current recipe periodically.
When you start the machine, you can use a Set Bit object that sets a bit when the Home window loads (see Set Bit object Properties) to trigger a Data Transfer object that will load the value in the RW register into the recipe index register.