Communication between motor current controller and position controller