Class ToolHeightCompensation
public class ToolHeightCompensation : IToolHeightCompensationDef
- Inheritance
-
ToolHeightCompensation
- Implements
- Inherited Members
- Extension Methods
Properties
Mode
Active G-code mode: “G43”, “G43.4”, “G44”, “G49”. Brand-specific syntaxes may write equivalent mode strings (e.g., “TRAORI” for Siemens, “M128” for Heidenhain).
public string Mode { get; set; }
Property Value
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
Offset_mm
Derived effective tool height compensation in mm. Computed from Mode and OffsetId: looks up the offset table for OffsetId, obtains the effective height (geometry minus wear), then applies sign from Mode (positive for G43/G43.4, negative for G44, zero for G49).
public double Offset_mm { get; set; }