Class HeidenhainPlaneSyntax
- Namespace
- Hi.NcParsers.ParsingSyntaxs.Heidenhain
- Assembly
- HiMech.dll
Syntax for Heidenhain PLANE command. Handles:
- PLANE RESET
- PLANE SPATIAL SPA SPB SPC SEQ+/- [COORD ROT|TABLE ROT] [MOVE|TURN|STAY]
- PLANE PROJECTED PROPR PROMIN ROT SEQ+/- [COORD ROT|TABLE ROT] [MOVE|TURN|STAY]
public class HeidenhainPlaneSyntax : ISituNcSyntax, INcSyntax, IMakeXmlSource
- Inheritance
-
HeidenhainPlaneSyntax
- Implements
- Inherited Members
- Extension Methods
Examples
Input: PLANE SPATIAL SPA+30 SPB+0 SPC-10 SEQ+ COORD ROT TURN Output:
{
"PLANE": {
"Mode": "SPATIAL",
"SPA": "+30",
"SPB": "+0",
"SPC": "-10",
"SEQ": "+",
"Rot": "COORD",
"Positioning": "TURN"
}
}
Input: PLANE PROJECTED PROPR+30 PROMIN+0 ROT+45 SEQ- TABLE ROT MOVE Output:
{
"PLANE": {
"Mode": "PROJECTED",
"PROPR": "+30",
"PROMIN": "+0",
"ROT": "+45",
"SEQ": "-",
"Rot": "TABLE",
"Positioning": "MOVE"
}
}
Input: PLANE RESET Output:
{
"PLANE": {
"Mode": "RESET"
}
}
Constructors
HeidenhainPlaneSyntax()
public HeidenhainPlaneSyntax()
HeidenhainPlaneSyntax(XElement)
public HeidenhainPlaneSyntax(XElement src)
Parameters
srcXElement
Fields
ProjectedTagList
Projected tags for PLANE PROJECTED command. PROPR: projection angle, PROMIN: minimum angle, ROT: rotation of tilted plane.
public static readonly string[] ProjectedTagList
Field Value
- string[]
SpatialTagList
Spatial axis tags for PLANE SPATIAL command.
public static readonly string[] SpatialTagList
Field Value
- string[]
Properties
Name
public string Name { get; }
Property Value
XName
public static string XName { get; }
Property Value
Methods
Build(LazyLinkedListNode<SyntaxPiece>, List<INcDependency>, NcDiagnosticProgress)
Build syntax arrangement into the
syntaxPieceNode in-place.
public void Build(LazyLinkedListNode<SyntaxPiece> syntaxPieceNode, List<INcDependency> ncDependencyList, NcDiagnosticProgress ncDiagnosticProgress)
Parameters
syntaxPieceNodeLazyLinkedListNode<SyntaxPiece>ncDependencyListList<INcDependency>ncDiagnosticProgressNcDiagnosticProgress
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.