183 lines
7.6 KiB
HTML
183 lines
7.6 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-ActOperations">
|
||
<h1 id="動作操作">動作操作</h1>
|
||
|
||
<p><a class="xref" href="../../../../api/Hi.MachiningProcs.RuntimeApi.html">RuntimeApi</a><small>(API)</small> 提供了多個方法來執行特定的加工動作。</p>
|
||
<h2 id="playact">PlayAct</h2>
|
||
<p><a class="xref" href="../../../../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_PlayAct_">PlayAct</a><small>(API)</small> 執行一個動作物件,並在執行過程中控制步調。</p>
|
||
<div class="NOTE">
|
||
<h5>Note</h5>
|
||
<p><strong>指令格式</strong></p>
|
||
<pre><code class="lang-csharp">PlayAct(<動作物件>, <來源指令>, <取消令牌>);
|
||
</code></pre>
|
||
</div>
|
||
<div class="TIP">
|
||
<h5>Tip</h5>
|
||
<p><strong>指令範例</strong></p>
|
||
<pre><code class="lang-csharp">// 執行自訂動作
|
||
var act = new CustomAct();
|
||
PlayAct(act);
|
||
</code></pre>
|
||
</div>
|
||
<h2 id="playtoolingteleport">PlayToolingTeleport</h2>
|
||
<p><a class="xref" href="../../../../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_PlayToolingTeleport_">PlayToolingTeleport</a><small>(API)</small> 執行刀具傳送操作,將指定刀具傳送到新位置。</p>
|
||
<div class="NOTE">
|
||
<h5>Note</h5>
|
||
<p><strong>指令格式</strong></p>
|
||
<pre><code class="lang-csharp">PlayToolingTeleport(<刀具ID>);
|
||
</code></pre>
|
||
</div>
|
||
<div class="TIP">
|
||
<h5>Tip</h5>
|
||
<p><strong>指令範例</strong></p>
|
||
<pre><code class="lang-csharp">// 傳送刀具1
|
||
PlayToolingTeleport(1);
|
||
</code></pre>
|
||
</div>
|
||
<h2 id="playclteleport">PlayClTeleport</h2>
|
||
<p><a class="xref" href="../../../../api/Hi.MachiningProcs.RuntimeApi.html#Hi_MachiningProcs_RuntimeApi_PlayClTeleport_">PlayClTeleport</a><small>(API)</small> 執行刀具位置(CL)傳送操作,將刀具傳送到指定的位置和方向。</p>
|
||
<div class="NOTE">
|
||
<h5>Note</h5>
|
||
<p><strong>指令格式</strong></p>
|
||
<pre><code class="lang-csharp">PlayClTeleport(<X>, <Y>, <Z>, <I>, <J>, <K>);
|
||
</code></pre>
|
||
</div>
|
||
<div class="TIP">
|
||
<h5>Tip</h5>
|
||
<p><strong>指令範例</strong></p>
|
||
<pre><code class="lang-csharp">// 傳送刀具到指定位置和方向
|
||
PlayClTeleport(10.0, 20.0, 30.0, 0.0, 0.0, 1.0);
|
||
</code></pre>
|
||
</div>
|
||
<h2 id="參數說明">參數說明</h2>
|
||
<h3 id="playtoolingteleport-1">PlayToolingTeleport</h3>
|
||
<ul>
|
||
<li><code><刀具ID></code>: 要傳送的刀具編號</li>
|
||
</ul>
|
||
<h3 id="playclteleport-1">PlayClTeleport</h3>
|
||
<ul>
|
||
<li><code><X>, <Y>, <Z></code>: 刀具位置座標(單位:mm)</li>
|
||
<li><code><I>, <J>, <K></code>: 刀具方向向量</li>
|
||
</ul>
|
||
<h2 id="使用場景">使用場景</h2>
|
||
<ul>
|
||
<li><strong>PlayAct</strong>: 用於執行自訂的動作物件</li>
|
||
<li><strong>PlayToolingTeleport</strong>: 用於快速移動刀具到新位置</li>
|
||
<li><strong>PlayClTeleport</strong>: 用於精確控制刀具的位置和方向</li>
|
||
</ul>
|
||
<div class="NOTE">
|
||
<h5>Note</h5>
|
||
<p>這些操作通常用於特殊情況或測試場景。在正常加工流程中,通常使用 <a class="xref" href="../PlayNcFile/index.html">執行NC檔</a> 或 <a class="xref" href="../PlayNc/index.html">執行NC碼字串</a> 來執行NC碼。</p>
|
||
</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>
|