@jmdowdy
This may be of some help.
https://community.carbide3d.com/t/a-solution-to-xxl-x-axis-limit-switch-interference/17110