- GCode and Part Programs
- CAD CAM
- Post Processors
- Fusion 360
- Add gear/range change to linuxcnc turn post
Add gear/range change to linuxcnc turn post
- Trav328
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 74
- Thank you received: 30
24 Aug 2025 17:14 #333864
by Trav328
Add gear/range change to linuxcnc turn post was created by Trav328
For the past while i have been using mastercam v9 for my linuxcnc powered lathe , I use 3 M codes to select speed ranges , this was easy to setup in the mastercam post but im having a hard time with the fusion post.
All the information i can find online seems to be a bit dated or the post format has changed , it looks like there used to be a fairly simple section for the spindle but now is more complicated than i can handle.
1-649 rpm - M101
650-1199 rpm - M102
1200-2200rpm - M103
Here is what the code should look like , note the M102 before the spindle turns on , If using constant surface speed it should output the M code for the max RPM
G0 T0002 M06 G43
G97 M102 S1200 M03
G0 G54 X1.8013 Z.11 M8
I have attached the newest linuxcnc turn post with a few small changes i have made for other things.including G43 at every tool change .
Thanks for any help you are able to offer.
All the information i can find online seems to be a bit dated or the post format has changed , it looks like there used to be a fairly simple section for the spindle but now is more complicated than i can handle.
1-649 rpm - M101
650-1199 rpm - M102
1200-2200rpm - M103
Here is what the code should look like , note the M102 before the spindle turns on , If using constant surface speed it should output the M code for the max RPM
G0 T0002 M06 G43
G97 M102 S1200 M03
G0 G54 X1.8013 Z.11 M8
I have attached the newest linuxcnc turn post with a few small changes i have made for other things.including G43 at every tool change .
Thanks for any help you are able to offer.
Attachments:
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23475
- Thank you received: 4993
27 Aug 2025 11:52 #333989
by andypugh
Replied by andypugh on topic Add gear/range change to linuxcnc turn post
If you are using CSS then this might be more complicated than it first seems.
The PP would need to calculate the spindle speed at the start and end of the sequence of feed moves and choose a spindle gear appropriately.
My own lathe handles this in HAL, but certainly not optimally. It will often do a gear change at the end of a facing cut, then change back at the start of the next cut, which isn't ideal.
The PP would need to calculate the spindle speed at the start and end of the sequence of feed moves and choose a spindle gear appropriately.
My own lathe handles this in HAL, but certainly not optimally. It will often do a gear change at the end of a facing cut, then change back at the start of the next cut, which isn't ideal.
Please Log in or Create an account to join the conversation.
- GCode and Part Programs
- CAD CAM
- Post Processors
- Fusion 360
- Add gear/range change to linuxcnc turn post
Time to create page: 0.058 seconds