to_work_uv()

Converts a motor position (U, V) 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_uv(u, v, axis)

Parameters

Parameter Type Description
u Number The U-coordinate of the motor position.
v Number The V-coordinate of the motor position.
axis Number The axis index (0 to 8) to retrieve work position.

Return Value

Examples

Convert a motor position (120, 60) to a work position for axis 0

to_work_uv(120, 60, 0);

Convert a motor position (180, 90) to a work position for axis 3

to_work_uv(180, 90, 3);

See also

to_motor
to_motor_xy
to_motor_uv

to_work()
to_work_xy
to_work_uv