Replacing mechanical 8-throw switch with a digitally controlled implementation
You could just use a bunch of relays. If for some reason you can't drive the relays directly from the PLC you could add drive transistors to drive the relay coil.
And if you are going that far then you might also want to connect the transistors up to a priority decoder so you can switch one of eight lines with three control signals.