Table of Contents

Class HeidenhainParameterTable

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

Heidenhain TNC/iTNC machine parameter table. Stores machine parameters (MP numbers) as system and per-axis values.

MP100–MP199: General machine configuration. MP400–MP499: Axis-specific parameters.

public class HeidenhainParameterTable : ControllerParameterTableBase, IHomeMcConfig, IMachineAxisConfig, INcDependency, IMakeXmlSource
Inheritance
HeidenhainParameterTable
Implements
Inherited Members
Extension Methods

Constructors

HeidenhainParameterTable()

public HeidenhainParameterTable()

HeidenhainParameterTable(XElement)

public HeidenhainParameterTable(XElement src)

Parameters

src XElement

Fields

MpAxisType

MP400: Axis type per axis (0=linear, 1=rotary, 2=spindle).

public const int MpAxisType = 400

Field Value

int

MpReferencePosition

MP410: Reference point position per axis.

public const int MpReferencePosition = 410

Field Value

int

MpStrokeLimitNeg

MP430: Negative stroke limit per axis.

public const int MpStrokeLimitNeg = 430

Field Value

int

MpStrokeLimitPos

MP420: Positive stroke limit per axis.

public const int MpStrokeLimitPos = 420

Field Value

int

Properties

AxisMp400

MP400: Axis type per axis. See AxisType. See AxisNames.

public Dictionary<string, int> AxisMp400 { get; set; }

Property Value

Dictionary<string, int>

AxisMp410

MP410: Reference point position per axis. See IHomeMcConfig.

public Dictionary<string, double> AxisMp410 { get; set; }

Property Value

Dictionary<string, double>

AxisTypeParamId

Parameter/MD/MP number for axis type (linear/rotary/spindle).

protected override int AxisTypeParamId { get; }

Property Value

int

Default3Axis

Default 3-axis Heidenhain milling machine.

public static HeidenhainParameterTable Default3Axis { get; }

Property Value

HeidenhainParameterTable

IdAttributeName

XML attribute name for the parameter ID (“ParamId”, “MdId”, “MpId”).

protected override string IdAttributeName { get; }

Property Value

string

MaxSpindleSpeed_rpm

Maximum spindle speed in RPM. Delegates to Mp100.

public double MaxSpindleSpeed_rpm { get; set; }

Property Value

double

Mp100

MP100: Maximum spindle speed (RPM). See MaxSpindleSpeed_rpm.

public double Mp100 { get; set; }

Property Value

double

Mp101

MP101: Tool axis direction (0=Z, 1=Y, 2=X). See ToolAxisDirection.

public int Mp101 { get; set; }

Property Value

int

ReferencePositionParamId

Parameter/MD/MP number for reference position (G28 home).

protected override int ReferencePositionParamId { get; }

Property Value

int

ToolAxisDirection

Tool axis direction (0=Z, 1=Y, 2=X). Delegates to Mp101.

public int ToolAxisDirection { get; set; }

Property Value

int

XName

public static string XName { get; }

Property Value

string

Methods

MakeXmlSource(string, string, bool)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

public override XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

exhibitionOnly bool

if true, the extended file creation is suppressed.

Returns

XElement

An XML element representing the object's state

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.