Relay sequencing: Inhibit state change of one relay if the other is on
perhaps like this?







simulate this circuit &ndash; Schematic created using CircuitLab

a capacitor-resistor snubber in parallel with RLY2 coil will also help with hold-on during RLY1 switching.