Hello Guest it is March 28, 2024, 02:09:52 PM

Author Topic: G code needed  (Read 38185 times)

0 Members and 1 Guest are viewing this topic.

G code needed
« on: September 06, 2009, 05:21:39 PM »
Hi
New guy here been doing a good job so far but I have not been able to convert dxf to G code. What I am looking to do is cut out a fire truck about 12 to 14" long for my house number and a 5th wheel trailer for our camp site any help would be appreciated.
Thanks!!!
Bill........

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: G code needed
« Reply #1 on: September 06, 2009, 08:17:00 PM »
You will need to have a program convert your DXF file to Gcode for use by Mach. Programs such as Lazycam which comes with Mach or others will do that. You can't directly import and convert a dxf file in Mach 3.
All of the conversion programs or CAM are not just plug and play. There will be a learning curve to use them.
RICH
Re: G code needed
« Reply #2 on: September 06, 2009, 09:51:04 PM »
Here's a little drawing I've made with MasterCam and saved it as a DXF.

There's is also a .nc file for the Gcode include.

It is made to be engraving with no cutter comp., engraving bit at 60 degrees, .01 deep. (approx)

WSC is on top left of the plate.

If you don't have tool probing, remove the " G43 H1 " in the beginning of the file.

No civic number in include in the .NC file, you'll have to add it.

Please use it at your own risk.

Jeff

« Last Edit: September 06, 2009, 09:55:15 PM by ostie01 »
Re: G code needed
« Reply #3 on: September 07, 2009, 02:45:09 PM »
Thanks !!!!
I will post a pic after I get it done
Bill....
Re: G code needed
« Reply #4 on: October 17, 2009, 10:32:31 AM »
Here is the 5th wheel sign I made Thanks again for the fire truck.
Re: G code needed
« Reply #5 on: October 17, 2009, 10:35:08 AM »
Here it is in jpeg so you view it.
Re: G code needed
« Reply #6 on: November 17, 2009, 04:54:26 PM »
Can anyone share what a g code might look like  for half circle or arc, how about a figure eight, or even better and "s"?

I don't currently have a \cad cam program, but i hav some ideas that i'd like to make, but need a code for an 8 or , a half circle, or arc or" s"
All help woul;d be greatly appreciated!
thanks
Mark

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: G code needed
« Reply #7 on: November 18, 2009, 03:21:58 AM »
Hi Mark,

This is the typical GCode to produce the letter S with the Times New Roman typeface.

G00 G49 G40  G17 G80 G50 G90
G21
M04 S0
G00 Z10
G00 G90 X9.8952Y0
F50
G00 X9.8952 Y0
G00 Z0
G00 Z-0.5
G01 X9.8952 Y5.78
G01 X10.3452 Y5.78
G03 X10.9572 Y3.568 I19.6712 J7.17
G01 X11.2172 Y3.06
G03 X12.8912 Y1.56 I14.7432 J5.314
G03 X16.7552 Y1.17 I15.2972 J6.054
G03 X18.7112 Y3.464 I15.9392 J3.844
G03 X18.7192 Y3.678 I15.8692 J3.678
G03 X17.9532 Y5.622 I15.8692 J3.678
G03 X16.9852 Y6.434 I14.5732 J2.58
G02 X12.1392 Y9.306 I56.5612 J78.722
G02 X10.2092 Y11.292 I15.0512 J14.066
G02 X9.7352 Y13.234 I13.9412 J13.234
G02 X11.4892 Y16.652 I13.9412 J13.234
G02 X14.6752 Y17.658 I14.5352 J12.552
G02 X17.5252 Y17.004 I14.5312 J10.498
G01 X18.1192 Y16.772
G03 X18.5072 Y16.696 I18.5812 J18.08
G03 X19.2212 Y17.176 I18.5512 J17.402
G03 X19.3672 Y17.658 I16.7432 J18.18
G01 X19.8152 Y17.658
G01 X19.8152 Y11.816
G01 X19.3672 Y11.816
G03 X18.5652 Y14.494 I12.7632 J11.3
G03 X14.7072 Y16.664 I14.6752 J12.09
G03 X11.9372 Y15.026 I14.5852 J13.706
G03 X11.7232 Y14.088 I13.8832 J14.088
G03 X12.2592 Y12.664 I13.8832 J14.088
G03 X12.7752 Y12.158 I15.3112 J15.264
G03 X14.6072 Y10.912 I21.6872 J23.276
G02 X17.9032 Y9.048 I-32.3968 J-76.16
G02 X19.1412 Y8.222 I11.3472 J-2.112
G02 X20.9392 Y4.67 I16.5292 J4.67
G02 X19.0672 Y1.062 I16.5292 J4.67
G02 X15.6232 Y0 I15.7872 J5.578
G02 X13.6492 Y0.258 I15.4372 J6.262
G03 X11.6512 Y0.864 I-17.5688 J-98.962
G03 X11.1032 Y0.964 I10.9252 J-1.598
G03 X10.5272 Y0.656 I11.0552 J0.362
G03 X10.3932 Y0.268 I11.8932 J-0.032
G01 X10.3452 Y0
G01 X9.8952 Y0
G00 Z10
G00 X22.2464 Y0
M30

