Simple G7x Profile editor for Linuxcnc/Axis
- opw
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 8
02 Feb 2026 15:19 #342320
by opw
Simple G7x Profile editor for Linuxcnc/Axis was created by opw
Hi guys,
Created this simple, but effective profile editor for myself.
It is a lightweight Tk-based conversational editor for lathe profiles, designed for LinuxCNC / PathPilot style workflows.It lets you sketch, edit, and preview turning profiles interactively, then generates a G71 or G72 roughing cycle with a G70 finish pass. All core functionality uses only the Python standard library (Tk), so it can be dropped directly into a AXIS environment.Optional DXF / 3MF import is supported via external libraries.
For example you can:
Created this simple, but effective profile editor for myself.
It is a lightweight Tk-based conversational editor for lathe profiles, designed for LinuxCNC / PathPilot style workflows.It lets you sketch, edit, and preview turning profiles interactively, then generates a G71 or G72 roughing cycle with a G70 finish pass. All core functionality uses only the Python standard library (Tk), so it can be dropped directly into a AXIS environment.Optional DXF / 3MF import is supported via external libraries.
For example you can:
- import an STL as a background reference
- Auto create segment points or (recommended) tracing the rotational outline with profile points
- Adding chamfers and radii for finishing details
- Adjusting geometry for optimal cutting
- Setting machining parameters
- Generating G-code
- Sending to LinuxCNC/AXIS
Attachments:
The following user(s) said Thank You: tommylight, pommen, Aciera, Surmetall, NWE
Please Log in or Create an account to join the conversation.
- tommylight
-
- Online
- Moderator
-
Less
More
- Posts: 21510
- Thank you received: 7334
25 Feb 2026 23:21 #343513
by tommylight
Replied by tommylight on topic Simple G7x Profile editor for Linuxcnc/Axis
Looks nice, thank you.
Please Log in or Create an account to join the conversation.
- dredivan
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
28 Mar 2026 16:30 #344884
by dredivan
Replied by dredivan on topic Simple G7x Profile editor for Linuxcnc/Axis
Hi, great tool — thanks for sharing it!
I ran into two issues with the generated G-code on a standard LinuxCNC setup (not PathPilot), both easy to fix:
**1. D and I parameters are swapped in the G71/G72 line**
The generator outputs:
```
G71 Q#### D{stock_allow} I{doc} R... F...
```
But LinuxCNC G71 expects `D` = depth of cut per pass and `I` = finish stock allowance — the opposite of what is currently generated. With the values swapped, the cycle runs with a 0.2 mm DOC and a 2 mm finish allowance instead of the other way around.
**2. X and Z arguments on the G71/G72 line cause the machine to stall**
The generator adds `X{start_x} Z{start_z}` directly on the G71 line:
```
G71 Q#### X30.000 Z2.000 D... I... R... F...
```
LinuxCNC does not accept X/Z on the canned cycle line itself — the approach is already handled by the preceding `G0`. With these arguments present the spindle starts but the machine does not move.
**Fix** — patch profiler.py (4 occurrences):
```bash
sed -i 's/X{start_x:.3f} Z{start_z:.3f} D{p.stock_allow:.3f} I{p.doc:.3f}/D{p.doc:.3f} I{p.stock_allow:.3f}/g' profiler.py
```
After the fix the output looks like:
```
G0 X30.000 Z2.000
G71 Q#### D0.500 I0.200 R1.000 F100.0
G70 Q#### F50.0
```
Which runs correctly on LinuxCNC 2.10 with AXIS.
Hope this helps, and thanks again for the project!
I ran into two issues with the generated G-code on a standard LinuxCNC setup (not PathPilot), both easy to fix:
**1. D and I parameters are swapped in the G71/G72 line**
The generator outputs:
```
G71 Q#### D{stock_allow} I{doc} R... F...
```
But LinuxCNC G71 expects `D` = depth of cut per pass and `I` = finish stock allowance — the opposite of what is currently generated. With the values swapped, the cycle runs with a 0.2 mm DOC and a 2 mm finish allowance instead of the other way around.
**2. X and Z arguments on the G71/G72 line cause the machine to stall**
The generator adds `X{start_x} Z{start_z}` directly on the G71 line:
```
G71 Q#### X30.000 Z2.000 D... I... R... F...
```
LinuxCNC does not accept X/Z on the canned cycle line itself — the approach is already handled by the preceding `G0`. With these arguments present the spindle starts but the machine does not move.
**Fix** — patch profiler.py (4 occurrences):
```bash
sed -i 's/X{start_x:.3f} Z{start_z:.3f} D{p.stock_allow:.3f} I{p.doc:.3f}/D{p.doc:.3f} I{p.stock_allow:.3f}/g' profiler.py
```
After the fix the output looks like:
```
G0 X30.000 Z2.000
G71 Q#### D0.500 I0.200 R1.000 F100.0
G70 Q#### F50.0
```
Which runs correctly on LinuxCNC 2.10 with AXIS.
Hope this helps, and thanks again for the project!
Please Log in or Create an account to join the conversation.
- opw
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 8
07 Apr 2026 07:11 #345254
by opw
Replied by opw on topic Simple G7x Profile editor for Linuxcnc/Axis
Thanks for reporting this. I am a little pressed for time these days, so I don't know when I get around to checking and fixing it.
Please Log in or Create an account to join the conversation.
- papagno-source
- Offline
- Elite Member
-
Less
More
- Posts: 166
- Thank you received: 11
20 Apr 2026 14:01 #345774
by papagno-source
Replied by papagno-source on topic Simple G7x Profile editor for Linuxcnc/Axis
Good morning everyone. But does this conversational lathe software only work with Axis or does it have its own native GUI?
Please Log in or Create an account to join the conversation.
- opw
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 8
22 Apr 2026 18:10 #345845
by opw
Replied by opw on topic Simple G7x Profile editor for Linuxcnc/Axis
It has its own GUI....I have not tried it with other UI's, but should be able to work. You can save the g-code and load it in any Linuxcnc ui.
In the readme->quick install section it mentions the 'standalone' mode
In the readme->quick install section it mentions the 'standalone' mode
Please Log in or Create an account to join the conversation.
- papagno-source
- Offline
- Elite Member
-
Less
More
- Posts: 166
- Thank you received: 11
23 Apr 2026 08:55 #345869
by papagno-source
Replied by papagno-source on topic Simple G7x Profile editor for Linuxcnc/Axis
HI good mornig at all.
The GUI, can running on Debian 10 ?
Thanks
The GUI, can running on Debian 10 ?
Thanks
Please Log in or Create an account to join the conversation.
Time to create page: 2.752 seconds