![]() | |
| 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
| |||
| |||
| First you need to define the geometry, as a bat is not just a simple cylinder. The geometry could be defined in 2D. From there, you could manually write the Gcode (making sure that the syntax etc.) is correct for your machine control. You could take a bat and "reverse engineer" it by dividing the length into a number of segments, and measuring the diameter at each segment. The drawing would then be scaled to suite. Do you have any experience with CNC turning? Machining? regards |
|
#6
| |||
| |||
| OK, I apologize. That's what he's saying.....sort of. What model of control are you using? Do you have the programming manual? Assuming you know how to set tool geometry on your machine and you are starting with the pommel (grip) end to the tailstock, you'll need to rough turn the areas that aren't undercut (any diameter greater than the pommel diameter). With the finished pommel face being Z zero, measure the pommel diameter and find the same diameter toward the business end and figure the Z minus distance to that point. Without having a baseball bat and calipers in front of me, we'll assume the distance is Z-10.000 and the pommel diameter is X1.500 with the diameter getting incrementally larger to the fattest point from there. Let's say the largest diameter is X3.000 and overall length is Z-36.000. Stock: 3.25 diameter by 40.125 long chucked on 1.000 inch leaving .125 for finish on the pommel end and 3.000 between the other end and the chuck. Facing pommel end: N1 G00 T101 S????(spindle speed) M03 X3.500 Z0.0 G01 X.75 (not running in to the center/tailstock) F.??(feedrate/ipr) G00 X3.5* Z.100 (Roughing non-undercut areas using G71) G71 U.125(depth of cut) R.100(retract amount between cuts) G71 P101(first line of finish profile) Q106(last line of finish profile) U.02(stock to leave for finish in X) W0(stock to leave for finish in Z) F.?? N101 G00 X1.500 N102 G01 Z-10.0 N103 X2.0 Z-14.0 N104 X2.5 Z-20.0 N105 X3.0 Z-37.0 N106 X3.5*(start and finish at the same diameter/machine will return to X3.5 Z.1 when it reaches this point) G00 X10.0 Z5.0 M05(spindle stop) M01(optional stop) Without hints: N1 G00 T101 S???? M03 G00 X3.500 Z0.0 G01 X.75 F.?? G00 X3.5* Z.100 G71 U.100 R.100 G71 P101 Q106 U.02 W0 F.?? N101 G00 X1.500 N102 G01 Z-10.0 N103 X2.0 Z-14.0 N104 X2.5 Z-20.0 N105 X3.0 Z-37.0 N106 X3.5* ** G00 X10.0 Z5.0 M05 If you use a tool that will work for the undercut as well you can continue from here** without a tool change. Assuming the pommel is 1/2" wide and your tool is .250 wide and the skinny part of the grip is 1.000 diameter: G00 X1.75 Z.100 Z-.760(leaving .01 for finish on inside face) G01 X1.25 F.?? Z-9.0(account for undercut area taper) G00 X1.75 Z-.760 G01 X1.04(leaving .04 for finish/.02 per side) Z-8.0(account for undercut area taper) G00 X1.75 Z-.75 (take a finish pass) G01 X1.0 F.?? Z-8.0 X1.500 Z-10.0 X2.0 Z-14.0 X2.5 Z-20.0 X3.0 Z-36.25(overall length plus tool width) X2.0(cut clearance for radius tool) F.?? G00 X3.5 Z.100 G00 X10.0 Z5.0 M05 Altogether: N1 G00 T101 S???? M03 G00 X3.500 Z0.0 G01 X.75 F.?? G00 X3.5* Z.100 G71 U.100 R.100 G71 P101 Q106 U.02 W0 F.?? N101 G00 X1.500 N102 G01 Z-10.0 N103 X2.0 Z-14.0 N104 X2.5 Z-20.0 N105 X3.0 Z-37.0 N106 X3.5* G00 X1.75 Z.100 Z-.760 G01 X1.25 F.?? Z-9.0 G00 X1.75 Z-.760 G01 X1.04 Z-8.0 G00 X1.75 Z-.75 G01 X1.0 F.?? Z-8.0 X1.500 Z-10.0 X2.0 Z-14.0 X2.5 Z-20.0 X3.0 Z-36.25 X2.0 F.?? G00 X3.5 Z.100 G00 X10.0 Z5.0 M05 M01 I'm not going to reverse-engineer a bat for you but that should be a baseball bat type shape. Just measure the bat in segments and draw youself a profile with the numbers and plug them into the program. you can have as many "N###" moves as you need just change the "Q###" in the G71 line to the last # in the profile. I didnt get to G70(finish cycle) either but with an undercut, the best you could get out of it would be finishing half the bat(what you roughed with the G71 cycle). G70 P101 Q106 F.?? would finish that profile. I'm going batty. Hope that helps. Be safe. |
|
#7
| |||
| |||
| Hi please see attached. Next step, refine the geometry (looks funny at the 2.75 end) No big deal, as I translated your dimensions to XL, and then read into SolidWorks as a curve file. After that design the toolpath.. regards |
![]() |
| 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 |
| M-codes and G-codes 4 Matsuura ES-1000V | maximusek | G-Code Programing | 2 | 11-27-2007 06:41 AM |
| Need help with G codes | soldier | G-Code Programing | 2 | 11-23-2007 11:38 AM |
| Kids portrait - WOOD WANTED | offroadxx | WoodWorking | 3 | 10-29-2007 07:04 PM |
| Not Wood but works like wood almost | foamcutter | WoodWorking | 8 | 07-12-2005 04:14 PM |
| Why do they play the organ in baseball? | ynneb | CNCzone Club House | 0 | 08-24-2004 06:27 AM |