rename XFactory.Regs to XFactory.Generators.
This commit is contained in:
@@ -184,6 +184,31 @@ Direction is converted from ISO M-codes to the conventional
|
||||
</dd></dl>
|
||||
|
||||
|
||||
<h2 id="Hi_NcParsers_LogicSyntaxs_SpindleSpeedSyntax_examples">Examples</h2>
|
||||
<p>New S + M03 (CW) — both consumed; <code>SpindleSpeed</code> section
|
||||
written with the converted direction enum string:
|
||||
#BeforeBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "Parsing": { "Flags": ["M03"], "S": 2000 } }</code></pre>
|
||||
<p>#AfterBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "SpindleSpeed": { "SpindleSpeed_rpm": 2000, "Direction": "CW" } }</code></pre>
|
||||
<p>M04 (CCW) only — RPM inherited from <code>#Previous:</code>; direction
|
||||
updated to the new CCW state:
|
||||
#Previous:</p>
|
||||
<pre><code class="lang-csharp">{ "SpindleSpeed": { "SpindleSpeed_rpm": 1500, "Direction": "CW" } }</code></pre>
|
||||
<p>#BeforeBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "Parsing": { "Flags": ["M04"] } }</code></pre>
|
||||
<p>#AfterBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "SpindleSpeed": { "SpindleSpeed_rpm": 1500, "Direction": "CCW" } }</code></pre>
|
||||
<p>M05 (STOP) only — RPM still carried from <code>#Previous:</code> for
|
||||
bidirectional round-tripping; downstream consumers gate on
|
||||
<code>Direction == STOP</code> rather than RPM == 0:
|
||||
#Previous:</p>
|
||||
<pre><code class="lang-csharp">{ "SpindleSpeed": { "SpindleSpeed_rpm": 1500, "Direction": "CW" } }</code></pre>
|
||||
<p>#BeforeBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "Parsing": { "Flags": ["M05"] } }</code></pre>
|
||||
<p>#AfterBuild:</p>
|
||||
<pre><code class="lang-csharp">{ "SpindleSpeed": { "SpindleSpeed_rpm": 1500, "Direction": "STOP" } }</code></pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user