Hello Thamaz,
I am facing same problem with our old Bridgeport VMC 800 on Z Axis. Our Z Axis encoder is fitted on X 18 in place of X 17. Did you find some solution to your question? If you could advise on how the swap was done, we could use X19 port for Z axis.
Regards