You don't say what you are using to control your X2. This only applies if you are using Mach3
Go to Config menu then Homing and Limits, select Reverse on the X axis.
If not using Mach then I can't help software wise.
Electrical connections can also be altered if needed.