Table of Contents

Class RadiusCompensation

Namespace
Hi.NcParsers.Keywords
Assembly
HiMech.dll

Section key holder + concrete implementation for IRadiusCompensationDef.

public class RadiusCompensation : IRadiusCompensationDef
Inheritance
RadiusCompensation
Implements
Inherited Members
Extension Methods

Fields

SideLeft

Left of programmed path (G41 / Heidenhain RL).

public const string SideLeft = "Left"

Field Value

string

SideNone

No active compensation (G40 / Heidenhain R0).

public const string SideNone = "None"

Field Value

string

SideRight

Right of programmed path (G42 / Heidenhain RR).

public const string SideRight = "Right"

Field Value

string

Properties

OffsetId

Offset number (Fanuc D number) selecting the radius in the tool offset table. Modal — preserved across G40 blocks so the next G41/G42 without an explicit D continues to reference the same row, matching real Fanuc/Siemens behaviour.

public int OffsetId { get; set; }

Property Value

int

Radius_mm

Unsigned compensation radius in mm, looked up from the tool offset table. Real controller tool tables hold the radius as a non-negative geometry value (wear/delta sits in a separate column); this property mirrors that convention. Direction is encoded by Side. Omitted from the JSON section when Side is SideNone.

public double Radius_mm { get; set; }

Property Value

double

Side

Compensation direction: SideNone, SideLeft, or SideRight.

public string Side { get; set; }

Property Value

string

Term

CNC term: “G41”, “G42”, or “G40”.

public string Term { get; set; }

Property Value

string