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 10-17-2009, 01:11 PM
 
Join Date: Oct 2009
Location: United States
Posts: 4
Lukema is on a distinguished road
Need help with thread milling program

I am thread milling an M24 x 1 thread in cast iron. below is the sub program for the thread milling process. This sub program was writen years ago and the programer has since retired. I am having trouble following the sub program line by line. The machining center is a Deckel Maho Horizontal with a siemens 840D control.

;%_N_L921_SPF
;$PATH=/_N_SPF_DIR
;PROGRAM FOR DMG 1-8
;THREAD MILL CYCLE
;R2=REFERENCE DEPTH
;R3=FINAL DEPTH
;R5=PITCH OF THREAD
;R6=START OF THREAD RADIUS THAT IS SMALLER THEN TAP DRILL RADIUS
;R7=FINISH THREAD RADIUS
;R10=ADDITIONAL RETRACTION
N0010 G0 G60 G90 CFC Z=R2
N0020 R56=R7+R6 R57=R5/2 R62=-R6 R63=R56/2 R64=-R56
N0030 G0 G90 Z=R3
N0040 G1 G41 G91 X0. Y=R62
N0050 G3 G64 G91 X0. Y=R56 Z=R57 I0. J=R63
N0060 G3 G64 G91 X0. Y0. Z=R5 I0. J=-R7
N0070 G3 G64 G91 X0. Y=R64 Z=R57 I0. J=-R63
N0080 G0 G40 G60 G91 X0. Y=R6
N0090 G0 G90 Z=R10
N0100 M17

Parameters used, (all values below are in millimeters):
R56=22
R52=-10
R63=11
R5=1
R7=12
R64=-22
R6=10
R57=0.5

I am getting lost at line 60, how are the I & J being calculated?

Thanks for the help
Reply With Quote

  #2   Ban this user!
Old 10-17-2009, 06:36 PM
 
Join Date: Jan 2009
Location: united states
Posts: 16
tfisher is on a distinguished road

looks like a nice little program. the i and j in line 60 are the way they are because it looks like the program will move down to the minor radius as programmed in R6 then ramp in to the major radius as programmed in R7 since your tool is now at the major radius. line 60 will now make a complete circle rotating around the center of the hole which is -R7. I hope this will help if not let me know i can give it another try. If you are interested i have alot of nice macros for the siemens 840d. like thread milling pipe threads and boring a spherical bore. They told me it couldn't be done with the 840d but i got it to work and it works very well.
Reply With Quote

  #3   Ban this user!
Old 10-17-2009, 09:21 PM
 
Join Date: Oct 2009
Location: United States
Posts: 4
Lukema is on a distinguished road

Thanks tfisher,
So the x & y coordinates represent the end points of the arc and the I & J represent the are center?

The way i read it, the first move is Y-10
next is an arc starting at x0 y-10 and ending x0 y22 with the center of the arc being x0 y11.
This arc of 180degrees
what i am not getting is (-10) to 22 is a linear distance of 32mm, half of 32 is 16, so why is J=11 and not 16?

Next In line 60, is the end point of the arc actually x0 & y0, which would be the center of the bore,(no longer cutting)?
Is this line commanding a 180 or 360degree arc?

Then in line 70, end point of this arc segment is x0 y-22 with arc center at x0 y-11.
why is the end point of the arc x0 y-22 ? i would think x0 y-12 because of the thread having a major diameter of 24mm.

what am i missing here

Thanks for the help, this is driving me nuts
Luke
Reply With Quote

  #4   Ban this user!
Old 10-17-2009, 10:22 PM
 
Join Date: Jan 2009
Location: united states
Posts: 16
tfisher is on a distinguished road

i think what is messing you up is that you have to remember that G91 is active so all your coordinates are incremental. so you move to y-10 then do a 180 degree arc to y22 which is incremental so you are at y12 in absolute. that is why in line 60 your j is at -12 because you are at y12 in absolute coordinates. whenever using G2 or G3 your x and y dimensions can be absolute or incremental depending on whether you're using G90 or G91 but your i and j dimensions are always incremental. hope this helps.
Reply With Quote

  #5   Ban this user!
Old 10-18-2009, 11:10 AM
 
Join Date: Oct 2009
Location: United States
Posts: 4
Lukema is on a distinguished road

Thanks,

I got it now, I was thinking absolute and not incremental.

Thanks again for the help.
Luke
Reply With Quote

Sponsored Links
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
Thread Milling - Cnc Program Developer - New Release John Walker Product Announcements & Manufacturer News 0 02-08-2009 05:18 PM
1/4 NPT External thread program JerryH G-Code Programing 5 08-28-2008 07:37 AM
need help on program 1/2-4 2 star thread plast744 Haas Lathes 1 12-04-2007 12:30 PM
Thread Mill Program october G-Code Programing 2 04-07-2007 07:41 AM
2-1/2 - 8 NPT Thread Mill Program wesleybridgepor General Metalwork Discussion 2 11-30-2006 04:56 AM




All times are GMT -5. The time now is 12:23 AM.





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