Class HeidenhainQParameterReadingSyntax
- Namespace
- Hi.NcParsers.EvaluationSyntaxs.Heidenhain
- Assembly
- HiMech.dll
Obtains values for Heidenhain Q parameters by consuming literal numeric
assignments from Parsing.Assignments.Qn/QRn and routing
them by id range — one reader for the single Q key shape, range
routing inside (the Heidenhain analogue of the Fanuc range-routed reader
trio):
Q0-Q99→ HeidenhainQParameterTable free range (hincproj-persisted; the table is the single source of truth — no JSON mirror).QRn→ the same table's permanent QR store.Q100-Q199→ controller-written system parameters: the write is consumed but not applied, with aHeidenhainQ--SystemReadOnlywarning (no fabricated values).Q200+→ volatile range: dict-merged intoVars.Volatilewith canonicalQ+id keys, carried block-to-block like the Fanuc VolatileVariableReadingSyntax; cleared at program end by ProgramEndCleanSyntax.
The carry of the previous block's Vars.Volatile happens on every
block regardless of assignments, so the single-step traceback contract of
HeidenhainVolatileQLookup holds.
Only literal numeric RHS values are consumed
(Q1 = 5000 ✓; Q1 = Q1*.75 ✗). Non-literal RHS entries are
left untouched in Parsing.Assignments;
VariableEvaluatorSyntax resolves them to literals earlier
on the same block, so by the time this syntax runs, every evaluable RHS
is literal. The two syntaxes are decoupled.
public class HeidenhainQParameterReadingSyntax : ISituNcSyntax, INcSyntax, IMakeXmlSource
- Inheritance
-
HeidenhainQParameterReadingSyntax
- Implements
- Inherited Members
- Extension Methods
Examples
#BeforeBuild: (with a HeidenhainQParameterTable on the dependency list; the literal moves into the table)
{
"Parsing": { "Assignments": { "Q1": "300" } }
}
#AfterBuild:
{}
Constructors
HeidenhainQParameterReadingSyntax()
Default constructor.
public HeidenhainQParameterReadingSyntax()
HeidenhainQParameterReadingSyntax(XElement)
Loads from an XML element produced by MakeXmlSource(string, string, bool). No state to deserialise.
public HeidenhainQParameterReadingSyntax(XElement src)
Parameters
srcXElement
Properties
Name
Syntax kind name (typically the concrete type name).
public string Name { get; }
Property Value
XName
XML element name for Generators registration.
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.
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
factoryXFactory