With many motion controllers the command you are looking for is the following:
G28.1 A x (where A is the axis and x is coordinate where the motion slows down for homing)
To home slave axes togheter, tick the option in the general configuration tab ("Home slave with master axis")