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
srcXElement
Fields
MpAxisType
MP400: Axis type per axis (0=linear, 1=rotary, 2=spindle).
public const int MpAxisType = 400
Field Value
MpReferencePosition
MP410: Reference point position per axis.
public const int MpReferencePosition = 410
Field Value
MpStrokeLimitNeg
MP430: Negative stroke limit per axis.
public const int MpStrokeLimitNeg = 430
Field Value
MpStrokeLimitPos
MP420: Positive stroke limit per axis.
public const int MpStrokeLimitPos = 420
Field Value
Properties
AxisMp400
public Dictionary<string, int> AxisMp400 { get; set; }
Property Value
AxisMp410
MP410: Reference point position per axis. See IHomeMcConfig.
public Dictionary<string, double> AxisMp410 { get; set; }
Property Value
AxisTypeParamId
Parameter/MD/MP number for axis type (linear/rotary/spindle).
protected override int AxisTypeParamId { get; }
Property Value
Default3Axis
Default 3-axis Heidenhain milling machine.
public static HeidenhainParameterTable Default3Axis { get; }
Property Value
IdAttributeName
XML attribute name for the parameter ID (“ParamId”, “MdId”, “MpId”).
protected override string IdAttributeName { get; }
Property Value
MaxSpindleSpeed_rpm
Maximum spindle speed in RPM. Delegates to Mp100.
public double MaxSpindleSpeed_rpm { get; set; }
Property Value
Mp100
MP100: Maximum spindle speed (RPM). See MaxSpindleSpeed_rpm.
public double Mp100 { get; set; }
Property Value
Mp101
MP101: Tool axis direction (0=Z, 1=Y, 2=X). See ToolAxisDirection.
public int Mp101 { get; set; }
Property Value
ReferencePositionParamId
Parameter/MD/MP number for reference position (G28 home).
protected override int ReferencePositionParamId { get; }
Property Value
ToolAxisDirection
Tool axis direction (0=Z, 1=Y, 2=X). Delegates to Mp101.
public int ToolAxisDirection { get; set; }
Property Value
XName
public static string XName { get; }
Property Value
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
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif 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.