Just to leave a note. My S9 does allow to write the settings back and they are persistent on power cycle. Also my S9 does not reset any setting when triggering a hard reset using the limit switch. However I m struggling with the correct wiring of the limit switches, too.
What is your wiring of the switches?
Imma just leave my topic linked here for reference.