to_motor_uv()

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

Parameters

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

Return Value

Examples

// Convert a work position (50, 25) to a motor position for axis 0
to_motor_uv(50, 25, 0);
 
// Convert a work position (75, 10) to a motor position for axis 3
to_motor_uv(75, 10, 3);

See also

to_motor
to_motor_xy
to_motor_uv

to_work()
to_work_xy
to_work_uv