This repository has been archived on 2026-10-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
HiNC-2025-win-desktop-Deploy/App/wwwroot/HiAPI-docsite/api/Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs.html
T
2026-09-09 17:35:23 +08:00

210 lines
11 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Namespace Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs | HiAPI-C# 2025 </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Namespace Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs | 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="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.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs">
<h1 id="Hi_NcParsers_ParsingSyntaxs_Heidenhain_CyclDefSyntaxs" data-uid="Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs" class="text-break">Namespace Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>
<div class="markdown level0 remarks"></div>
<h3 id="classes">
Classes
</h3>
<dl class="jumplist">
<dt><a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs.HeidenhainDatumSettingSyntax.html">HeidenhainDatumSettingSyntax</a></dt>
<dd><p>Heidenhain syntax of <pre><code class="lang-csharp">CYCL DEF 247 DATUM SETTING</code></pre> and its
DIN/ISO twin <pre><code class="lang-csharp">G247 Q339=+N</code></pre> (both spellings stamp the same
cycle-number record for the Logic-side datum-preset resolver).
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs.HeidenhainDatumShiftSyntax.html">HeidenhainDatumShiftSyntax</a></dt>
<dd><p>Heidenhain syntax of <pre><code class="lang-csharp">CYCL DEF 7 DATUM SHIFT</code></pre> and its
DIN/ISO twin <pre><code class="lang-csharp">G54</code></pre> WITH axis words (<code>G54 X+50 Y+50</code>
shifts the datum, zero values cancel it — a declaration, never a
motion block; the bare <code>G54</code> spelling stays on the Fanuc-style
work-offset select path). The klartext I-prefixed words
(<code>CYCL DEF 7.2 IY+5</code>) are kept under their prefixed keys in the
<code>Parsing[&ldquo;DATUM SHIFT&rdquo;]</code> record — a shift BY the value on top of
the active shift, which
<a class="xref" href="Hi.NcParsers.LogicSyntaxs.Heidenhain.HeidenhainCoordinateOffsetSyntax.html">HeidenhainCoordinateOffsetSyntax</a>
resolves; never the tool-position-relative
<a class="xref" href="Hi.NcParsers.Keywords.PositioningOverride.html">PositioningOverride</a> stamp.
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs.HeidenhainMachiningCycleSyntax.html">HeidenhainMachiningCycleSyntax</a></dt>
<dd><p>Captures the body of a machining <code>CYCL DEF</code> (every cycle number
without a dedicated owner — the datum family 7/247 and the tolerance
family 32 keep their own syntaxes) into a structured
<code>Parsing.MachiningCycle</code> record:
<code>{ Number, Title?, Params?, Args? }</code>.</p>
<ul><li><code>Params</code> — every <code>Qnnn=value</code> assignment in the head
and body lines. Literal values are stored as JSON numbers (via
<a class="xref" href="Hi.NcParsers.ParsingSyntaxs.FloatTagValueSyntax.html#Hi_NcParsers_ParsingSyntaxs_FloatTagValueSyntax_ToFloat_System_String_">ToFloat(string)</a> — a string node would read
as an unevaluated variable downstream); Q-reference values stay
strings for the evaluator to substitute in place.</li><li><b>Q mirror</b> — each captured assignment is also mirrored into
<code>Parsing.Assignments</code> (raw string RHS): on a real TNC the cycle
definition genuinely assigns those Q parameters, and pre-P4 corpus
behavior (each parameter line was its own sentence consumed by the
bare-assignment capture) already routed them into the volatile Q
store. The mirror keeps that store contract intact now that the
<code>~</code>-grouped sentence is claimed here first.</li><li><code>Title</code> — the non-assignment remainder of the head line
(e.g. <code>PLANFRAESEN</code>).</li><li><code>Args</code> — any other non-assignment body remainder, swept
into the record so residue (e.g. <code>CYCL DEF 19.1 A90 B0 C105</code>
rotary words) can never leak into axis captures — the
<code>PLANE</code>-family precedent from P3.</li></ul>
The ISO mapping and the armed/modal bookkeeping happen in
<a class="xref" href="Hi.NcParsers.LogicSyntaxs.Heidenhain.HeidenhainCannedCycleSyntax.html">HeidenhainCannedCycleSyntax</a>.
Multi-line capture is covered by regular unit tests rather than the
conformance examples below (the conformance shorthand is single-line
only).
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs.HeidenhainMirrorCyclSyntax.html">HeidenhainMirrorCyclSyntax</a></dt>
<dd><p>Structures the klartext <code>CYCL DEF 8 MIRROR IMAGE</code> cycle (grouped
<code>8.0 MIRROR IMAGE / 8.1 X Y</code>, or the single-line spelling) into
the same <code>Parsing.</code><a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.HeidenhainMirrorImageSyntax.html#Hi_NcParsers_ParsingSyntaxs_Heidenhain_HeidenhainMirrorImageSyntax_MirrorImageKey">MirrorImageKey</a>
statement list its DIN/ISO twin <code>G28</code> writes, so the shared
<a class="xref" href="Hi.NcParsers.LogicSyntaxs.Heidenhain.HeidenhainMirrorTransformSyntax.html">HeidenhainMirrorTransformSyntax</a>
simulates both dialects through one code path. Runs after
<a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.HeidenhainCyclDefSyntax.html">HeidenhainCyclDefSyntax</a> (which contributes
<code>Parsing[&ldquo;CYCL DEF&rdquo;] = 8</code> + <code>CyclHead</code>) and ahead of
<a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs.HeidenhainMachiningCycleSyntax.html">HeidenhainMachiningCycleSyntax</a>, whose generic capture
would otherwise route the cycle to the unsupported-cycle path.</p>
<p>
The cycle body is the manual's bare axis letters (a bare <code>8.1</code>
cancels the mirror). A body carrying anything else — a valued word,
an unknown token — is <b>not</b> claimed at all: the block falls
through to the generic machining-cycle capture and its
<code>HeidenhainCycl--Unsupported</code> report, which is the correct
fail-soft. Claiming it would silently reduce to an empty axis list,
i.e. read a shape we do not understand as a mirror <i>reset</i>.
</p>
</dd>
</dl>
<dl class="jumplist">
<dt><a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.CyclDefSyntaxs.HeidenhainToleranceCyclSyntax.html">HeidenhainToleranceCyclSyntax</a></dt>
<dd><p>Structures the klartext CYCL DEF 32 TOLERANCE cycle (grouped
<code>32.0 TOLERANCE / 32.1 T0.1 / 32.2 HSC-MODE:0 TA0.5</code> or the
single-line forms) into <code>Parsing.TOLERANCE { T?, HscMode?, Ta? }</code>
for <a class="xref" href="Hi.NcParsers.LogicSyntaxs.Heidenhain.HeidenhainPathSmoothingSyntax.html">HeidenhainPathSmoothingSyntax</a>.
Runs after <a class="xref" href="Hi.NcParsers.ParsingSyntaxs.Heidenhain.HeidenhainCyclDefSyntax.html">HeidenhainCyclDefSyntax</a> (which contributes
<code>Parsing[&ldquo;CYCL DEF&rdquo;] = 32</code> + <code>CyclHead</code>). A bare 32.0 line
(no T) is a tolerance reset and records <code>Bare: true</code>. The glued
corpus spelling <code>32.2HSC-MODE:0</code> leaves a digit-prefixed residue
after the CyclDef prefix strip — the HSC grab tolerates it.</p>
</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>