CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > G-Code Programing


G-Code Programing Discuss G-code programing and problems here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-23-2007, 01:52 PM
jorgehrr's Avatar  
Join Date: May 2006
Location: USA
Posts: 203
jorgehrr is on a distinguished road
Thread milling in a machine center

My first time programming a thread mill.

I need to program 5/8-13 thread, I have not clue.

Any samples or web sites that I can learn from will be appreciate.


Thank you

Jorge
Reply With Quote

  #2   Ban this user!
Old 07-23-2007, 02:16 PM
Mitsui Seiki's Avatar  
Join Date: Feb 2007
Location: USA
Posts: 464
Mitsui Seiki is on a distinguished road

http://www.micro100.com/downloads/ThreadMillAssist.html

Take a look at this.It may be of some help to you.
Reply With Quote

  #3   Ban this user!
Old 07-23-2007, 02:24 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Can you program a circle? For example G03 I0. J-.3125 Fsomething.

This does one counterclockwise circle around a centerpoint located negative 0.3125 on the Y axis. (Actually some controls interpret the J value as the absolute Y coordinate; mine interpret it as the incrmental distance from the location of the tool.)

Can you do helical interpolation using incremental? G91 G03 I0. J-.3125 Z0.0769 Fsomething.

This does one CCW circle but during the circle the tool moves up the distance Z.0769; in other words it has cut one thread.

Thread milling is simply helical interpolation where the Z movement per circle is the thread pitch. To do a right hand thread 3/4" deep you start at the bottom and spiral your way up.

G91 G03 I0. J-0.3125 Z.0769 Fsomething L10

This does ten CCW circles and moves up a total of 0.769"; it has cut your thread.

I have left out all the details about moving to the hole location, moving out to the starting position with tool comp and all that stuff. If you know any G-code you should be able to sort things out from this.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #4   Ban this user!
Old 07-23-2007, 02:32 PM
jorgehrr's Avatar  
Join Date: May 2006
Location: USA
Posts: 203
jorgehrr is on a distinguished road
Thumbs up

Thank you guys.

This is great information

Jorge
Reply With Quote

  #5  
Old 07-24-2007, 01:16 PM
*Registered User*
 
Join Date: Nov 2005
Location: USA
Posts: 274
Bluesman is on a distinguished road

Originally Posted by jorgehrr View Post
Thank you guys.

This is great information

Jorge
I thinbk if you got to the OSG websight they have a program you can download that will generate G code for thread milling. I know that tere catalouge comes with it I would guess you could get for the web sight too

Bluesman
Reply With Quote

Sponsored Links
  #6  
Old 07-25-2007, 01:16 AM
tobyaxis's Avatar
Moderator
 
Join Date: Jan 2006
Location: USA
Posts: 4,396
tobyaxis is on a distinguished road

Originally Posted by Mitsui Seiki View Post
http://www.micro100.com/downloads/ThreadMillAssist.html

Take a look at this.It may be of some help to you.
Hey these are good to have for the future.

Thanks!!!
__________________
Toby D.
"Imagination and Memory are but one thing, but for divers considerations have divers names"
Schwarzwald

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

www.refractotech.com
Reply With Quote

  #7   Ban this user!
Old 07-25-2007, 04:55 PM
 
Join Date: Apr 2007
Location: Texas
Posts: 6
mrplace is on a distinguished road

[QUOTE=Geof;323187]Can you program a circle? For example G03 I0. J-.3125 Fsomething.

This does one counterclockwise circle around a centerpoint located negative 0.3125 on the Y axis. (Actually some controls interpret the J value as the absolute Y coordinate; mine interpret it as the incrmental distance from the location of the tool.)

Can you do helical interpolation using incremental? G91 G03 I0. J-.3125 Z0.0769 Fsomething.

This does one CCW circle but during the circle the tool moves up the distance Z.0769; in other words it has cut one thread.

Thread milling is simply helical interpolation where the Z movement per circle is the thread pitch. To do a right hand thread 3/4" deep you start at the bottom and spiral your way up.

G91 G03 I0. J-0.3125 Z.0769 Fsomething L10

QUOTE]


I am still pretty new to CNC, so go easy. I do not fully understand I, J and K. Is I the same as X and J the same as Y, except they are circular movements? If not, how do I determine my I and J coordinates?

This is how I have learned to make a circle.

G2 X.5 Y.25 R.25 F10
G2 X0 Y.25 R.25

This makes a circle, but makes it very hard to make threads since you are just cutting two 180's. I have downloaded the spreadsheet and Advent's program, but I would like to have a grasp on the actual mechanics of the code.

Thanks for any assistance.

http://www.advent-threadmill.com/2_downloads.cfm
Reply With Quote

  #8   Ban this user!
Old 07-25-2007, 11:49 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by mrplace View Post
I am still pretty new to CNC, so go easy. I do not fully understand I, J and K. Is I the same as X and J the same as Y, except they are circular movements? If not, how do I determine my I and J coordinates?

This is how I have learned to make a circle.

G2 X.5 Y.25 R.25 F10
G2 X0 Y.25 R.25

This makes a circle, but makes it very hard to make threads since you are just cutting two 180's. I have downloaded the spreadsheet and Advent's program, but I would like to have a grasp on the actual mechanics of the code.

Thanks for any assistance.

http://www.advent-threadmill.com/2_downloads.cfm
I have seen this and have started preparing a reply but got distracted. As the advertisements sometime say: 'Watch this space' to quote a famous military figure... I will return.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #9   Ban this user!
Old 07-26-2007, 11:28 PM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by mrplace View Post
I am still pretty new to CNC, so go easy. I do not fully understand I, J and K. Is I the same as X and J the same as Y, except they are circular movements? If not, how do I determine my I and J coordinates?

