Table of Contents

Class ToolHeightCompensation

Namespace
Hi.NcParsers.Keywords
Assembly
HiMech.dll
public class ToolHeightCompensation : IToolHeightCompensationDef
Inheritance
ToolHeightCompensation
Implements
Inherited Members
Extension Methods

Properties

IsRotaryDynamic

True when this block is under RTCP modal (G43.4 / TRAORI / M128) and the rotary axes differ from the previous block, making the per-step MC path non-linear even though CL (tool-tip) is commanded linearly. Motion semantics use this flag to pick ClLinear (per-step IK) rather than McLinear (fast MC lerp).

Separated from Term so that consumers do not have to hard-code brand-specific strings to detect "RTCP + rotary changing".

public bool IsRotaryDynamic { get; set; }

Property Value

bool

OffsetId

Generic offset selector: Fanuc H number, Heidenhain T number, Mazak/Okuma H number. For Siemens (T+D addressing), see ISiemensToolOffsetConfig.

public int OffsetId { get; set; }

Property Value

int

Offset_mm

Derived effective tool height compensation in mm. Computed from Term and OffsetId: looks up the offset table for OffsetId, obtains the effective height (geometry minus wear), then applies sign from Term (positive for G43/G43.4, negative for G44, zero for G49).

public double Offset_mm { get; set; }

Property Value

double

Term

CNC term for tool height compensation: “G43”, “G43.4”, “G44”, “G49”. Brand-specific syntaxes may write equivalent terms (e.g., “TRAORI” for Siemens, “M128” for Heidenhain).

public string Term { get; set; }

Property Value

string