Class ToolingMcConfig
- Namespace
- Hi.NcParsers.Dependencys.Generic
- Assembly
- HiMech.dll
HiNC-specific: machine position axes move to during tool change (M06). Not a standard Fanuc parameter — in real Fanuc, tool change motion is programmed in the macro program (O9006). Each axis value: a position to move to, or NaN to stay.
public class ToolingMcConfig : IToolingMcConfig, INcDependency, IMakeXmlSource
- Inheritance
-
ToolingMcConfig
- Implements
- Inherited Members
- Extension Methods
Constructors
ToolingMcConfig()
public ToolingMcConfig()
ToolingMcConfig(XElement)
public ToolingMcConfig(XElement src)
Parameters
srcXElement
Properties
AxisPositions
Per-axis tooling positions. NaN means the axis stays where it is.
public Dictionary<string, double> AxisPositions { get; set; }
Property Value
Default3Axis
Default: XY stay, Z moves to 0, rotary axes move to 0.
public static ToolingMcConfig Default3Axis { get; }
Property Value
XName
public static string XName { get; }
Property Value
Methods
GetToolingPosition(string)
Gets the tooling position for a specific axis. Returns NaN if the axis should stay where it is. Returns null if the axis has no tooling position configured.
public double? GetToolingPosition(string axisName)
Parameters
axisNamestring
Returns
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public 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.
SetToolingPosition(string, double)
Sets the tooling position for a specific axis. Use NaN to indicate the axis should stay.
public void SetToolingPosition(string axisName, double value)