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:

Kinda OT: Convert G code from incremental to absolute


Thad
 Share

Recommended Posts

I have some old programs (the files I sent you, Paul) that I would like to turn into MC9 files. They are standard G code .txt files. They "cut" a picture of Mickey Mouse, ET, and Calvin. (Paul's laser thread got me going on this.)

 

I tried to import them as ASCII files into MC, but since they're incremental values, I got a bunch of junk. I got these files about 8 years ago and have no idea what system they came from.

 

Is there an easy way to convert the values from incremental to absolute. Does anyone have any other suggestions? All I have are the .txt files (no CAD data).

 

Thad

Link to comment
Share on other sites

Thad could you use them as sub programs. There are programs out there called G-Code programs that will show you a g-code program like MCU but as stand alone programs.

Link

 

I am thinking you use this to establish a origin of the part then you could call the program as a sub and make the shapes. If you have a problem with some of the code go into Cimco and just do the find replace and would make quick work of them. Like if they are G2 and need to be G02 then you just change them that easy. I am thinkign you could maybe write a script but thinking it would be someone what envovled. You can also take all of the X,Y coordinate and import them into EXCEL as a ASCII file and then dvide the colums and do a graph chart to see the shape also. Then you could save it as a BMP then if you have raster for Mastercam could import it and then do a toolpath in Mastercam and have it licked from there.

 

With the G-code programs that display what you have on the screen you could do a print screen then open paint then save it as a bmp also. The nthe same method with raster import into Mastercam good to go.

 

HTH

Link to comment
Share on other sites

All I have is a .txt file like this.

 

code:

%

N1O3(CALVIN

N2(TOOL CALL

N3G0G17G40G80G90M5M9H0Z0

N4T16M6(CENTER DRILL

N5X-0.003Y0.48739S6500M3

N6Z1.D16H16

N7G1Z-0.005F15.

N8G91

N9G2X0.79024Y-0.02011I-0.57121J-37.98149

N10G3X0.02324Y0.0048I0.00179J0.04997

N11X0.34465Y0.39353I-0.28262J0.59519

N12G2X-0.06427Y-0.14063I-0.62726J0.20166

N13G3X0.22392Y-0.02458I0.17283J0.54215

N14X0.30433Y0.20862I-0.09271J0.46152

N15X0.04673Y0.314I-0.43843J0.22572

N16X-0.09567Y0.17098I-0.26584J-0.03649

N17X-0.11614Y0.0142I-0.07089J-0.09778

N18G1X-0.10583Y-0.04511

.

.

.

Snipped

I want to be able to "reverse engineer" this back into a usable MC9 file. I could do a screen shot of the backplotted file (Metacut or other), but if that's the case, I might as well find my own pic somewhere on the net and use raster to vector. I don't want to do that. I want to use these files.

 

Thad

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...