to_motor()

Converts a work position to a motor position.

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

Syntax

to_motor(position, axis)

Parameters

Parameter Type Description
position Number The work position to convert.
axis Number The axis index (0 to 8).

Return Value

Examples

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

See also

See also

to_motor
to_motor_xy
to_motor_uv

to_work()
to_work_xy
to_work_uv