2025-07-18 15:38:28 +08:00

174 lines
7.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>建立虛擬機床 | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="建立虛擬機床 | 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 &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="">
<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="建立虛擬機床">建立虛擬機床</h1>
<p>完成以下步驟以建立與使用虛擬機床:</p>
<ol>
<li><p>使用機構建構器建立拓樸結構。</p>
<ol>
<li>拓樸結構裏特定的 連接(<code>Branch</code>)名稱需要用相對應的運動軸關鍵字設定。
<ul>
<li>相應於運動方式的線性運動軸關鍵字為 <code>X</code><code>Y</code><code>Z</code></li>
<li>相應於運動方式的旋轉運動軸關鍵字為 <code>A</code><code>B</code><code>C</code></li>
</ul>
</li>
<li>拓樸結構裏特定的 錨點(<code>Anchor</code>)名稱需要用相對應的關鍵字設定。
<ul>
<li>關鍵字 <code>O</code> 為 接地錨點。</li>
<li>關鍵字 <code>base</code> 為基座。</li>
<li>關鍵字 <code>t</code> 為 刀具端錨點。用於連接刀具。</li>
<li>關鍵字 <code>w</code> 為 工作臺端錨點。用於連接夾具或工件。</li>
</ul>
</li>
</ol>
<blockquote>
<p><strong>注意</strong></p>
<p>關鍵字有區分大小寫。</p>
</blockquote>
</li>
<li><p>對錨點設定幾何形狀。也可以不設定。</p>
</li>
<li><p>將拓樸結構存成工具機檔案。</p>
</li>
</ol>
<h2 id="最佳實作">最佳實作</h2>
<p>最方便的做法是在CAD軟件中組好機台將運動元件擺置機械原點<a id="fnref:1" href="#fn:1" class="footnote-ref"><sup>1</sup></a>,然後:</p>
<ul>
<li><strong>同一個座標系</strong>輸出個別主要元件的STL檔。再將這些STL設定進錨點。</li>
<li>在CAD軟件中量好 刀具端錨點、工作臺端錨點、旋轉運動軸軸樞上任意點 相對於 輸出坐標系 的座標,再將這些座標輸入至拓樸結構。</li>
<li>由於相對運動的關係,在基座至工作臺端的運動軸向設定一般為負。</li>
</ul>
<blockquote>
<p>STL網格過多會降低軟件開啟速度及碰撞檢測速度。</p>
</blockquote>
<h2 id="範例小五軸立式銑床">範例:小五軸立式銑床</h2>
<p>範例:<a href="B1.zip">B1.zip</a></p>
<p>目標虛擬銑床:
<img src="img/B1_anchors.png" alt="B1-with-anchors"></p>
<p>拓樸結構:
<img src="img/B1-topo.zh-Hant.png" alt="B1-topo"></p>
<h2 id="建立臥式機床">建立臥式機床</h2>
<ol>
<li>依機床運動軸座標建立拓樸結構。</li>
<li>將機床放倒:在接地錨點與機床基座錨點間的 連接 設定旋轉,軸向(0,1,1)(須正規化)、角度180度。</li>
</ol>
<div class="footnotes">
<hr>
<ol>
<li id="fn:1">
<p>機械原點(Machine Origin),所有機械座標(MC, Machine Coordinate)為0的位置一般是原點復歸的位置。<a href="#fnref:1" class="footnote-back-ref">&#8617;</a></p>
</li>
</ol>
</div>
</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>