XBee Pro SX manual sets to RS-485 (2-wire) by D2 & D3 to 5 and the D7 to 7, how do you change these?

If you use XCTU, it will allow you to change these values. You can also use Remote AT commands via the Digi XBee PRO SX API interface or via AT command mode.