if is the rail docker block connected to activation modul for udocking feature then the state of signal from the activation block instead undocking the docker, rotate the docker. one state have different rotation then the second state.
here are some examples what i have in mind:
placing a rail docker and connecting an activator to it causes the rail docker to flip orientation on each activation deactivation cycle
it shouldnt rotate, but only undock