to_work_xy()

Converts a motor position (X, Y) to a work position for a specified axis.

Assumes the positions are in the same units as set in the system settings.

Syntax

to_work_xy(x, y, axis)

Parameters

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

Return Value

Examples

Convert a motor position (150, 75) to a work position for axis 0

to_work_xy(150, 75, 0);

Convert a motor position (200, 50) to a work position for axis 2

to_work_xy(200, 50, 2);

See also

to_motor
to_motor_xy
to_motor_uv

to_work()
to_work_xy
to_work_uv