![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| ||||
| ||||
| Hope it work for your machine. O0001 G20 (TOOL - 1 OFFSET - 1) (FACE CONTOUR UNDEFINED) (1.39DIM HEX _1/2 ENDMILL) G0T0101 M23 G0G54X2.3417Z.1 C0.0 G97S1768M54 G98G1Z0.F10. G98G3G112 G41X.25C1.019R.25 G1X1.64C.6178 G2X1.89C.4013R.25 G1C-.4013 G2X1.64C-.6178R.25 G1X.25C-1.019 G2X0.C-1.0525R.25 X-.25C-1.019R.25 G1X-1.64C-.6178 G2X-1.89C-.4013R.25 G1C.4013 G2X-1.64C.6178R.25 G1X-.25C1.019 G2X0.C1.0525R.25 X.25C1.019R.25 G1X.4232C.969 G113 G0Z.1 G28U0.W0.H0.M55 T0100 M30
__________________ The best way to learn is trial error. |
|
#3
| |||
| |||
Newtexas's prog looks good. But to do other progs, different sizes yourself, I'll try to help. When the control goes in to G12.1 (G112) it's now in milling mode. Think of coordinates as on the miller, only X is diameter (not radius) and Y is C. Work out your across corner size... A/F x 1.155.... 1.39 x 1.155=1.605 So on the miller you would program the points of the hex as so... X0.803 Y0 X0.401 Y-0.695 X-0.401 Y-0.695 X-0.803 Y0 X-0.401 Y0.695 X0.401 Y0.695 X0.803 Y0 So on the lathe (double the X, change Y to C) the points of the hex are as so... X1.605 C0 X0.802 C-0.695 X-0.802 C-0.695 X-1.605 C0 X-0.802 C0.695 X0.802 C0.695 X1.605 C0 A simple prog would look like this.... Tool change..blah, blah C0X2.2Z0.1 G98G1Z-0.1F.. G112 G1G41X1.605C0 G1X0.802C-0.695 G1X-0.802C-0.695 G1X-1.605C0 G1X-0.802C0.695 G1X0.802C0.695 G1X1.605C0 G1G40X2.2 G113 G0Z.1 Blah, blah M30 Oooo..hmmm..or macro style Tool change...blah, blah #504=0.5 (ENTER CUTTER DIA) #505=1.39 (ENTER A/F SIZE) #506=[#505*1.155] #507=[#505/2] C0X[#506+#504+0.5]Z0.1 G98G1Z-0.1F... G112 G1G41X#506C0 X[#506/2]C-#507 X-[#506/2]C-#507 X-#506C0 X-[#506/2]C#507 X[#506/2]C#507 X#506C0 G40X[#506+#504+0.5] G113 G0Z.1 Blah, blah M30 Keep this in machine memory and just copy and merge into your prog. Hope it makes sense?? ChattaMan Last edited by ChattaMan; 09-27-2007 at 04:20 PM. Reason: missed out a # |
|
#5
| |||
| |||
| CHange para 6030 to 100. Call macro as follow M110V___F___ V= WIth of hex F= feed. Position tool in Z depth of cut and in X-axis, postion a bit above OD. After the macro the tool will end up at the same postion as when it were called. There are a little bug in the macro, if the toolposition in X-axis are to close to hex when calling the macro it will cut off a bit of the hex while entering toolcomp/starting point. I ve adding some suggestions that might fix it, but i have not tried them myself yet...... % O9020(MACRO HEX) M88 ---Clamp anti vib, brake #29=#9*0.5 #2=0.577 #3=#2*#22*0.5 #5=#5001 #24=#22*0.5 #25=#3*#3 #26=#24*#24 #27=#25+#26 #23=SQRT[#27] #30=#22+5 G112 #28=#3-1 G1G41X#30C-#28F#9-- (G1G41C-#28F#9--change to this?) (X#30) --- Add this line? X#22C-#3 X0C-#23 X-#22C-#3 X-#22C#3 X0C#23 X#22C#3 C-#3 G1G40X#5C0 G113 M90 G0 M99 % |
| Sponsored Links |
|
#6
| |||
| |||
| Thank you for all the help i got g12.1 working but flats do not come out the same i broke down and put a 2" face mill in and just used z to cut flats and x&c to position machine hex came out off center something is out of wack with machine maybe headstock to turret is my thought programed error out and its running would still like to get it right tho |
|
#7
| ||||
| ||||
|
wouldn't it be easier to cut the hex in the -X- axis using the tip of the end mill instead of the side and indexing your spindle in 60 deg increments?
__________________ If you can ENVISION it I can make it |
|
#8
| |||
| |||
I wrote the program above as simple as possible so it could be understood. But adding an R to each line would make it possible to put corner rads on, so eliminating any burrs. Also it looks more professional. Just another way of doing the same thing :-) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No A axis moves ? ( in post ) | Scott_M | FeatureCAM CAD/CAM | 3 | 08-09-2007 08:37 AM |
| Changing Z moves | Davidimurray | Post Processors for MC | 5 | 02-10-2007 01:59 PM |
| Rapid moves G00 | dicksonhof | Mach Software (ArtSoft software) | 9 | 11-07-2006 09:21 AM |
| Z position moves up during run | henryj1951 | Gecko Drives | 3 | 03-27-2006 05:16 PM |
| Motor only moves one direction | spoiledbrat | Mach Software (ArtSoft software) | 3 | 06-12-2005 01:02 PM |