218 lines
12 KiB
HTML
218 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Spindle Capability Page | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Spindle Capability Page | HiAPI-C# 2025 ">
|
|
|
|
|
|
<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="">
|
|
<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="">
|
|
<h1 id="spindle-capability-page">Spindle Capability Page</h1>
|
|
|
|
<p>The Spindle Capability page edits <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html">SpindleCapability</a> attached to the current project's <code>MachiningEquipment</code> (<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.MachiningEquipment.html">MachiningEquipment</a>; the <code>MachiningProject.MachiningEquipment</code> property itself is <code>internal</code> and therefore not individually linkable). It exposes metadata scalars (name / note / efficiency / working-temperature ceiling), the gear-shift spindle speed, dry-run coefficients, and the power / torque contour lists.</p>
|
|
<ul>
|
|
<li>Key Model: <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html">SpindleCapability</a></li>
|
|
<li>Assistant Model:
|
|
<ul>
|
|
<li><a class="xref" href="../../api/Hi.MachiningProcs.MachiningProject.html">MachiningProject</a></li>
|
|
<li><a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.MachiningEquipment.html">MachiningEquipment</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="NOTE">
|
|
<h5>Note</h5>
|
|
<p>This page exists only in the Quasar webservice. The WPF desktop app has no equivalent today — spindle-capability editing happens via XML through <code>ObjectManagementMenuButton</code> on the Equipment panel in WPF.</p>
|
|
</div>
|
|
<h2 id="layout">Layout</h2>
|
|
<ul>
|
|
<li>Spindle Capability Page
|
|
<ul>
|
|
<li>Metadata Card
|
|
<ul>
|
|
<li>Name TextField — <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html#Hi_Milling_SpindleCapability_Name">Name</a>.</li>
|
|
<li>Note TextField — <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html#Hi_Milling_SpindleCapability_Note">Note</a>.</li>
|
|
<li>Energy Efficiency NumberField — <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html#Hi_Milling_SpindleCapability_EnergyEfficiency">EnergyEfficiency</a>.</li>
|
|
<li>Working Temperature Upper Boundary NumberField (°C) — <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html#Hi_Milling_SpindleCapability_WorkingTemperatureUpperBoundary_C">WorkingTemperatureUpperBoundary_C</a>.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Gear Shift Card
|
|
<ul>
|
|
<li>Has-Gear-Shift CheckBox
|
|
<ul>
|
|
<li>Flips <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html#Hi_Milling_SpindleCapability_GearShiftSpindleSpeed_rpm">GearShiftSpindleSpeed_rpm</a> between <code>null</code> (no mechanism) and <code>0</code> (mechanism present; operator dials in the speed).</li>
|
|
</ul>
|
|
</li>
|
|
<li>Gear Shift Spindle Speed NumberField (rpm) — visible when the checkbox is on.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Dry Run Card
|
|
<ul>
|
|
<li>Friction Power Coefficient NumberField (mW/rpm) — <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html#Hi_Milling_SpindleCapability_DryRunFrictionPowerCoefficient_mWdrpm">DryRunFrictionPowerCoefficient_mWdrpm</a>.</li>
|
|
<li>Windage Power Coefficient NumberField (pW/rpm³) — <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html#Hi_Milling_SpindleCapability_DryRunWindagePowerCoefficient_pWdrpm3">DryRunWindagePowerCoefficient_pWdrpm3</a>.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Power Contours Table
|
|
<ul>
|
|
<li>Rows of <code>{ duration key, point count, delete }</code>.</li>
|
|
<li>Add Contour Button — opens a duration prompt (blank → continuous / ∞) and clones the first existing contour's points as a seed.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Torque Contours Table — same shape as the Power Contours table.</li>
|
|
<li>File Menu
|
|
<ul>
|
|
<li>Load… — prompts for XML text (read-only paste) plus an optional project-relative path; POSTs to <code>/load</code> which replaces <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html">SpindleCapability</a> and stamps <code>SpindleCapabilityFile</code>.</li>
|
|
<li>Reload — re-reads the file last stamped on the equipment.</li>
|
|
<li>Save As… — pulls serialised XML via <code>GET /xml</code> and downloads it as a Blob; optionally updates <code>SpindleCapabilityFile</code>.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="behavior">Behavior</h2>
|
|
<ul>
|
|
<li><strong>Rpm ↔ cycles/s conversion lives server-side.</strong> <a class="xref" href="../../api/Hi.Milling.SpindleCapability.html">SpindleCapability</a> stores spindle speed in cycles/s (Hz); the controller converts to rpm in DTOs and back on POST. The frontend only sees rpm.</li>
|
|
<li><strong>Nullable gear shift.</strong> The Has-Gear-Shift checkbox flips the value between <code>null</code> (no gear-shift mechanism) and <code>0</code> (mechanism present; operator dials in the speed).</li>
|
|
<li><strong>Project-scoped.</strong> Unlike <code>GeneralMechanism</code> (see <a href="mech-builder-page.html">Mechanism Builder Page</a>), the spindle capability lives on <code>LocalProjectService.MachiningEquipment</code> and is persisted as part of the <code>.hincproj</code> save.</li>
|
|
<li><strong>Contour seed.</strong> Add Contour clones the first existing contour so operators rarely draw from scratch; per-point drag editing is deferred (see below).</li>
|
|
</ul>
|
|
<h2 id="source-code-path">Source Code Path</h2>
|
|
<p>See <a href="../index.html">HiNC App Anatomy</a> for git repository links.</p>
|
|
<h3 id="wpf-application-source-code-path">WPF Application Source Code Path</h3>
|
|
<ul>
|
|
<li>Not implemented. Edit via <code>ObjectManagementMenuButton</code> on the Equipment panel using a <code>.SpindleCapability</code> XML file.</li>
|
|
</ul>
|
|
<h3 id="web-page-application-source-code-path">Web Page Application Source Code Path</h3>
|
|
<p>HiNC-2025-webservice (Quasar CLI SPA):</p>
|
|
<ul>
|
|
<li><code>wwwroot-src/src/pages/SpindleCapabilityPage.vue</code> — routed page at <code>/equipment/spindle</code>.</li>
|
|
<li><code>wwwroot-src/src/api/spindleCapability.ts</code> — typed wrapper over <code>/api/mech/spindle-capability/*</code>.</li>
|
|
<li><code>wwwroot-src/src/router/routes.ts</code> — <code>/equipment/spindle</code> entry.</li>
|
|
<li><code>wwwroot-src/src/layouts/AppMenuBar.vue</code> — <code>Environment → Spindle Capability</code> menu entry between Controller and Tool House.</li>
|
|
<li><code>Mech/SpindleCapabilityController.cs</code> — REST endpoints:
|
|
<ul>
|
|
<li><code>GET /api/mech/spindle-capability</code> — flat snapshot (metadata + contour keys).</li>
|
|
<li><code>GET /power-contours</code>, <code>GET /torque-contours</code> — per-axis contour lists.</li>
|
|
<li><code>PUT /name | /note | /energy-efficiency | /working-temperature-upper-boundary-c | /gear-shift-spindle-speed-rpm | /dry-run-friction-power-coefficient-mwdrpm | /dry-run-windage-power-coefficient-pwdrpm3</code> — one scalar each.</li>
|
|
<li><code>POST /power-contours | /torque-contours</code> — add one contour.</li>
|
|
<li><code>DELETE /power-contours/{key} | /torque-contours/{key}</code> — remove one contour (<code>{key}</code> accepts numeric strings and <code>"infinity"</code>).</li>
|
|
<li><code>GET /xml</code> — serialises to XML text.</li>
|
|
<li><code>POST /load | /reload</code> — XML round-trip.</li>
|
|
<li><code>PUT /capability-file</code> — set <code>SpindleCapabilityFile</code> without reloading.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="deferred">Deferred</h2>
|
|
<ul>
|
|
<li><strong>Full contour-curve editor</strong> (per-point drag on a chart). Tracked with the uPlot chart engine introduced in Section O of the pages-migration plan.</li>
|
|
<li><strong><code>ObjectManagementMenuButton</code> integration.</strong> The File menu currently uses a plain XML-paste prompt; revisit once the widget gains an “apply XML without a project-scoped target” mode.</li>
|
|
</ul>
|
|
<h2 id="related-pages">Related Pages</h2>
|
|
<ul>
|
|
<li><a href="mech-builder-page.html">Mechanism Builder Page</a> — same file-level IO pattern (Load / Reload / Save As) but user-scoped rather than project-scoped.</li>
|
|
<li><a href="background-coolant-page.html">Background / Coolant Page</a> — sibling under <code>Environment</code>, also targets <code>MachiningEquipment</code>.</li>
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<div class="contribution d-print-none">
|
|
</div>
|
|
|
|
<div class="next-article d-print-none border-top" id="nextArticle"></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>
|