And in comparison the GCode for a single line S would typically be something like this:-

N1 T1 M6 M3 F200
N2 G0 Z2
N3 G0 X1.981 Y9.017
N4 G1 Z-0.2
N5 G1 X2.057 Y8.433
N6 G1 X2.184 Y7.874
N7 G1 X2.388 Y7.315
N8 G1 X2.692 Y6.807
N9 G1 X3.048 Y6.35
N10 G1 X3.48 Y5.969
N11 G1 X3.937 Y5.664
N12 G1 X4.445 Y5.436
N13 G1 X5.004 Y5.309
N14 G1 X5.563 Y5.258
N15 G1 X6.121 Y5.309
N16 G1 X6.655 Y5.436
N17 G1 X7.163 Y5.664
N18 G1 X7.671 Y5.969
N19 G1 X8.077 Y6.35
N20 G1 X8.433 Y6.807
N21 G1 X8.738 Y7.315
N22 G1 X8.941 Y7.874
N23 G1 X9.093 Y8.433
N24 G1 X9.119 Y9.017
N25 G1 X9.093 Y9.5
N26 G1 X9.017 Y9.931
N27 G1 X8.89 Y10.363
N28 G1 X8.712 Y10.77
N29 G1 X8.484 Y11.176
N30 G1 X8.23 Y11.532
N31 G1 X7.925 Y11.836
N32 G1 X7.569 Y12.141
N33 G1 X7.214 Y12.344
N34 G1 X6.833 Y12.548
N35 G1 X6.426 Y12.675
N36 G1 X5.994 Y12.751
N37 G1 X5.563 Y12.776
N38 G1 X5.004 Y12.852
N39 G1 X4.445 Y12.954
N40 G1 X3.937 Y13.208
N41 G1 X3.48 Y13.513
N42 G1 X3.048 Y13.894
N43 G1 X2.692 Y14.351
N44 G1 X2.388 Y14.834
N45 G1 X2.184 Y15.392
N46 G1 X2.057 Y15.977
N47 G1 X1.981 Y16.561
N48 G1 X2.057 Y17.145
N49 G1 X2.184 Y17.729
N50 G1 X2.388 Y18.263
N51 G1 X2.692 Y18.745
N52 G1 X3.048 Y19.228
N53 G1 X3.48 Y19.583
N54 G1 X3.937 Y19.914
N55 G1 X4.445 Y20.142
N56 G1 X5.004 Y20.269
N57 G1 X5.563 Y20.32
N58 G1 X5.994 Y20.269
N59 G1 X6.426 Y20.218
N60 G1 X6.833 Y20.066
N61 G1 X7.214 Y19.888
N62 G1 X7.569 Y19.66
N63 G1 X7.925 Y19.355
N64 G1 X8.23 Y19.05
N65 G1 X8.484 Y18.694
N66 G1 X8.712 Y18.313
N67 G1 X8.89 Y17.882
N68 G1 X9.017 Y17.45
N69 G1 X9.093 Y17.018
N70 G1 X9.119 Y16.561
N71 G0 Z2
N72 G0 X0 Y0
N73 M30



Tweakie.
« Last Edit: November 18, 2009, 03:51:46 AM by Tweakie.CNC »
PEACE

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: G code needed
« Reply #8 on: November 18, 2009, 08:16:32 AM »
HMM....
You may want to have a look at the ARC MOTION TUTORIAL  in Members Docs as that will show you how to program arcs. For the letter S you can do it with with just 2 or 4 lines of code. There are numerous examples of coding that you can look at and then just modify. See Fun programs for arc Motion in that tutorial. The problem with many programs is that they generate a lot of small lines to represent an arc. Although done for a lathe the info can be used for the mill just remember that your are in a different "plane"  G17 instead of "G18".

You can also just use LazyCam. There is a section in that manual on text.
RICH
Re: G code needed
« Reply #9 on: February 20, 2010, 01:08:50 AM »
all I know now is that you have to be a programer to have a Hobby CNC machine. And even the advanced programers still don't know all of it. hehe Good luck to people like me. I have built the most beatifull and precise CNC machine and all I can cut is a scorpion that I don't know where I got the G code from. LOL. at 59 years old I think it would be a little harder to learn things than when one is younger. I don't even know where to start. Im lost and confused hearing all of this DXF> CNN< DRO> AND>BBC> ESPN>and all of the above terms. LOL I think I'll just be looking for ready made paterns to find from here and there to keep playing. >:(