Table of Contents

Class MillingTraining

Namespace
Hi.MillingForces.Training
Assembly
HiNc.dll

Provides utilities for milling force training and parameter identification.

public static class MillingTraining
Inheritance
MillingTraining
Inherited Members

Properties

CycleDivisionNum

Division number of a spindle cycle.

public static int CycleDivisionNum { get; }

Property Value

int

StepQuantityNames

Gets the names of step quantities used in training.

public static string[] StepQuantityNames { get; }

Property Value

string[]

TextAngleOffset_deg

Gets the text key for angle offset in degrees.

public static string TextAngleOffset_deg { get; }

Property Value

string

TextTrainingErrRatio

Gets the text key for training error ratio.

public static string TextTrainingErrRatio { get; }

Property Value

string

Methods

Convert(ICuttingPara, ICuttingPara, GeneralApt, double, double, IMessageKit, CancellationToken)

Converts one cutting parameter model to another based on the provided parameters.

public static ICuttingPara Convert(ICuttingPara src, ICuttingPara dstTemplate, GeneralApt apt, double helixAngle_rad, double radialRakeAngle_rad, IMessageKit messageHost, CancellationToken cancellationToken)

Parameters

src ICuttingPara

Source cutting parameter model

dstTemplate ICuttingPara

Destination template for the converted model

apt GeneralApt

General apt parameters

helixAngle_rad double

Helix angle in radians

radialRakeAngle_rad double

Radial rake angle in radians

messageHost IMessageKit

Message host for logging

cancellationToken CancellationToken

Cancellation token

Returns

ICuttingPara

The converted cutting parameter model

Convert(LocalProfileMillingPara, double, double, IMessageKit, CancellationToken)

Converts a LocalProfileMillingPara to a RakeFaceCuttingPara.

public static RakeFaceCuttingPara Convert(LocalProfileMillingPara src, double helixAngle_rad, double radialRakeAngle_rad, IMessageKit messageHost, CancellationToken cancellationToken)

Parameters

src LocalProfileMillingPara

Source LocalProfileMillingPara

helixAngle_rad double

Helix angle in radians

radialRakeAngle_rad double

Radial rake angle in radians

messageHost IMessageKit

Message host for logging

cancellationToken CancellationToken

Cancellation token

Returns

RakeFaceCuttingPara

The converted RakeFaceCuttingPara

GatherAndBuild(ConcurrentDictionary<int, List<ITimeShot>>, ClStrip, SampleFlag, bool, double, IMessageKit, CancellationToken)

Gathers training samples and builds a cutting parameter model.

public static ICuttingPara GatherAndBuild(ConcurrentDictionary<int, List<ITimeShot>> stepToTimeShotListDictionary, ClStrip clStrip, SampleFlag sampleFlags, bool enableFzOnlyDuringDrilling, double outlierRatio, IMessageKit messageHost, CancellationToken cancellationToken)

Parameters

stepToTimeShotListDictionary ConcurrentDictionary<int, List<ITimeShot>>

Dictionary mapping step indices to time shot lists

clStrip ClStrip

The cutter location strip

sampleFlags SampleFlag

Sample flags indicating which forces to use

enableFzOnlyDuringDrilling bool

Whether to enable Fz only during drilling

outlierRatio double

Ratio of outliers to exclude

messageHost IMessageKit

Message host for logging

cancellationToken CancellationToken

Cancellation token

Returns

ICuttingPara

The built cutting parameter model

GatherAndGetUpdate(ConcurrentDictionary<int, List<ITimeShot>>, ClStrip, ICuttingPara, SampleFlag, double, IMessageKit, CancellationToken)

Gathers training samples and updates an existing cutting parameter model.

public static ICuttingPara GatherAndGetUpdate(ConcurrentDictionary<int, List<ITimeShot>> stepToTimeShotListDictionary, ClStrip clStrip, ICuttingPara anchorPara, SampleFlag sampleFlags, double outlierRatio, IMessageKit messageHost, CancellationToken cancellationToken)

Parameters

stepToTimeShotListDictionary ConcurrentDictionary<int, List<ITimeShot>>

Dictionary mapping step indices to time shot lists

clStrip ClStrip

The cutter location strip

anchorPara ICuttingPara

The anchor cutting parameter model to update

sampleFlags SampleFlag

Sample flags indicating which forces to use

outlierRatio double

Ratio of outliers to exclude

messageHost IMessageKit

Message host for logging

cancellationToken CancellationToken

Cancellation token

Returns

ICuttingPara

The updated cutting parameter model