Archived
709 lines
28 KiB
HTML
709 lines
28 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Class SiemensToolOffsetTable | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Class SiemensToolOffsetTable | HiAPI-C# 2025 ">
|
|
|
|
<meta name="description" content="Per-case Siemens tool offset table — the first concrete ($TC_DP model): one row per (tool number T, cutting edge D), each carrying the three length components + radius with their wear counterparts, plus a verbatim bag for the remaining $TC_DP indices (round-tripped, not consumed — see ). Effective values are geometry + wear — Sinumerik wear ($TC_DP12..15) is additive; a worn-down tool carries a negative wear value. Unconfigured (T, D) pairs return 0 per the interface contract. Also carries the map ($TC_TP2 analog, case-insensitive) so Siemens string tool calls (T="D8R1") can resolve to the int-keyed act chain — consumed by . Per-case editable data — reaches the pipeline through on the host's , never as a concrete instance baked into the shared runner. Deliberately separate from (MD-prefixed machine-fixed OEM data) — same split rationale as .">
|
|
<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 "{query}"">
|
|
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
|
<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.Siemens.SiemensToolOffsetTable">
|
|
|
|
|
|
|
|
<h1 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable" class="text-break">
|
|
Class SiemensToolOffsetTable
|
|
</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.Siemens.html">Siemens</a></dd></dl>
|
|
<dl><dt>Assembly</dt><dd>HiMech.dll</dd></dl>
|
|
</div>
|
|
|
|
<div class="markdown summary"><p>Per-case Siemens tool offset table — the first concrete
|
|
<a class="xref" href="Hi.NcParsers.Dependencys.Siemens.ISiemensToolOffsetConfig.html">ISiemensToolOffsetConfig</a> ($TC_DP model): one
|
|
<a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensToolEdgeOffset.html">SiemensToolEdgeOffset</a> row per (tool number T, cutting
|
|
edge D), each carrying the three length components + radius with their
|
|
wear counterparts, plus a verbatim bag for the remaining $TC_DP
|
|
indices (round-tripped, not consumed — see
|
|
<a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensToolEdgeOffset.html#Hi_NcParsers_Dependencys_Siemens_SiemensToolEdgeOffset_VerbatimDpFields">VerbatimDpFields</a>). Effective
|
|
values are geometry <b>+</b> wear —
|
|
Sinumerik wear ($TC_DP12..15) is additive; a worn-down tool carries a
|
|
negative wear value. Unconfigured (T, D) pairs return 0 per the
|
|
interface contract.</p>
|
|
<p>
|
|
Also carries the <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.html#Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_ToolNames">ToolNames</a> map ($TC_TP2 analog,
|
|
case-insensitive) so Siemens string tool calls (<code>T="D8R1"</code>)
|
|
can resolve to the int-keyed act chain — consumed by
|
|
<a class="xref" href="Hi.NcParsers.Semantics.ToolChangeSemantic.html">ToolChangeSemantic</a>.
|
|
</p>
|
|
<p>
|
|
Per-case editable data — reaches the pipeline through
|
|
<a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTableProxy.html">SiemensToolOffsetTableProxy</a> on the host's
|
|
<a class="xref" href="Hi.NcParsers.Dependencys.INcDependencyListHost.html#Hi_NcParsers_Dependencys_INcDependencyListHost_PerCaseNcDependencyList">PerCaseNcDependencyList</a>, never as a
|
|
concrete instance baked into the shared runner. Deliberately separate
|
|
from <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensMachineDataTable.html">SiemensMachineDataTable</a> (MD-prefixed machine-fixed
|
|
OEM data) — same split rationale as <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensFrameTable.html">SiemensFrameTable</a>.
|
|
</p>
|
|
</div>
|
|
<div class="markdown conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public class SiemensToolOffsetTable : INcDependency, IMakeXmlSource, ISiemensToolOffsetConfig</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">SiemensToolOffsetTable</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.Dependencys.Siemens.ISiemensToolOffsetConfig.html">ISiemensToolOffsetConfig</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<TSelf>(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<TSrc>(TSrc, Action<TSrc>)</a>
|
|
</div>
|
|
<div>
|
|
<a class="xref" href="Hi.Common.InvokeUtil.html#Hi_Common_InvokeUtil_SelfInvoke__2___0_System_Func___0___1__">InvokeUtil.SelfInvoke<TSrc, TDst>(TSrc, Func<TSrc, TDst>)</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_Siemens_SiemensToolOffsetTable__ctor_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.#ctor*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable__ctor" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.#ctor">
|
|
SiemensToolOffsetTable()
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Initializes an empty table.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public SiemensToolOffsetTable()</code></pre>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable__ctor_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.#ctor*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable__ctor_System_Xml_Linq_XElement_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.#ctor(System.Xml.Linq.XElement)">
|
|
SiemensToolOffsetTable(XElement)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Initializes a new instance by deserializing from <code class="paramref">src</code>.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public SiemensToolOffsetTable(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><p>XML element produced by <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.html#Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_MakeXmlSource_System_String_System_String_System_Boolean_">MakeXmlSource(string, string, bool)</a>.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="section" id="properties">Properties
|
|
</h2>
|
|
|
|
|
|
<a id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_Edges_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.Edges*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_Edges" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.Edges">
|
|
Edges
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Offset rows keyed by (tool number T, cutting edge D).</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Dictionary<(int Tool, int Edge), SiemensToolEdgeOffset> Edges { 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><(<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.valuetuple-system.int32,system.int32-.tool">Tool</a>, <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.valuetuple-system.int32,system.int32-.edge">Edge</a>), <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensToolEdgeOffset.html">SiemensToolEdgeOffset</a>></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_ToolNames_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.ToolNames*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_ToolNames" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.ToolNames">
|
|
ToolNames
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Tool name → tool number map ($TC_TP2 analog) used to resolve Siemens
|
|
string tool calls (<code>T=“name”</code>). Case-insensitive.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public Dictionary<string, int> ToolNames { 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><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>></dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_XName_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.XName*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_XName" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.XName">
|
|
XName
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>XML element name for serialization.</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_Siemens_SiemensToolOffsetTable_FindToolNumberByName_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.FindToolNumberByName*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_FindToolNumberByName_System_String_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.FindToolNumberByName(System.String)">
|
|
FindToolNumberByName(string)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Resolves a Siemens string tool name (<code>T=“name”</code>) to its tool
|
|
number via <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.html#Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_ToolNames">ToolNames</a>; <code>null</code> when unmapped.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public int? FindToolNumberByName(string toolName)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>toolName</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.int32">int</a>?</dt>
|
|
<dd></dd>
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_GetToolHeightOffset_mm_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.GetToolHeightOffset_mm*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_GetToolHeightOffset_mm_System_Int32_System_Int32_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.GetToolHeightOffset_mm(System.Int32,System.Int32)">
|
|
GetToolHeightOffset_mm(int, int)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets the effective tool height offset in mm for a specific tool
|
|
and cutting edge: $TC_DP3 (length 1, typically Z direction) plus
|
|
its additive wear $TC_DP12 — Sinumerik wear values are added, a
|
|
shortened tool carries negative wear.
|
|
Returns 0 if the tool/edge is not configured.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double GetToolHeightOffset_mm(int toolNumber, int edgeNumber)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>toolNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Tool number (T).</p>
|
|
</dd>
|
|
<dt><code>edgeNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Cutting edge number (D).</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_Siemens_SiemensToolOffsetTable_GetToolLengthOffset_mm_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.GetToolLengthOffset_mm*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_GetToolLengthOffset_mm_System_Int32_System_Int32_System_Int32_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.GetToolLengthOffset_mm(System.Int32,System.Int32,System.Int32)">
|
|
GetToolLengthOffset_mm(int, int, int)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets an additional length offset for the specified direction.
|
|
<code class="paramref">directionIndex</code>: 0 = L1 ($TC_DP3, Z), 1 = L2 ($TC_DP4, X), 2 = L3 ($TC_DP5, Y).
|
|
Returns 0 if not configured.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double GetToolLengthOffset_mm(int toolNumber, int edgeNumber, int directionIndex)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>toolNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
<dt><code>edgeNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd></dd>
|
|
<dt><code>directionIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_GetToolRadiusOffset_mm_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.GetToolRadiusOffset_mm*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_GetToolRadiusOffset_mm_System_Int32_System_Int32_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.GetToolRadiusOffset_mm(System.Int32,System.Int32)">
|
|
GetToolRadiusOffset_mm(int, int)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Gets the effective tool radius offset in mm for a specific tool
|
|
and cutting edge: $TC_DP6 (radius) plus its additive wear
|
|
$TC_DP15.
|
|
Returns 0 if the tool/edge is not configured.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public double GetToolRadiusOffset_mm(int toolNumber, int edgeNumber)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>toolNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Tool number (T).</p>
|
|
</dd>
|
|
<dt><code>edgeNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Cutting edge number (D).</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_Siemens_SiemensToolOffsetTable_MakeXmlSource_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.MakeXmlSource*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_MakeXmlSource_System_String_System_String_System_Boolean_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.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_Siemens_SiemensToolOffsetTable_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_Siemens_SiemensToolOffsetTable_Reg_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.Reg*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_Reg_Hi_Common_XmlUtils_XFactory_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.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_Siemens_SiemensToolOffsetTable_TryGetToolHeightOffset_mm_" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.TryGetToolHeightOffset_mm*"></a>
|
|
|
|
<h3 id="Hi_NcParsers_Dependencys_Siemens_SiemensToolOffsetTable_TryGetToolHeightOffset_mm_System_Int32_System_Int32_System_Double__" data-uid="Hi.NcParsers.Dependencys.Siemens.SiemensToolOffsetTable.TryGetToolHeightOffset_mm(System.Int32,System.Int32,System.Double@)">
|
|
TryGetToolHeightOffset_mm(int, int, out double)
|
|
|
|
</h3>
|
|
|
|
<div class="markdown level1 summary"><p>Attempts to get the effective tool height offset in mm ($TC_DP3
|
|
plus additive wear $TC_DP12) for a specific tool and cutting edge.
|
|
Returns <code>false</code> when the (tool, edge) pair has no configured
|
|
row, so the caller can fall back to another source (e.g. the
|
|
generic <a class="xref" href="Hi.NcParsers.Dependencys.IToolOffsetConfig.html">IToolOffsetConfig</a>). This is the only reliable
|
|
miss signal — 0.0 is a legal configured offset, so the zero
|
|
returned by <a class="xref" href="Hi.NcParsers.Dependencys.Siemens.ISiemensToolOffsetConfig.html#Hi_NcParsers_Dependencys_Siemens_ISiemensToolOffsetConfig_GetToolHeightOffset_mm_System_Int32_System_Int32_">GetToolHeightOffset_mm(int, int)</a> cannot distinguish
|
|
a vacant row from a configured zero.</p>
|
|
</div>
|
|
<div class="markdown level1 conceptual"></div>
|
|
|
|
<div class="codewrapper">
|
|
<pre><code class="lang-csharp hljs">public bool TryGetToolHeightOffset_mm(int toolNumber, int edgeNumber, out double offset_mm)</code></pre>
|
|
</div>
|
|
|
|
<h4 class="section">Parameters</h4>
|
|
<dl class="parameters">
|
|
<dt><code>toolNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Tool number (T).</p>
|
|
</dd>
|
|
<dt><code>edgeNumber</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
|
<dd><p>Cutting edge number (D).</p>
|
|
</dd>
|
|
<dt><code>offset_mm</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
|
<dd><p>The effective height offset; 0 on miss.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<h4 class="section">Returns</h4>
|
|
<dl class="parameters">
|
|
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
|
<dd></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>
|