It is not currently possible to activate/deactivate X carriages via g-code commands.
There has been some discussion about extending support for things like this at New generic_cartesian kinematics (incl. CoreXYU/CoreXYUV, generic IDEX and AWD)
-Kevin