This is how I have learned to make a circle.

G2 X.5 Y.25 R.25 F10
G2 X0 Y.25 R.25

This makes a circle, but makes it very hard to make threads since you are just cutting two 180's.
Okay, going easy (I hope).

I, J and K, where did I mention K? Are you trying to confuse me?

Getting serious:

All the following is correct for Haas machines.

Circular interpolation moves; the G02 clockwise motion and G03 counterclockwise motion, for a partial circle can be programmed using the Radius method or the I, J method but for a full circle it is necessary to use the I, J, method.

You can understand why the R method does not work for a full circle when you look at what the G02 or G03 command is telling the machine to do with the R method.

In absolute programming G02 says follow a clockwise circular path with a radius equal to R from your present position to the position X, Y.

In incremental programming G02 says follow a clockwise circular path with a radius R from your present position to a position located a distance X and a distance Y from your present position.

G03 just says follow the counterclockwise path.

For a full circle the start position and end position are the same, or looked at it another way the distance travelled is zero. So using the R method for a full circle means you are telling the machine to go to the position it is already at in absolute or telling it to go nowhere in incremental.

It is possible to do almost a full circle using the R method. In fact when you tell the machine to move on a circular path between two points you always have two choices; the short way in which the circle covers less than 180 degrees or the long way which covers more than 180 degrees. Giving R a negative value tells the machine to go the long way round.

Of course it is possible to do two half circles using the R method to get one full circle; or any combination of two partial circles. For a full circle in one command the I, J method has to be used

With the I, J method the effect of the G02 or G03 command is slightly modified; G02 says move in a clockwise circle all the way around to your starting point using the position defined by I and J as your center point. G03 is move counterclockwise.

In this command the center is located the distance I along the X axis from the starting point and the distance J along the Y axis from the starting point.

As an example imagine the Work Coordinate is located at the center of a 1.000" dia. hole that has to be interpolated. Using a 0.500" dia cutter the centerline of the cutter has to follow a radius of 0.250".

If the tool is positioned first at the Work Zero, X0. Y0. a move to Y0.25 puts the cutter at the correct radius; the distance back to the center point is 0.250". The circular interpolation command for counterclockwise motion is:

G03 I0. J-0.25

The J is negative because the Y move was positive; if the Y move was negative the J would be positive.

I is 0. because there was no X movement from the center point to the starting point for the circle.

When using the I, J method for full circles absolute and incremental has the same effect; the circular interpolation command says follow a circular path back to this point using the point defined by I and J as your center point.

Because the command returns to the same point no incremental motion has occured; because the command returns to the same point it has returned in absolute to its original location.

Thread milling makes use of this by using incremental to command an incremental Z move during the circular interpolation.

To end I will comment that it is possible to use R for thread milling and it is possible to do partial circles with I and J but not tonight .
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

  #10   Ban this user!
Old 07-27-2007, 05:36 AM
 
Join Date: Apr 2007
Location: Texas
Posts: 6
mrplace is on a distinguished road

OK, that makes alot more sense to me now.

You didn't mention K, it is in something I am reading and states it is also a circular motion.

Thank you for the detailed explantion.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-27-2007, 07:44 AM
Kool Parts's Avatar  
Join Date: Jan 2004
Location: USA
Posts: 395
Kool Parts is on a distinguished road

This is for single point tool that I have.
Gary

%
O0
G17 G40 G80 G90
(3/8 THREAD MILL 5/8-13 TPI)
T2 M6
S6500 M3
G0 G90 G54 X0.0637 Y0
G43 Z1. H2 M8
G0 Z0.1
G1 Z-1.0269 F10.1
G41 X0.0625 D2
G3 X0.126 Z-1. I0.0318 J0
Z-0.9231 I-0.126 J0
Z-0.8462 I-0.126 J0
Z-0.7692 I-0.126 J0
Z-0.6923 I-0.126 J0
Z-0.6154 I-0.126 J0
Z-0.5385 I-0.126 J0
Z-0.4615 I-0.126 J0
Z-0.3846 I-0.126 J0
Z-0.3077 I-0.126 J0
Z-0.2308 I-0.126 J0
Z-0.1538 I-0.126 J0
Z-0.0769 I-0.126 J0
Z0 I-0.126 J0
X0.0625 Z0.0269 I-0.0317 J0
G1 G40 X0.0637
G0 Z0.1
Z1.
G0 G49 G90 Z0 M9
G28 G91 Y0 Z0
M30
%
Reply With Quote

  #12   Ban this user!
Old 07-27-2007, 08:09 AM
 
Join Date: Jul 2005
Location: Canada
Posts: 11,563
Geof will become famous soon enough

Originally Posted by mrplace View Post
OK, that makes alot more sense to me now.

You didn't mention K, it is in something I am reading and states it is also a circular motion.

Thank you for the detailed explantion.
There are machine related differences which is why I mentioned my info is correct for Haas.

I just realised maybe K is when you are working in a vertical plane; doing circular motion in X and Z or Y and Z, K would be the distance to center along the Z axis. This is motion in G18 and G19.
__________________
An open mind is a virtue...so long as all the common sense has not leaked out.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
0M-Thread milling? mikul Fanuc 1 12-05-2006 11:56 PM
thread milling STS_Kevin Daewoo/Doosan 0 11-28-2006 06:50 PM
Thread Milling 3/8-18 NPT shawn G-Code Programing 13 08-26-2006 08:24 AM
ACROLOC series 10 Vertical Milling Center CNC DieGuy General Metal Working Machines 2 07-20-2005 05:12 PM




All times are GMT -5. The time now is 08:25 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361