Class G43p4RtcpSyntax
- Namespace
- Hi.NcParsers.LogicSyntaxs
- Assembly
- HiMech.dll
Handles G43.4 RTCP (Rotary Tool Center Point) activation. Writes IToolHeightCompensationDef section (including the IsRotaryDynamic flag) and the ToolHeightCompensationSource entry in EndPointProgramToMcTransform — a tool-normal · offset_mm translation at the block endpoint ABC.
The RTCP kinematic rotary part (Pn→MC rigid transform) is orthogonal
to this syntax and is written by PivotTransformationSyntax
on every block, because rotary state remains in effect beyond
the RTCP modal (e.g. a non-RTCP G01 after G49 still
inherits the last ABC from the program).
The "rotary dynamic" distinction is captured by IsRotaryDynamic alone, and read by LinearMotionSyntax to pick ClLinear vs McLinear.
G43.4 is used by Fanuc, Mazak, Syntec, and Okuma. Siemens (TRAORI) and Heidenhain (M128) are handled by separate syntaxes. Must be placed after ToolHeightOffsetSyntax (to override the ToolHeightCompensation entry when RTCP is active) and before PivotTransformationSyntax (which runs last in the chain).
public class G43p4RtcpSyntax : ISituNcSyntax, INcSyntax, IMakeXmlSource
- Inheritance
-
G43p4RtcpSyntax
- Implements
- Inherited Members
- Extension Methods
Constructors
G43p4RtcpSyntax()
public G43p4RtcpSyntax()
G43p4RtcpSyntax(XElement)
public G43p4RtcpSyntax(XElement src)
Parameters
srcXElement
Properties
Name
Syntax kind name (typically the concrete type 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.