154 lines
6.9 KiB
HTML
154 lines
6.9 KiB
HTML
<!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 "{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="Cmd-GeomDiff">
|
||
<h1 id="幾何比對">幾何比對</h1>
|
||
|
||
<p>幾何比對指令 <a class="xref" href="../../../../../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_Diff_">Diff</a><small>(API)</small> 用於比對工件目標形狀(Target Shape)與仿真後形狀。</p>
|
||
<div class="NOTE">
|
||
<h5>Note</h5>
|
||
<p><strong>指令格式</strong></p>
|
||
<pre><code class="lang-csharp">Diff(<掃描半徑(mm)>);
|
||
</code></pre>
|
||
</div>
|
||
<p><掃描半徑>(Detection Radius)是工件目標形狀的表面延伸距離,如果仿真後表面超過該距離,則不計算偏差值。
|
||
掃描半徑越大,計算時間越長。</p>
|
||
<div class="TIP">
|
||
<h5>Tip</h5>
|
||
<p><strong>指令範例</strong></p>
|
||
<pre><code class="lang-csharp">Diff(1);
|
||
</code></pre>
|
||
</div>
|
||
<p>比對後以顏色呈現過切與留料距離。</p>
|
||
<p>比對後工件表面的路徑索引將會失效。</p>
|
||
<h2 id="往復斜面干涉比對案例解析">往復斜面干涉比對案例解析</h2>
|
||
<p>CAM產生的NC碼未必如預期,與使用方式有關,許多參數可以調整,還要靠使用者的經驗與細心,所以需要誤差比對確定CAM產生的NC無誤。</p>
|
||
<p>本範例為CAM產生的NC,經過誤差比對發現諸多需修正處。</p>
|
||
<p>這些問題若不使用軟體輔助只能在加工結束後發現,對精密製造影響甚鉅。</p>
|
||
<h3 id="比對標的">比對標的</h3>
|
||
<p>以上下斜坡之幾何做干涉比對測試,切削模擬之刀具為R0.5mm、D12mm之牛鼻刀,切削路徑為往復移動。</p>
|
||
<p>比對標的、切削路徑如下:</p>
|
||
<p><img src="img/geom_compare_slide_design.png" alt="geom_compare_slide_design">
|
||
比對標的</p>
|
||
<p><img src="img/slide_resolution_0p1_with_path.png" alt="slide_resolution_0p1_with_path">
|
||
切削路徑</p>
|
||
<h3 id="結果與討論">結果與討論</h3>
|
||
<p>切削模擬後的干涉比對如下圖。</p>
|
||
<p><img src="img/diff_resolution_0p02.png" alt="diff_resolution_0p02">
|
||
切削模擬後的干涉比對。綠色為精準,正紅色為過切超過0.02mm、正藍色為留料超過0.02mm。</p>
|
||
<ul>
|
||
<li>目標幾何靠近壁面處為直角,故偵測出留料。</li>
|
||
<li>進刀段落往復區域的NC碼Z值不一致,故偵測到過切。</li>
|
||
<li>往復邊緣處刀子沒有走出刀具半徑,離工件距離過短,故偵測到留料。</li>
|
||
<li>往復路徑中的藍綠斑馬紋為往復間距過大造成的留料。</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>
|