Class MechNcUtil
NC Utility.
public static class MechNcUtil
- Inheritance
-
MechNcUtil
- Inherited Members
Methods
GetNoInterpolationOrdinaryProgramXcz_rad(vec3d_t, double, vec3d_t)
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_t GetNoInterpolationOrdinaryProgramXcz_rad(vec3d_t curProgramPolarXcz, double preMcC_rad, vec3d_t preProgramPolarXcz)
Parameters
curProgramPolarXczvec3d_tCurrent program polar XCZ
preMcC_raddoublePrevious machine C angle in radians
preProgramPolarXczvec3d_tPrevious program polar XCZ
Returns
- vec3d_t
Ordinary program XCZ coordinates in radians
GetOrdinaryProgramXcz_rad(vec3d_t, double, vec3d_t)
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_t GetOrdinaryProgramXcz_rad(vec3d_t curCentralProgramPolarPos, double preMcC_rad, vec3d_t preCentralProgramPolarPos)
Parameters
curCentralProgramPolarPosvec3d_tCurrent central program polar position
preMcC_raddoublePrevious machine C angle in radians
preCentralProgramPolarPosvec3d_tPrevious central program polar position
Returns
- vec3d_t
Ordinary program XCZ coordinates in radians
GetProgramPolarRxczByOrdinaryProgramXcz(vec3d_t)
Converts ordinary program XCZ coordinates to program polar RXCZ coordinates.
public static vec3d_t GetProgramPolarRxczByOrdinaryProgramXcz(vec3d_t ordinaryProgramXcz_rad)
Parameters
ordinaryProgramXcz_radvec3d_tOrdinary program XCZ coordinates in radians
Returns
- vec3d_t
Program polar RXCZ coordinates
GetUnresolvedAngleOrdinaryProgramXcz_rad(vec3d_t)
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_t GetUnresolvedAngleOrdinaryProgramXcz_rad(vec3d_t centralProgramPolarXcz)
Parameters
centralProgramPolarXczvec3d_t