This repository has been archived on 2026-10-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
HiNC-2025-win-desktop-Deploy/App/wwwroot/HiAPI-docsite/api/Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html
T

886 lines
34 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class HeidenhainQParameterTable | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class HeidenhainQParameterTable | HiAPI-C# 2025 ">
<meta name="description" content="Heidenhain Q-parameter table for the ranges that persist on a real TNC: free parameters Q0-Q99 (survive power cycles) and the permanent QR0-QR499 range (nonvolatile, backed up with the machine). Like the Siemens sibling , this table is not session-reset and is serialised into the project file. The other Q ranges deliberately live elsewhere: Q100-Q199 are controller-written system parameters — returns null for them (read fail-soft, no fabricated values) and the reading syntax refuses writes; Q200+ are volatile cycle/user parameters carried block-to-block in Vars.Volatile (JSON dataflow, cleared at program end) — also returns null so the evaluator&#39;s chain falls through to . Reads flow through (registered automatically because the table sits on the runner&#39;s effective NcDependencyList); writes flow through , which consumes literal Parsing.Assignments.Qn entries after has normalized expression RHS to literals. Vacant is represented by null: either the dictionary has no entry for the key, or the entry maps to null — both read identically. A vacant read failing loud (Variable--Vacant via the evaluator) surfaces missing setup data instead of silently machining with 0.">
<link rel="icon" href="../img/HiAPI.favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="toc.html">
<meta name="docfx:rel" content="../">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
<meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../img/HiAPI.logo.png" alt="">
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable">
<h1 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable" class="text-break">
Class HeidenhainQParameterTable
</h1>
<div class="facts text-secondary">
<dl><dt>Namespace</dt><dd><a class="xref" href="Hi.html">Hi</a>.<a class="xref" href="Hi.NcParsers.html">NcParsers</a>.<a class="xref" href="Hi.NcParsers.Dependencys.html">Dependencys</a>.<a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.html">Heidenhain</a></dd></dl>
<dl><dt>Assembly</dt><dd>HiMech.dll</dd></dl>
</div>
<div class="markdown summary"><p>Heidenhain Q-parameter table for the ranges that persist on a real TNC:
free parameters <code>Q0-Q99</code> (survive power cycles) and the permanent
<code>QR0-QR499</code> range (nonvolatile, backed up with the machine). Like
the Siemens sibling <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensRParameterTable.html">SiemensRParameterTable</a>, this
table is not session-reset and is serialised into the project file.</p>
<p>
The other Q ranges deliberately live elsewhere: <code>Q100-Q199</code> are
controller-written system parameters — <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Get_System_String_">Get(string)</a> returns
<code>null</code> for them (read fail-soft, no fabricated values) and the
reading syntax refuses writes; <code>Q200+</code> are volatile cycle/user
parameters carried block-to-block in <code>Vars.Volatile</code> (JSON
dataflow, cleared at program end) — <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Get_System_String_">Get(string)</a> also returns
<code>null</code> so the evaluator's chain falls through to
<a class="xref" href="Hi.NcParsers.EvaluationSyntaxs.Heidenhain.HeidenhainVolatileQLookup.html">HeidenhainVolatileQLookup</a>.
</p>
<p>
Reads flow through <a class="xref" href="Hi.NcParsers.EvaluationSyntaxs.Evaluation.IVariableLookup.html#Hi_NcParsers_EvaluationSyntaxs_Evaluation_IVariableLookup_Get_System_String_">Get(string)</a> (registered
automatically because the table sits on the runner's effective
<code>NcDependencyList</code>); writes flow through
<a class="xref" href="Hi.NcParsers.EvaluationSyntaxs.Heidenhain.HeidenhainQParameterReadingSyntax.html">HeidenhainQParameterReadingSyntax</a>,
which consumes literal <code>Parsing.Assignments.Qn</code> entries after
<a class="xref" href="Hi.NcParsers.EvaluationSyntaxs.VariableEvaluatorSyntax.html">VariableEvaluatorSyntax</a> has normalized
expression RHS to literals.
</p>
<p>
Vacant is represented by <code>null</code>: either the dictionary has no entry
for the key, or the entry maps to <code>null</code> — both read identically. A
vacant read failing loud (Variable--Vacant via the evaluator) surfaces
missing setup data instead of silently machining with 0.
</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class HeidenhainQParameterTable : INcDependency, IMakeXmlSource, IVariableLookup</code></pre>
</div>
<dl class="typelist inheritance">
<dt>Inheritance</dt>
<dd>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
<div><span class="xref">HeidenhainQParameterTable</span></div>
</dd>
</dl>
<dl class="typelist implements">
<dt>Implements</dt>
<dd>
<div><a class="xref" href="Hi.NcParsers.Dependencys.INcDependency.html">INcDependency</a></div>
<div><a class="xref" href="Hi.Common.XmlUtils.IMakeXmlSource.html">IMakeXmlSource</a></div>
<div><a class="xref" href="Hi.NcParsers.EvaluationSyntaxs.Evaluation.IVariableLookup.html">IVariableLookup</a></div>
</dd>
</dl>
<dl class="typelist inheritedMembers">
<dt>Inherited Members</dt>
<dd>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
</div>
</dd></dl>
<dl class="typelist extensionMethods">
<dt>Extension Methods</dt>
<dd>
<div>
<a class="xref" href="Hi.Common.DuplicateUtil.html#Hi_Common_DuplicateUtil_TryDuplicate__1___0_System_Object___">DuplicateUtil.TryDuplicate&lt;TSelf&gt;(TSelf, params object[])</a>
</div>
<div>
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__1___0_System_Action___0__">InvokeUtil.SelfInvoke&lt;TSrc&gt;(TSrc, Action&lt;TSrc&gt;)</a>
</div>
<div>
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__2___0_System_Func___0___1__">InvokeUtil.SelfInvoke&lt;TSrc, TDst&gt;(TSrc, Func&lt;TSrc, TDst&gt;)</a>
</div>
<div>
<a class="xref" href="Hi.Coloring.ColorUtil.html#Hi_Coloring_ColorUtil_GetGloomyColor_System_Object_System_Double_System_Double_">ColorUtil.GetGloomyColor(object, double, double)</a>
</div>
<div>
<a class="xref" href="Hi.Common.NameUtil.html#Hi_Common_NameUtil_GetSelectionName_System_Object_">NameUtil.GetSelectionName(object)</a>
</div>
<div>
<a class="xref" href="Hi.Common.StringUtil.html#Hi_Common_StringUtil_GetPropertyStringIfToStringNotOverloaded_System_Object_System_Boolean_System_Boolean_">StringUtil.GetPropertyStringIfToStringNotOverloaded(object, bool, bool)</a>
</div>
<div>
<a class="xref" href="Hi.Parallels.LockUtil.html#Hi_Parallels_LockUtil_Lock_System_Object_">LockUtil.Lock(object)</a>
</div>
</dd></dl>
<h2 class="section" id="constructors">Constructors
</h2>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable__ctor_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.#ctor*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable__ctor" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.#ctor">
HeidenhainQParameterTable()
</h3>
<div class="markdown level1 summary"><p>Empty table.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public HeidenhainQParameterTable()</code></pre>
</div>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable__ctor_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.#ctor*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable__ctor_System_Xml_Linq_XElement_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.#ctor(System.Xml.Linq.XElement)">
HeidenhainQParameterTable(XElement)
</h3>
<div class="markdown level1 summary"><p>Loads from XML produced by <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_MakeXmlSource_System_String_System_String_System_Boolean_">MakeXmlSource(string, string, bool)</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public HeidenhainQParameterTable(XElement src)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>src</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="fields">Fields
</h2>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMax" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.PersistentMax">
PersistentMax
</h3>
<div class="markdown level1 summary"><p>Inclusive upper bound of the persistent free range (<code>Q99</code>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int PersistentMax = 99</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMin" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.PersistentMin">
PersistentMin
</h3>
<div class="markdown level1 summary"><p>Inclusive lower bound of the persistent free range (<code>Q0</code>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int PersistentMin = 0</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMax" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.QRMax">
QRMax
</h3>
<div class="markdown level1 summary"><p>Inclusive upper bound of the permanent QR range (<code>QR499</code>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int QRMax = 499</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMin" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.QRMin">
QRMin
</h3>
<div class="markdown level1 summary"><p>Inclusive lower bound of the permanent QR range (<code>QR0</code>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int QRMin = 0</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_SystemMax" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.SystemMax">
SystemMax
</h3>
<div class="markdown level1 summary"><p>Inclusive upper bound of the read-only system range (<code>Q199</code>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int SystemMax = 199</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_SystemMin" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.SystemMin">
SystemMin
</h3>
<div class="markdown level1 summary"><p>Inclusive lower bound of the read-only system range (<code>Q100</code>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int SystemMin = 100</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="properties">Properties
</h2>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRVariables_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.QRVariables*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRVariables" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.QRVariables">
QRVariables
</h3>
<div class="markdown level1 summary"><p>Backing store of the permanent QR range. Key = QR number (e.g. 5 for
<code>QR5</code>); same vacant semantics as <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Variables">Variables</a>. Keys are
constrained to <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMin">QRMin</a>..<a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMax">QRMax</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Dictionary&lt;int, double?&gt; QRVariables { get; set; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Variables_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.Variables*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Variables" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.Variables">
Variables
</h3>
<div class="markdown level1 summary"><p>Backing store of the free persistent range. Key = Q number (e.g. 1 for
<code>Q1</code>). Value <code>null</code> = vacant; a missing key is also vacant.
Keys are constrained to <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMin">PersistentMin</a>..<a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMax">PersistentMax</a>;
out-of-range writes are silently ignored.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Dictionary&lt;int, double?&gt; Variables { get; set; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_XName_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.XName*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_XName" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.XName">
XName
</h3>
<div class="markdown level1 summary"><p>XML element name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string XName { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Get_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.Get*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Get_System_String_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.Get(System.String)">
Get(string)
</h3>
<div class="markdown level1 summary"><p>Returns the value of the variable identified by <code class="paramref">key</code>
(e.g. <code>&quot;#124&quot;</code>), or <code>null</code> if vacant or unknown to this lookup.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public double? Get(string key)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?</dt>
<dd></dd>
</dl>
<h4 class="section" id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Get_System_String__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>Routes <code>Qn</code> keys in the persistent free range and <code>QRn</code> keys
(canonical uppercase from
<a class="xref" href="Hi.NcParsers.EvaluationSyntaxs.Heidenhain.HeidenhainExpressionParser.html">HeidenhainExpressionParser</a>;
lowercase from raw captures also resolves) to their stores. All other
keys — including the system range <code>Q100-Q199</code> (read fail-soft by
design), the volatile range <code>Q200+</code> (lives in
<code>Vars.Volatile</code>) and <code>QL</code>/<code>QS</code> — return <code>null</code> so
the evaluator's lookup chain falls through.</p>
</div>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_GetQRVariable_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.GetQRVariable*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_GetQRVariable_System_Int32_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.GetQRVariable(System.Int32)">
GetQRVariable(int)
</h3>
<div class="markdown level1 summary"><p>Reads a permanent QR parameter (<code>QR0-QR499</code>). Returns <code>null</code>
for vacant.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public double? GetQRVariable(int id)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>id</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Parameter number in <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMin">QRMin</a>..<a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMax">QRMax</a>.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_GetVariable_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.GetVariable*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_GetVariable_System_Int32_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.GetVariable(System.Int32)">
GetVariable(int)
</h3>
<div class="markdown level1 summary"><p>Reads a free Q parameter (<code>Q0-Q99</code>). Returns <code>null</code> for
vacant (either the entry is absent or stored as <code>null</code>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public double? GetVariable(int id)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>id</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Parameter number in <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMin">PersistentMin</a>..<a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMax">PersistentMax</a>.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_MakeXmlSource_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.MakeXmlSource*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_MakeXmlSource_System_String_System_String_System_Boolean_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.MakeXmlSource(System.String,System.String,System.Boolean)">
MakeXmlSource(string, string, bool)
</h3>
<div class="markdown level1 summary"><p>Creates an XML representation of the object.
This method may also generate additional resources such as related files.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>baseDirectory</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The base directory for resolving relative paths</p>
</dd>
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The relative file path for the XML source</p>
</dd>
<dt><code>exhibitionOnly</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p>if true, the extended file creation is suppressed.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.linq.xelement">XElement</a></dt>
<dd><p>An XML element representing the object's state</p>
</dd>
</dl>
<h4 class="section" id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_MakeXmlSource_System_String_System_String_System_Boolean__remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The <code class="paramref">baseDirectory</code> is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.</p>
</div>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Reg_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.Reg*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_Reg_Hi_Common_XmlUtils_XFactory_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.Reg(Hi.Common.XmlUtils.XFactory)">
Reg(XFactory)
</h3>
<div class="markdown level1 summary"><p>Registers this type's deserializer with the given <a class="xref" href="Hi.Common.XmlUtils.XFactory.html">XFactory</a>
(or <a class="xref" href="Hi.Common.XmlUtils.XFactory.html#Hi_Common_XmlUtils_XFactory_Default">Default</a> when <code class="paramref">factory</code> is
<code>null</code>). Idempotent.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Reg(XFactory factory = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>factory</code> <a class="xref" href="Hi.Common.XmlUtils.XFactory.html">XFactory</a></dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_SetQRVariable_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.SetQRVariable*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_SetQRVariable_System_Int32_System_Nullable_System_Double__" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.SetQRVariable(System.Int32,System.Nullable{System.Double})">
SetQRVariable(int, double?)
</h3>
<div class="markdown level1 summary"><p>Writes a permanent QR parameter. Pass <code>null</code> to set vacant.
Ignores ids outside <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMin">QRMin</a>..<a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_QRMax">QRMax</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void SetQRVariable(int id, double? value)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>id</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Parameter number.</p>
</dd>
<dt><code>value</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?</dt>
<dd><p>New value, or <code>null</code> for vacant.</p>
</dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_SetVariable_" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.SetVariable*"></a>
<h3 id="Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_SetVariable_System_Int32_System_Nullable_System_Double__" data-uid="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.SetVariable(System.Int32,System.Nullable{System.Double})">
SetVariable(int, double?)
</h3>
<div class="markdown level1 summary"><p>Writes a free Q parameter. Pass <code>null</code> to set vacant. Ignores ids
outside <a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMin">PersistentMin</a>..<a class="xref" href="Hi.NcParsers.Dependencys.Heidenhain.HeidenhainQParameterTable.html#Hi_NcParsers_Dependencys_Heidenhain_HeidenhainQParameterTable_PersistentMax">PersistentMax</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void SetVariable(int id, double? value)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>id</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>Parameter number.</p>
</dd>
<dt><code>value</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>?</dt>
<dd><p>New value, or <code>null</code> for vacant.</p>
</dd>
</dl>
</article>
<div class="contribution d-print-none">
</div>
</div>
<div class="affix">
<nav id="affix"></nav>
</div>
</main>
<div class="container-xxl search-results" id="search-results"></div>
<footer class="border-top text-secondary">
<div class="container-xxl">
<div class="flex-fill">
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
</div>
</div>
</footer>
</body>
</html>