fix SoftNcRunner GM code normalization.

This commit is contained in:
2026-05-06 13:21:19 +08:00
parent 0fe9497552
commit 2f57932000
1238 changed files with 69405 additions and 22511 deletions
@@ -110,7 +110,7 @@ whereas Fanuc #4002 stores in mm.
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class SyntecParameterTable : ControllerParameterTableBase, IHomeMcConfig, IMachineAxisConfig, IRapidFeedrateConfig, ICannedCycleConfig, INcDependency, IMakeXmlSource</code></pre>
<pre><code class="lang-csharp hljs">public class SyntecParameterTable : ControllerParameterTableBase, IHomeMcConfig, IMachineAxisConfig, IRapidFeedrateConfig, IStrokeLimitConfig, ICannedCycleConfig, IIsoCoordinateConfig, INcDependency, IMakeXmlSource</code></pre>
</div>
@@ -131,7 +131,9 @@ whereas Fanuc #4002 stores in mm.
<div><a class="xref" href="Hi.NcParsers.Dependencys.IHomeMcConfig.html">IHomeMcConfig</a></div>
<div><a class="xref" href="Hi.NcParsers.Dependencys.IMachineAxisConfig.html">IMachineAxisConfig</a></div>
<div><a class="xref" href="Hi.NcParsers.Dependencys.IRapidFeedrateConfig.html">IRapidFeedrateConfig</a></div>
<div><a class="xref" href="Hi.NcParsers.Dependencys.IStrokeLimitConfig.html">IStrokeLimitConfig</a></div>
<div><a class="xref" href="Hi.NcParsers.Dependencys.ICannedCycleConfig.html">ICannedCycleConfig</a></div>
<div><a class="xref" href="Hi.NcParsers.Dependencys.IIsoCoordinateConfig.html">IIsoCoordinateConfig</a></div>
<div><a class="xref" href="Hi.NcParsers.Dependencys.INcDependency.html">INcDependency</a></div>
<div><a class="xref" href="Hi.Common.XmlUtils.IMakeXmlSource.html">IMakeXmlSource</a></div>
</dd>
@@ -142,7 +144,28 @@ whereas Fanuc #4002 stores in mm.
<dt>Inherited Members</dt>
<dd>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_GetAxisRapidRate_mmdmin_System_String_">ControllerParameterTableBase.GetAxisRapidRate_mmdmin(string)</a>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_GetLinearAxisRapidRate_mmdmin_System_String_">ControllerParameterTableBase.GetLinearAxisRapidRate_mmdmin(string)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_GetRotaryAxisRapidRate_degdmin_System_String_">ControllerParameterTableBase.GetRotaryAxisRapidRate_degdmin(string)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_SetLinearAxisRapidRate_mmdmin_System_String_System_Double_">ControllerParameterTableBase.SetLinearAxisRapidRate_mmdmin(string, double)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_SetRotaryAxisRapidRate_degdmin_System_String_System_Double_">ControllerParameterTableBase.SetRotaryAxisRapidRate_degdmin(string, double)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_GetPositiveLimit_System_String_">ControllerParameterTableBase.GetPositiveLimit(string)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_GetNegativeLimit_System_String_">ControllerParameterTableBase.GetNegativeLimit(string)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_SetPositiveLimit_System_String_System_Double_">ControllerParameterTableBase.SetPositiveLimit(string, double)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_SetNegativeLimit_System_String_System_Double_">ControllerParameterTableBase.SetNegativeLimit(string, double)</a>
</div>
<div>
<a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_SystemParams">ControllerParameterTableBase.SystemParams</a>
@@ -404,6 +427,72 @@ namespace if more brands need it.</p>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_PrG54OffsetBase" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.PrG54OffsetBase">
PrG54OffsetBase
</h3>
<div class="markdown level1 summary"><p>Pr5221: Base address (X) of G54 work coordinate offset.
G54.Y at +1 (Pr5222), G54.Z at +2 (Pr5223). G55..G59 follow at stride 20.
Syntec follows Fanuc-compatible numbering — see <a class="xref" href="Hi.NcParsers.Dependencys.IsoCoordinateAddressMap.html">IsoCoordinateAddressMap</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int PrG54OffsetBase = 5221</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_PrG54p1P1OffsetBase" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.PrG54p1P1OffsetBase">
PrG54p1P1OffsetBase
</h3>
<div class="markdown level1 summary"><p>Pr7001: Base address (X) of G54.1 P1 extended work coordinate offset.
G54.1 P2..P48 follow at stride 20.
See <a class="xref" href="Hi.NcParsers.Dependencys.IsoCoordinateAddressMap.html">IsoCoordinateAddressMap</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public const int PrG54p1P1OffsetBase = 7001</code></pre>
</div>
<h4 class="section">Field Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd></dd>
</dl>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_PrMaxSpindleSpeed" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.PrMaxSpindleSpeed">
PrMaxSpindleSpeed
@@ -668,7 +757,7 @@ See <a class="xref" href="Hi.NcParsers.Dependencys.IHomeMcConfig.html">IHomeMcCo
</h3>
<div class="markdown level1 summary"><p>Pr1420: Rapid traverse rate per axis (mm/min or deg/min).
See <a class="xref" href="Hi.NcParsers.Dependencys.IRapidFeedrateConfig.html">IRapidFeedrateConfig</a>. See <a class="xref" href="Hi.NcParsers.Dependencys.ControllerParameterTableBase.html#Hi_NcParsers_Dependencys_ControllerParameterTableBase_GetAxisRapidRate_mmdmin_System_String_">GetAxisRapidRate_mmdmin(string)</a>.</p>
See <a class="xref" href="Hi.NcParsers.Dependencys.IRapidFeedrateConfig.html">IRapidFeedrateConfig</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
@@ -757,6 +846,38 @@ See <a class="xref" href="Hi.NcParsers.Dependencys.IRapidFeedrateConfig.html">IR
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_CoordinateIds_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.CoordinateIds*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_CoordinateIds" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.CoordinateIds">
CoordinateIds
</h3>
<div class="markdown level1 summary"><p>Enumerates the G-code coordinate ids that this provider currently has data for.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IEnumerable&lt;string&gt; CoordinateIds { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_CutterCompType_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.CutterCompType*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_CutterCompType" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.CutterCompType">
@@ -1083,6 +1204,72 @@ Null if not defined for this controller brand.</p>
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_StrokeLimitNegParamId_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.StrokeLimitNegParamId*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_StrokeLimitNegParamId" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.StrokeLimitNegParamId">
StrokeLimitNegParamId
</h3>
<div class="markdown level1 summary"><p>Parameter/MD/MP number for negative stroke limit per axis.
Null if not defined for this controller brand.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected override int? StrokeLimitNegParamId { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_StrokeLimitPosParamId_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.StrokeLimitPosParamId*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_StrokeLimitPosParamId" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.StrokeLimitPosParamId">
StrokeLimitPosParamId
</h3>
<div class="markdown level1 summary"><p>Parameter/MD/MP number for positive stroke limit per axis.
Null if not defined for this controller brand.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected override int? StrokeLimitPosParamId { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_XName_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.XName*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_XName" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.XName">
@@ -1118,6 +1305,45 @@ Null if not defined for this controller brand.</p>
</h2>
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_GetCoordinateOffset_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.GetCoordinateOffset*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_GetCoordinateOffset_System_String_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.GetCoordinateOffset(System.String)">
GetCoordinateOffset(string)
</h3>
<div class="markdown level1 summary"><p>Gets the offset for the given G-code coordinate id.
Returns null when no offset is configured for that id by this provider
(callers iterate the next provider, or fall back to <a class="xref" href="Hi.Geom.Vec3d.html#Hi_Geom_Vec3d_Zero">Zero</a>).</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Vec3d GetCoordinateOffset(string coordId)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>coordId</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd></dd>
</dl>
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_MakeXmlSource_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.MakeXmlSource*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_MakeXmlSource_System_String_System_String_System_Boolean_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.MakeXmlSource(System.String,System.String,System.Boolean)">
@@ -1169,6 +1395,40 @@ Since the folder can be moving with the configuration file.</p>
<a id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_SetCoordinateOffset_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.SetCoordinateOffset*"></a>
<h3 id="Hi_NcParsers_Dependencys_Syntec_SyntecParameterTable_SetCoordinateOffset_System_String_Hi_Geom_Vec3d_" data-uid="Hi.NcParsers.Dependencys.Syntec.SyntecParameterTable.SetCoordinateOffset(System.String,Hi.Geom.Vec3d)">
SetCoordinateOffset(string, Vec3d)
</h3>
<div class="markdown level1 summary"><p>Sets the offset for the given G-code coordinate id.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void SetCoordinateOffset(string coordId, Vec3d offset)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>coordId</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
<dt><code>offset</code> <a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
<dd></dd>
</dl>
</article>