Table of Contents

Class HeidenhainPivotTransformationSyntax

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

Heidenhain pivot gate over the shared engine (PivotTransformUtil): writes the PivotTransformSource entry on blocks where commanded XYZ needs the Pn→MC kinematic rigid transform — an active tilted plane (HeidenhainPlaneTiltSyntax's PLANE SPATIAL term, or a mixed-dialect G68/G68.2 term), an active RTCP modal (RtcpTerms on the ToolHeightCompensation section — the term check covers RTCP blocks whose rotary state is stable, which the Dynamic-entry branch alone would miss), or a Dynamic chain entry.

The third sibling gate after PivotTransformationSyntax (ISO/Fanuc) and SiemensPivotTransformationSyntax; all write the identical JSON vocabulary through the shared engine and only one gate is registered per brand pipeline. Heidenhain has no plain-geometry-frame exclusion (klartext datum shifts use their own chain sources, never TiltTransform). Same chain-position contract: after all Pn-frame writers, so the PivotTransform entry lands last.

public class HeidenhainPivotTransformationSyntax : ISituNcSyntax, INcSyntax, IMakeXmlSource
Inheritance
HeidenhainPivotTransformationSyntax
Implements
Inherited Members
Extension Methods

Examples

Real-kinematics cases below wire TestDeps.CodeKinematics with the default chain code [O][Z][A][w];[O][Y][X][B][S][t] — a table-A / head-B 5-axis machine (see PivotTransformationSyntax's corpus notes for the zero-offset chain caveats).

Plain-mode skip — no tilt, no RTCP: untouched.

#BeforeBuild:
{}
#AfterBuild:
{}
Indexed rotary without tilt/RTCP (the inactive G69 sentinel) — plain mode, the gate must not fold the pivot: #BeforeBuild:
{
  "TiltTransform": { "Term": "G69" },
  "MachineCoordinateState": { "A": 45 }
}
#AfterBuild:
{
  "TiltTransform": { "Term": "G69" },
  "MachineCoordinateState": { "A": 45 }
}
Active M128 RTCP signalled by the ToolHeightCompensation term — the TestDeps.Kinematics stub makes the engine's pivot matrix collapse to identity; no Dynamic entry exists (stable rotary), so the entry stays Static — the branch the Dynamic-only detection would miss: #BeforeBuild:
{
  "ToolHeightCompensation": { "Offset_mm": 50, "Term": "M128", "OffsetId": 1 }
}
#AfterBuild:
{
  "ToolHeightCompensation": { "Offset_mm": 50, "Term": "M128", "OffsetId": 1 },
  "ProgramToMcTransform": [
    {
      "Source": "PivotTransform",
      "Kind": "Static",
      "Mat4d": [1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1]
    }
  ]
}
Active PLANE SPATIAL with an indexed table angle — real kinematics: the engine folds the table-A Rx(45°) rigid matrix, the same math the ISO sibling produces for G68.2: #BeforeBuild:
{
  "TiltTransform": { "Term": "PLANE SPATIAL" },
  "MachineCoordinateState": { "A": 45 }
}
#AfterBuild:
{
  "TiltTransform": { "Term": "PLANE SPATIAL" },
  "MachineCoordinateState": { "A": 45 },
  "ProgramToMcTransform": [
    {
      "Source": "PivotTransform",
      "Kind": "Static",
      "Mat4d": [
        1, 0, 0, 0,
        0, 0.7071067811865475, -0.7071067811865475, 0,
        0, 0.7071067811865475, 0.7071067811865475, 0,
        0, 0, 0, 1
      ]
    }
  ]
}

Constructors

HeidenhainPivotTransformationSyntax()

Initializes a new instance with default settings.

public HeidenhainPivotTransformationSyntax()

HeidenhainPivotTransformationSyntax(XElement)

Initializes a new instance by deserializing from the given XML element.

public HeidenhainPivotTransformationSyntax(XElement src)

Parameters

src XElement

Source XML element.

Properties

Name

Syntax kind name (typically the concrete type name).

public string Name { get; }

Property Value

string

XName

XML element name used to register this syntax with XFactory.

public static string XName { get; }

Property Value

string

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

syntaxPieceNode LazyLinkedListNode<SyntaxPiece>
ncDependencyList List<INcDependency>
ncDiagnosticProgress NcDiagnosticProgress

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

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.

Reg(XFactory)

Registers this type's deserializer with the given XFactory (or Default when factory is null). Idempotent.

public static void Reg(XFactory factory = null)

Parameters

factory XFactory