Table of Contents

Class SiemensToolEdgeOffset

Namespace
Hi.NcParsers.Dependencys.Siemens
Assembly
HiMech.dll

One Siemens cutting-edge offset row ($TC_DP fields for a (T, D) pair): geometry lengths L1/L2/L3 ($TC_DP3/4/5), radius ($TC_DP6) and the corresponding wear values ($TC_DP12/13/14/15) as typed properties (all mm), plus VerbatimDpFields for every other $TC_DP index — same split as SiemensMachineDataTable's well-known-MD properties over a generic parameter bag. A typed property means the simulation consumes the field; a bag entry means the value is stored and round-tripped but not interpreted.

public class SiemensToolEdgeOffset
Inheritance
SiemensToolEdgeOffset
Inherited Members
Extension Methods

Properties

Length1_mm

$TC_DP3 — geometry length 1 (typically Z), mm.

public double Length1_mm { get; set; }

Property Value

double

Length2_mm

$TC_DP4 — geometry length 2 (typically X), mm.

public double Length2_mm { get; set; }

Property Value

double

Length3_mm

$TC_DP5 — geometry length 3 (typically Y), mm.

public double Length3_mm { get; set; }

Property Value

double

Radius_mm

$TC_DP6 — geometry radius, mm.

public double Radius_mm { get; set; }

Property Value

double

VerbatimDpFields

$TC_DP fields the simulation does not consume, keyed by DP index (e.g. 1 = tool type, 2 = tip position, 7–11 = extended geometry, 16–20 = extended wear, 21–23 = base/adapter dimensions, 24 = clearance angle). Carried for round-trip fidelity so a full controller dump survives import → save → reload; never interpreted. The consumed indices (see IsConsumedDpIndex(int)) live in the typed properties and must not appear here — write through SetDpField(int, double) to keep that invariant.

public Dictionary<int, double> VerbatimDpFields { get; set; }

Property Value

Dictionary<int, double>

WearLength1_mm

$TC_DP12 — wear length 1, mm.

public double WearLength1_mm { get; set; }

Property Value

double

WearLength2_mm

$TC_DP13 — wear length 2, mm.

public double WearLength2_mm { get; set; }

Property Value

double

WearLength3_mm

$TC_DP14 — wear length 3, mm.

public double WearLength3_mm { get; set; }

Property Value

double

WearRadius_mm

$TC_DP15 — wear radius, mm.

public double WearRadius_mm { get; set; }

Property Value

double

Methods

IsConsumedDpIndex(int)

Whether the given $TC_DP index is consumed by the simulation and therefore stored as a typed property (3/4/5/6 geometry, 12/13/14/15 wear) rather than in VerbatimDpFields.

public static bool IsConsumedDpIndex(int dpIndex)

Parameters

dpIndex int

Returns

bool

SetDpField(int, double)

Writes one $TC_DP field by DP index: consumed indices route to the typed properties, every other index lands verbatim in VerbatimDpFields — an importer can hand over a full controller dump without knowing which indices the simulation consumes.

public void SetDpField(int dpIndex, double value)

Parameters

dpIndex int
value double