Add gear/range change to linuxcnc turn post

  • Trav328
  • Trav328's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
24 Aug 2025 17:14 #333864 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.

 

File Attachment:

File Name: linuxcncturning.txt
File Size:52 KB
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum