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 > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-15-2009, 08:12 AM
 
Join Date: Jul 2009
Location: NL
Posts: 133
CaptainVee is on a distinguished road
milling circles

Hi guys,

I have a bit of trouble writing g-code to mill circles. I guess I have a bit of trouble in understanding technical English.

I read about milling helical arcs, tool offsets and starting points.... I just get lost...

I want to mill a bunch of circles in two sizes, 6.1 mm and 30 mm (just 1) that untill now I've been drilling in a jig. I want to put the coordinates of the 6.1 mm in a list and use a subroutine to work each hole. Then do the 30 mm last.

I want to mill a 6.1 mm diameter hole with the centre at x=25 y=25, to a depth of 10 mm using a 4 mm router bit.

What should I write to program this correctly?

p.s. I would like to look in to translating emc in to Dutch as I don't think it is available yet. But finding how to get started on that is just as difficult.
__________________
Sven
http://www.puresven.com/?q=building-cnc-router
Reply With Quote

  #2   Ban this user!
Old 10-15-2009, 11:34 AM
 
Join Date: Oct 2009
Location: USA
Posts: 118
leggazoid is on a distinguished road

The sub program could look like this.

%
:1234
G1 Z-10. F5.
G91 G3 X1.05 R.525
I-1.05
X-1.05 R.525
G90 G0 Z10.
M99
%

The main program could look like this.

%
:1233
T1
M6 (M6 NOT NEEDED IF NO AUTOMATIC TOOL CHANGER)
GO X25. Y25. G97 S8000 M3 M8 (G97 S8000 M3 M8 NOT NEEDED IF SPINDLE AND COOLANT NOT AUTOMATIC)
GO G43 H1 Z10.
G1 Z1. F5.
M98 P1234
G0 X50. Y50. (NEXT HOLE LOCATION)
G1 Z1. F5.
M98 P1234
G0 G28 G91 Z0
M30
%

Just check the program above the part, make sure I got my + and - directions right.

Last edited by leggazoid; 10-15-2009 at 01:23 PM. Reason: clarity
Reply With Quote

  #3   Ban this user!
Old 10-15-2009, 01:31 PM
 
Join Date: Oct 2009
Location: USA
Posts: 118
leggazoid is on a distinguished road

I normally use a macro to do this very thing...
I am not sure about EMC2 having a built in circle cutting cycle?

call macro from main program like this...

G65 P13 D2. I3.05 F8. (D=radius of cutter I=radius of hole)

%
O0013(CIRCLE MACRO)
#33=#4001
#1=#4003
#2=[#9*[#4-#7]/#4] (fancy feedrate calculation based on radius of cut)
IF[#4EQ#0]GOTO1(I)
IF[#7EQ#0]GOTO1(D)
IF[#9EQ#0]GOTO1(F)
IF[#7GE#4]GOTO99(TEST)
G91G3X[#4-#7]R[[#4-#7]/2]F#2
I-[#4-#7]
X-[#4-#7]R[[#4-#7]/2]
G[#1]G[#33]
GOTO100
N1#3000=0(COMMAND INCOMPLETE)
N99#3000=1(MILL TOO BIG)
N100M99
%
Reply With Quote

  #4   Ban this user!
Old 10-16-2009, 12:02 PM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

Originally Posted by CaptainVee View Post
Hi guys,

I have a bit of trouble writing g-code to mill circles. I guess I have a bit of trouble in understanding technical English.
I have some c programs I use to write the G-code to do these operations. One starts at the center and spirals out, finally making a circular pass at the desired diameter. This is the first program mentioned here :
http://jelinux.pico-systems.com/gcode.html

A second program makes one circular pass, dropping out the slug from the middle, then makes a finish pass for the desired diameter. That is the next to last one, called "make ring". Both of these programs can do the entire hole or pocket in one pass, or step down in Z depth as needed. The finish pass is done after stepping down to the full depth.

You can download DOS executables for these programs, or the C source code that should compile on either Microsoft or Linux c compilers.

Jon

Last edited by jmelson; 10-16-2009 at 12:03 PM. Reason: clarify
Reply With Quote

  #5   Ban this user!
Old 10-20-2009, 08:04 PM
 
Join Date: Feb 2006
Location: United States
Posts: 273
dpuch is on a distinguished road

A quick search turned this link up. Should be pretty easy to understand, and has some simple examples. Perhaps it will help.
http://www.etec.wwu.edu/faculty/McKell/nccnc_prog3.pdf
http://www.etec.wwu.edu/faculty/McKell/ if you want to see a few other similar pdf's

Note, while G-codes are pretty standard, different machines, machine modes (G90,G91 ect.) and parameter settings can change their behavior. If you run into this, check the manual for your machine. In this case EMC and make sure what your doing matches the documentation.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-29-2009, 02:23 AM
 
Join Date: Jul 2009
Location: NL
Posts: 133
CaptainVee is on a distinguished road

Thanks Guys!

This is exactly the kind of info I need. I'm a bit busy at the moment but will let you know how stuff goes!
__________________
Sven
http://www.puresven.com/?q=building-cnc-router
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crop Circles are... stevespo BobCad-Cam 67 10-22-2009 04:32 PM
Need Help!- circles arent circles xlr8r DynaTorch 3 01-18-2009 11:26 AM
Milling circles/ holddowns? m8kingit General Metal Working Machines 3 12-18-2008 08:11 AM
Polyline Circles ger21 Autodesk Software (Autocad, Inventor etc) 7 09-15-2008 10:53 AM
help with circles phe259 TurboCNC 3 12-18-2005 06:30 PM




All times are GMT -5. The time now is 05:12 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