Table of Contents

Class MillingUtil

Namespace
Hi.MachiningProcs
Assembly
HiMech.dll

Provides utility methods for milling calculations and operations.

public static class MillingUtil
Inheritance
MillingUtil
Inherited Members

Remarks

The two feed formulas (GetFeedPerCycle_mm(double, double), GetFeedPerTooth_mm(double, double, int)) live in core.dll (mech/motion/motion_step.cpp, the line-by-line port of the managed bodies, play-core migration P9) and forward there: one truth of the formula for the step procedure, which fills them into every built step's derived values, and for a reader off the pipeline.

Methods

GetFeedPerCycle_mm(double, double)

Calculates the feed per cycle in millimeters.

public static double GetFeedPerCycle_mm(double feedrate_mmds, double spindleSpeed_radds)

Parameters

feedrate_mmds double

The feed rate in millimeters per second.

spindleSpeed_radds double

The spindle speed in radians per second.

Returns

double

The feed per cycle in millimeters.

GetFeedPerTooth_mm(double, double, int)

Calculates the feed per tooth in millimeters.

public static double GetFeedPerTooth_mm(double feedrate_mmds, double spindleSpeed_radds, int fluteNum)

Parameters

feedrate_mmds double

The feed rate in millimeters per second.

spindleSpeed_radds double

The spindle speed in radians per second.

fluteNum int

The number of flutes on the tool; a number below 0 stands for no flute number and answers NaN.

Returns

double

The feed per tooth in millimeters.

GetFeedrate_mmds(double, double, int)

Calculates the feed rate in millimeters per second.

public static double GetFeedrate_mmds(double feedPerTooth_mmdrev, double spindleSpeed_radds, int fluteNum)

Parameters

feedPerTooth_mmdrev double

The feed per tooth in millimeters per revolution.

spindleSpeed_radds double

The spindle speed in radians per second.

fluteNum int

The number of flutes on the tool.

Returns

double

The feed rate in millimeters per second.

GetFluteZToDzListByGapResolutionSwitch(SortedList<double, double>, double, box3d_t, List<PairZr>)

Gets a list of Z coordinates and their corresponding delta Z values for flute engagement, with resolution switching based on chip height.

public static SortedList<double, double> GetFluteZToDzListByGapResolutionSwitch(SortedList<double, double> fluteZToDzListByWorkpieceResolution, double workpieceResolution, box3d_t boundingBoxOnToolRunningCoordinate, List<PairZr> fluteZAscendentZrContour)

Parameters

fluteZToDzListByWorkpieceResolution SortedList<double, double>

The initial list of Z coordinates and delta Z values based on workpiece resolution.

workpieceResolution double

The resolution of the workpiece.

boundingBoxOnToolRunningCoordinate box3d_t

The bounding box of the tool path in tool running coordinates.

fluteZAscendentZrContour List<PairZr>

The ascending Z coordinates of the flute contour.

Returns

SortedList<double, double>

A sorted list of Z coordinates and their corresponding delta Z values.