You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit aa0bd74
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,23 @@
1
1
# Changelog
2
2
3
+
## 1.6.2 - 2026-09-23
4
+
5
+
- Added a machine-neutral cycle execution contract while preserving machine-specific expansion models. Milling canned cycles now return geometry, signals, modal updates and position updates as one atomic outcome built against temporary state; the existing turning expansion pipeline is connected through an adapter without rewriting G70-G76 semantics. Cycle implementations now live under canonical `turning/cycles` and `milling/cycles` packages, with historical import paths retained as aliases.
6
+
- Added FANUC milling `G16/G15` polar-coordinate programming with `G17/G18/G19` plane selection, absolute/incremental radius-angle commands, WCS/local-origin and current-position pole selection, canned-cycle positioning, R-format circular interpolation, coordinate-transform integration and Python/native execution parity. Turning remains unchanged.
7
+
- Added FANUC Macro B vacant-variable semantics for `#0` and omitted G65 arguments, indirect `#[expr]` assignment, and shared immutable variable snapshots that avoid duplicating unchanged macro state across execution steps.
8
+
- Fixed milling `G10` under `G91` to increment existing L2/L20 work offsets instead of silently replacing them.
9
+
- Fixed two-line turning `G76` so the packed tool-angle digits now produce FANUC single-edge flank infeed for the supported 0/29/30/55/60/80-degree set instead of being silently ignored; unsupported angles now fail explicitly.
10
+
- Expanded modal conflict validation for milling tool-length compensation, scaling and rotation plus turning spindle modes, and added an explicit `UNSUPPORTED_G72_TYPE_II_SPANS` failure for ambiguous multi-span facing profiles.
11
+
- Refactored kernel execution without intentional CNC semantic changes: milling now uses named evaluation/validation/state/flow/motion phases with a single block finalizer, while turning machine-specific operations are grouped behind one execution-semantics contract instead of a growing callback list.
12
+
- Added a standalone `Tool List` CNC function that reuses resolved per-tool statistics to produce a CIMCO-style UTF-8 text report with program/file metadata, configured tool geometry and exact per-tool Z minimums.
13
+
- Fixed turning `G53` fail-open behavior for arc modes. `G53 G2/G3` now reports `UNSUPPORTED_G53_MOTION` and skips the complete block instead of silently executing a WCS-relative arc.
14
+
- Expanded the Tokens diagnostic window into `Tokens/Macro Variables` with a read-only Macro Variables inspector driven by execution-step snapshots. The inspector follows the current logical playback position, shows only variables that actually exist at that point, includes active G65 local-variable scopes and restored caller values after M99, updates during playback/step/slider navigation without re-executing the program, and works consistently for turning and milling Python/native execution paths.
15
+
- Added a persistent CNC comment-style selector under `Options -> CNC / Execution`. Parenthesized comments remain the default, while semicolon comments can now be selected consistently for editor lexing, generated statistics and every text export mode; existing source programs using either syntax remain readable.
16
+
- Improved export failure reporting with an always-visible, copyable diagnostics field containing severity, diagnostic code, source line, explanation and the offending G-code block, so incomplete or invalid executions no longer require opening Tokens or relying on the temporary status-bar message.
17
+
- Fixed `MILL FULL PROGRAM` export so the Delimiter option is also applied to retained controller blocks such as compact `G0G91G28Z0`, producing `G0 G91 G28 Z0` consistently with generated motion blocks.
18
+
- Localized the dynamic Recent Files menu, including its empty state and clear-list action, for the Russian interface.
19
+
- Fixed the Windows complexity-check script failing in project paths containing Cyrillic characters by decoding Ruff's JSON output explicitly as UTF-8.
20
+
3
21
## 1.6.1 - 2026-09-22
4
22
5
23
- Fixed milling `G84` tapping so withdrawal from depth is emitted as synchronized feed motion instead of rapid motion.
Copy file name to clipboardExpand all lines: FAQ.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Easy G-Code Plot is a desktop editor, analyzer, simulator and trace exporter for
29
29
30
30
The simplest Windows installation is the standalone executable from [GitHub Releases](https://github.com/MaestroFusion360/easy_gcode_plot/releases). It does not require a separate Python installation.
31
31
32
-
To run from source, install Python 3.11+ and [uv](https://docs.astral.sh/uv/), then run:
32
+
To run from source, install Python 3.11+, [uv](https://docs.astral.sh/uv/) and a C compiler (Visual Studio Build Tools with **Desktop development with C++** on Windows, or the platform compiler and Python development headers on Linux/macOS), then run:
@@ -272,6 +272,12 @@ Yes. When exporting an R-format full circle, Expanded Execution emits two exact
272
272
- Configured milling tools and cutter-radius compensation.
273
273
- G52 local coordinate shifts, G68/G69 coordinate rotation and G51/G50 coordinate scaling.
274
274
275
+
### How does FANUC milling polar-coordinate programming work?
276
+
277
+
`G16` enables radius/angle endpoint programming and `G15` returns to ordinary Cartesian coordinates. `G17`, `G18` and `G19` select the polar plane; its first axis is the radius and its second axis is the angle in degrees. `G90` uses the active work/local origin as the pole and absolute radius/angle values, while `G91 G16` captures the current position as the pole and later `G91` words increment the modal radius or angle. Omitted polar components retain their previous values.
278
+
279
+
Polar programming is milling-only. Polar `G2/G3` follows the supported FANUC contract and requires an `R` arc radius; I/J/K center programming in `G16` mode is rejected instead of guessed. `G12.1/G13.1` polar interpolation is not implemented.
280
+
275
281
### FANUC turning
276
282
277
283
- X/Z and U/W motion with diameter/radius handling.
@@ -312,9 +318,13 @@ Select `Inches` at the bottom-left of the window to convert every displayed leng
312
318
313
319
One or more motions lack a trustworthy physical feed rate. A common cause is feed-per-revolution execution without a known spindle RPM. The application reports unknown time instead of treating that feed as millimetres per minute.
314
320
315
-
### What is the Tokens window for?
321
+
### What is the Tokens/Macro Variables window for?
322
+
323
+
**Settings → Tokens/Macro Variables** has two read-only diagnostic tabs. **Tokens** shows parser words, evaluated values, source position, execution status and diagnostics. Suspicious or unsupported rows are highlighted and can be copied or exported as CSV.
324
+
325
+
**Macro Variables** shows the Macro B variable state captured at the current logical playback position. Only variables that exist at that execution point are shown. G65 local variables follow the active macro-call scope and are restored after M99. Moving Play, Step or the slider updates the inspector from the existing execution snapshots without re-executing the CNC program. If the current source is stale relative to the displayed execution result, Macro Variables are not shown until the toolpath is updated.
316
326
317
-
**Settings → Tokens** shows parser words, evaluated values, source position, execution status and diagnostics. Suspicious or unsupported rows are highlighted and can be copied or exported as CSV.
327
+
Macro variable `#0` is permanently vacant and cannot be assigned. Omitted G65 local arguments are also vacant, so standard tests such as `IF[#1 EQ #0]` work. Assigning `#0` to another variable clears that variable, while indirect assignment such as `#[#1]=5` resolves the destination variable number at runtime.
318
328
319
329
### Which export types are available?
320
330
@@ -323,6 +333,7 @@ One or more motions lack a trustworthy physical feed rate. A common cause is fee
323
333
- Expanded Execution.
324
334
- Plot Data.
325
335
- DXF trajectory.
336
+
- Tool List text report from **CNC Functions → Tool List**.
326
337
327
338
Expanded Execution follows actual occurrence order, including subprogram calls and generated cycle motions. It preserves relevant WCS, home returns, threading, dwell, spindle and coolant events.
328
339
@@ -411,7 +422,7 @@ Use `--encoding cp1251` for Windows-1251 input. Export modes include `program` a
411
422
412
423
### How is the project organized?
413
424
414
-
-`app/gcode/kernel/` owns deterministic CNC parsing and execution. Its implementation is split into `api/` (public execution facade and result types), `frontend/` (lexing, parsing, AST/model and NC input), `geometry/` (analytical/profile geometry and coordinate systems), `lathe_cycles/` (turning-cycle motion builders), `compensation/` (turning and milling compensation), `runtime/` (control flow, cycle expansion, interpreter, events/signals and trace construction) and `milling/` (milling state, motion and canned-cycle execution).
425
+
-`app/gcode/kernel/` owns deterministic CNC parsing and execution. Its implementation is split into `api/` (public execution facade and result types), `frontend/` (lexing, parsing, AST/model and NC input), `geometry/` (analytical/profile geometry and coordinate systems), `turning/cycles/` and `milling/cycles/` (machine-specific cycle implementations behind the shared runtime cycle contract), `compensation/` (turning and milling compensation), `runtime/` (control flow, cycle contracts/expansion, interpreter, events/signals and trace construction) and `milling/` (milling stateand motion execution). Historical `lathe_cycles` and `milling.drilling` import paths remain compatibility aliases.
415
426
-`app/gcode/export/` owns Full Program, Expanded Execution, Plot Data and DXF serialization. Exporters consume the authoritative kernel result/resolved trace and do not implement a second G-code interpreter.
416
427
-`app/gcode/trace_tools.py` owns render sampling and statistics derived from the resolved trace.
417
428
-`app/ui/` owns PyQt GUI behavior, grouped into `dialogs/` (dialogs and tool editors), `plot/` (OpenGL items, STL, overlays and playback), `windows/` (main-window mixins and the execution worker) and `support/` (editor lexer, units, numeric input and shared widgets).
- G-code editor with highlighting, line numbers, search, replace and cleanup tools.
31
31
- Interactive OpenGL toolpath, logical-motion playback and source-line synchronization.
32
+
- Toolpath statistics and CIMCO-style UTF-8 Tool List export from the resolved trace and configured tools.
32
33
- Cutter-aware turning Stock Removal, including thread profiles.
33
34
- ASCII and binary STL overlays with solid and feature-edge modes.
34
35
- SQLite-backed turning and milling tool libraries.
@@ -67,7 +68,7 @@ uv run --no-dev python main.py
67
68
2. Enable `Lathe Mode` for turning or leave it disabled for milling.
68
69
3. Configure WCS, machine home and tools when required.
69
70
4. Refresh and inspect the resolved toolpath.
70
-
5. Use playback, Tokensand Statistics to inspect execution.
71
+
5. Use playback, Tokens/Macro Variables and Statistics to inspect execution. The Macro Variables tab shows the actual Macro B state captured at the current logical playback step.
71
72
6. Optionally import an STL reference model.
72
73
7. Export the required program or trajectory representation.
0 commit comments