Converts a work position (X, Y) to a motor position for a specified axis.
Assumes the positions are in the same units as set in the system settings.
to_motor_xy(x, y, axis)
Convert a work position (100, 50) to a motor position for axis 0
to_motor_xy(100, 50, 0);
Convert a work position (25, 75) to a motor position for axis 2
to_motor_xy(25, 75, 2);