Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Python script to convert Contour Info to lathe G-code


evugar
 Share

Recommended Posts

Made a little Python-powered tool to convert contour information to lathe G-code.
It's nothing sofisticated, just a starting point to make a code to occasionaly turn simple parts on a lathe.

Usage:

1. Install latest Python interpreter.
2. Start the tool by typing this in command interpreter:
 

python contour_gui.py


3. In Mastercam, copy contour information (Analyze contour)
4. Paste resulting contourinformation into the tool by pressing "Paste contour data" button
5. Type in your tool, allowance and feed information accordingly.
6. Press "Convert and copy to clipboard" button
7. Paste resulting G-code to your favourite editor and edit to your heart content.
 
 

img01.jpg

img02.jpg

img03.jpg

contour_gui.py

  • Thanks 2
Link to comment
Share on other sites

I'm going to make use of this tool for sure! We don't have a lathe seat newer than X and sometimes the guys need a more complicated contour than they can hand bomb.

I make a dummy endmill of the nose radius and give them the posed nc for a contour path. This looks even easier, and passing on lathe flavoured code will be appreciated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...