to_work()

Converts a motor position to a work position.

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

Syntax

to_work(position, axis)

Parameters

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

Return Value

Examples

Convert a motor position of 200 on axis 0 to a work position

to_work(200, 0);  

Convert a motor position of 75 on axis 2 to a work position

to_work(75, 2);

See also

to_motor
to_motor_xy
to_motor_uv

to_work()
to_work_xy
to_work_uv