Table of Contents

Class MechNcUtil

Namespace
Hi.Numerical
Assembly
HiMech.dll

NC Utility.

public static class MechNcUtil
Inheritance
MechNcUtil
Inherited Members

Methods

GetNoInterpolationOrdinaryProgramXcz_rad(Vec3d, double, Vec3d)

Internal Use Only. No interpolation may occur angle cycle problem. The function is usable only if ensuring the angle difference is within helf cycle.

public static Vec3d GetNoInterpolationOrdinaryProgramXcz_rad(Vec3d curProgramPolarXcz, double preMcC_rad, Vec3d preProgramPolarXcz)

Parameters

curProgramPolarXcz Vec3d

Current program polar XCZ

preMcC_rad double

Previous machine C angle in radians

preProgramPolarXcz Vec3d

Previous program polar XCZ

Returns

Vec3d

Ordinary program XCZ coordinates in radians

GetOrdinaryProgramXcz_rad(Vec3d, double, Vec3d)

In Polar coordinate interpolation mode (G12.1), rotary is assigned by hypothesis value (called C. Some controller accepts Y as equivalent.). While converting the hypothesis value to rotary angle occurs problem of angle cycle. The function get the resolved angle.

public static Vec3d GetOrdinaryProgramXcz_rad(Vec3d curCentralProgramPolarPos, double preMcC_rad, Vec3d preCentralProgramPolarPos)

Parameters

curCentralProgramPolarPos Vec3d

Current central program polar position

preMcC_rad double

Previous machine C angle in radians

preCentralProgramPolarPos Vec3d

Previous central program polar position

Returns

Vec3d

Ordinary program XCZ coordinates in radians

GetProgramPolarRxczByOrdinaryProgramXcz(Vec3d)

Converts ordinary program XCZ coordinates to program polar RXCZ coordinates.

public static Vec3d GetProgramPolarRxczByOrdinaryProgramXcz(Vec3d ordinaryProgramXcz_rad)

Parameters

ordinaryProgramXcz_rad Vec3d

Ordinary program XCZ coordinates in radians

Returns

Vec3d

Program polar RXCZ coordinates

GetUnresolvedAngleOrdinaryProgramXcz_rad(Vec3d)

OrdinaryProgramPos: Cartesian X (radius) and Rotation C in ard. the C rotation angle has not been unresolved from angle cycling. central(X=0,C=0) is coordinate origin.

public static Vec3d GetUnresolvedAngleOrdinaryProgramXcz_rad(Vec3d centralProgramPolarXcz)

Parameters

centralProgramPolarXcz Vec3d

Returns

Vec3d