This commit is contained in:
2026-09-09 17:35:23 +08:00
parent 2a98ae7556
commit 161af68fe3
1271 changed files with 58251 additions and 98639 deletions
@@ -330,6 +330,29 @@ below pins the JSON shape only):
}
]
}</code></pre>
G43.4 with no H word on a block whose <code>ToolChange</code> section says
tool 1 is in the spindle — the offset id is the equipped tool number
(HardNc parity), the same <code>ToolOffset(1 → 10 mm)</code> and real
kinematics as above, no rotary state so the tool normal is +Z and the
height-mat carries <code>Trans = (0, 0, 10)</code>. A bare G43.4 arrives as a
flag (no parameter object to hang an H on):
#BeforeBuild:
<pre><code class="lang-csharp">{
"Parsing": { "Flags": ["G43.4"] },
"ToolChange": { "ToolId": 1, "IsChange": true, "Term": "M06" }
}</code></pre>
#AfterBuild:
<pre><code class="lang-csharp">{
"ToolChange": { "ToolId": 1, "IsChange": true, "Term": "M06" },
"ToolHeightCompensation": { "Offset_mm": 10, "Term": "G43.4", "OffsetId": 1 },
"ProgramToMcTransform": [
{
"Source": "ToolHeightCompensation",
"Kind": "Static",
"Mat4d": [1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,10,1]
}
]
}</code></pre>