to_motor_xy()

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.

Syntax

to_motor_xy(x, y, axis)

Parameters

Parameter Type Description
x Number The X-coordinate of the work position.
y Number The Y-coordinate of the work position.
axis Number The axis index (0 to 8) to retrieve motor position.

Return Value

Examples

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);

See also

See also

to_motor
to_motor_xy
to_motor_uv

to_work()
to_work_xy
to_work_uv