rename XFactory.Regs to XFactory.Generators.
This commit is contained in:
+33
-8
@@ -192,14 +192,39 @@ as program coordinates.
|
||||
|
||||
|
||||
<h2 id="Hi_NcParsers_LogicSyntaxs_MachineCoordSelectSyntax_examples">Examples</h2>
|
||||
<p>G53 with full axes (G54 offset = 100,50,-200):</p>
|
||||
<pre><code class="lang-csharp">Input: G53 G00 X0. Y0. Z0.
|
||||
Output: MachineCoordinate = (0, 0, 0)
|
||||
ProgramXyz = (-100, -50, 200) [mc * inverse(transform)]</code></pre>
|
||||
<p>G53 with partial axes (only Z specified):</p>
|
||||
<pre><code class="lang-csharp">Input: G53 Z0.
|
||||
Output: MachineCoordinate = (prevMcX, prevMcY, 0)
|
||||
ProgramXyz derived from MC * inverse(transform)</code></pre>
|
||||
<p>G53 with full XYZ on a first block (no <code>#Previous:</code>) — <code>FindPreviousMc</code>
|
||||
falls back to <code>Vec3d.Zero</code>, transform defaults to identity, so
|
||||
<code>ProgramXyz</code> equals <code>MachineCoordinateState</code>:
|
||||
#BeforeBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "Parsing": { "Flags": ["G53"], "X": 10, "Y": 20, "Z": 30 } }</code></pre>
|
||||
<p>#AfterBuild:</p>
|
||||
<pre><code class="lang-csharp">{
|
||||
"MachineCoordinateState": { "X": 10, "Y": 20, "Z": 30 },
|
||||
"ProgramXyz": { "X": 10, "Y": 20, "Z": 30 }
|
||||
}</code></pre>
|
||||
<p>G53 with only Z specified — <code>FindPreviousMc</code> picks up X/Y from the
|
||||
previous block's <code>MachineCoordinateState</code>; Z is overwritten:
|
||||
#Previous:</p>
|
||||
<pre><code class="lang-csharp">{ "MachineCoordinateState": { "X": 100, "Y": 50, "Z": -200 } }</code></pre>
|
||||
<p>#BeforeBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "Parsing": { "Flags": ["G53"], "Z": 0 } }</code></pre>
|
||||
<p>#AfterBuild:</p>
|
||||
<pre><code class="lang-csharp">{
|
||||
"MachineCoordinateState": { "X": 100, "Y": 50, "Z": 0 },
|
||||
"ProgramXyz": { "X": 100, "Y": 50, "Z": 0 }
|
||||
}</code></pre>
|
||||
<p>G91 active on the same block → G53 is ignored per ISO standard; nothing
|
||||
is consumed and no machine-state section is written:
|
||||
#BeforeBuild:</p>
|
||||
<pre><code class="lang-csharp">{
|
||||
"Parsing": { "Flags": ["G53"], "X": 10 },
|
||||
"Positioning": { "Term": "G91" }
|
||||
}</code></pre>
|
||||
<p>#AfterBuild:</p>
|
||||
<pre><code class="lang-csharp">{
|
||||
"Parsing": { "Flags": ["G53"], "X": 10 },
|
||||
"Positioning": { "Term": "G91" }
|
||||
}</code></pre>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user