Doug: The Lionel S Scale user manual states that the DCC signal has priority over the TMCC/Legacy signal if both are present. Your switching of the two signal systems is the much better approach.
What DCC command system are you using and are you able to access and set CV's?