Converts a work position to a motor position.
Assumes the positions are in the same units as set in the system settings.
to_motor(position, axis)
Convert a work position of 100 on axis 0 to a motor position
to_motor(100, 0);
Convert a work position of 50 on axis 2 to a motor position
to_motor(50, 2);