Coordinate Conversion

The following commands perform coordinate conversions:

FROM_REF_TO_SIM_COORDS

The function gets five numeric parameters:
X coordinate, Y coordinate, Z coordinate, Alpha angle, Beta angle.

It transfers the XYZ coordinates from the REF coordinate system (in tooltip terms) to the machine (SIM) coordinate system (in spindle terms), taking into account that the machine is positioned in the given Alpha and Beta angles.

The result is given in three variables:
X_COORD_RESULT, Y_COORD_RESULT and Z_COORD_RESULT.

FROM_SIM_TO_REF_COORDS

The function gets five numeric parameters:
X coordinate, Y coordinate, Z coordinate, Alpha angle, Beta angle.

It transfers the XYZ coordinates from the machine (SIM) coordinate system (in spindle terms) to the REF coordinate system (in tooltip terms), taking into account that the machine is positioned in the given Alpha and Beta angles.

The result is given in three variables:
X_COORD_RESULT, Y_COORD_RESULT and Z_COORD_RESULT.

Example

FROM_REF_TO_SIM_COORDS X_CURPOS Y_CURPOS Z_CURPOS A_CURPOS B_CURPOS;

FROM_SIM_TO_REF_COORDS X_SAFE_POS Y_SAFE_POS Z_SAFE_POS (-90) 0;

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.