Table of Contents

Class SiemensMachineDataTable

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

Siemens Sinumerik machine data table. Stores machine data (MD numbers) as system and per-axis parameters.

MD10000–MD19999: General machine data. MD20000–MD29999: Axis-specific machine data. MD30000–MD39999: Axis-specific machine data (extended).

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

Constructors

SiemensMachineDataTable()

public SiemensMachineDataTable()

SiemensMachineDataTable(XElement)

public SiemensMachineDataTable(XElement src)

Parameters

src XElement

Fields

MdAxisType

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

public const int MdAxisType = 30300

Field Value

int

MdMaxAxisVelocity

MD32000: Max axis velocity per axis (mm/min or deg/min).

public const int MdMaxAxisVelocity = 32000

Field Value

int

MdMaxSpindleSpeed

MD35100: Maximum spindle speed (RPM).

public const int MdMaxSpindleSpeed = 35100

Field Value

int

MdReferencePosition

MD34010: Reference point position per axis.

public const int MdReferencePosition = 34010

Field Value

int

MdStrokeLimitNeg

MD36110: Negative stroke limit per axis.

public const int MdStrokeLimitNeg = 36110

Field Value

int

MdStrokeLimitPos

MD36100: Positive stroke limit per axis.

public const int MdStrokeLimitPos = 36100

Field Value

int

Properties

AxisMd30300

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

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

Property Value

Dictionary<string, int>

AxisMd34010

MD34010: Reference point position per axis. See IHomeMcConfig.

public Dictionary<string, double> AxisMd34010 { 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 Siemens milling machine.

public static SiemensMachineDataTable Default3Axis { get; }

Property Value

SiemensMachineDataTable

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 Md35100.

public double MaxSpindleSpeed_rpm { get; set; }

Property Value

double

Md35100

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

public double Md35100 { get; set; }

Property Value

double

ReferencePositionParamId

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

protected override int ReferencePositionParamId { get; }

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.