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 12-09-2008, 12:06 PM
 
Join Date: Nov 2008
Location: UK
Posts: 10
seunao is on a distinguished road
G-code for a correction

Hi, I have the following g-code written down which works fine but my problem is the section that shd be a smile i can't seem to get the curve draw so i have had to use a series of lines can anyone advice with this please. The section in red is where i think the problem is

N20 G00 X35.7 Y70.4 T0.6
N30 G01 Z -0.5 F100 S2500 M03 M08
N40 G01 X35.78 Y70.4 N50 G01 X44.2 Y47.8
N60 G01 X70.0 Y46.6
N70 G01 X50.1 Y30.4
N80 G01 X56.8 Y4.9
N90 G01 X38.1 Y18.1
N100 G3 X31.8 Y17.7
N110 G01 X14.4 Y5.4
N120 G01 X21.4 Y27.7N130 G01 X18.9 Y33.6
N140 G01 X0.4 Y46.9
N150 G01 X24.3 Y47.5
N160 G01 X28.0 Y50.7
N170 G01 X35.5 Y70.3
N180 G00 Z 2 N190 G0 X22.1 Y32.9
N200 G01 Z -0.5 F100 M08

N210 G01 G3 X24.5 Y25.9 I15.64075 J0
N220 G01 X24.5 Y25.9
N230 G01 X28.0 Y22.26
N240 G01 X35.4 Y20.5
N250 G01 X40.8 Y21.9
N260 G01 X44.3 Y24.5
N270 G01 X47.0 Y28.1
N280 G01 X48.3 Y31.8
N290 G01 X48.0 Y35.2
N300 G01 X46.2 Y36.04
N310 G01 X44.8 Y35.88
N320 G01 X40.6 Y32.9
N330 G01 X36.5 Y31.3
N340 G01 X33.9 Y31.8
N350 G01 X28.3 Y34.1
N360 G01 X25.3 Y36.0
N370 G01 X23.0 Y35.4
N380 G01 X22.1 Y32.8


N390 G0 Z 2
N400 G0 X45.014153 Y41.970
N410 G01 Z -2
N415 G3 I-2.72 J0
N420 G0 Z 2
N430 G0 X30.917
N440 G01 Z -2
N450 G3 I-2.56 J0
N460 G0 Z 2

Regards
Reply With Quote

  #2   Ban this user!
Old 12-09-2008, 12:32 PM
 
Join Date: Jun 2008
Location: United States
Posts: 1,507
stevo1 is on a distinguished road

You say the code works fine but then you have a problem??? What is the problem? Is the machine alarming out? Is it not making the correct path??

The only thing that I see is remove the G1 that is before the G3 in your N210 line. G1 and G3 are the same G-code group which can not be programmed together. You should also be able to use an R instead of I and J.

Stevo
Reply With Quote

  #3   Ban this user!
Old 12-09-2008, 01:23 PM
 
Join Date: Nov 2008
Location: UK
Posts: 10
seunao is on a distinguished road

Thanks Steve,

As the code stands without line N210 it runs fine but what i am trying to archieve is 2 arcs about the same points but different radius in effect a smiling face but what i have done is to use a series of lines to create this. Could you point me in the right direction to archieve this please.

Thank you
Reply With Quote

  #4   Ban this user!
Old 12-09-2008, 01:40 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Hi seunao

Do you have a DXF file it would be easier to check
__________________
Mactec54
Reply With Quote

  #5   Ban this user!
Old 12-09-2008, 04:38 PM
 
Join Date: Nov 2008
Location: UK
Posts: 10
seunao is on a distinguished road

Hi,

I have attached the DXF to this file. I have tried to generate the code using a g-code generator but wasn't very successful, so if u could point me in the right direction I would be most greatful.

Thank you

Originally Posted by mactec54 View Post
Hi seunao

Do you have a DXF file it would be easier to check
Attached Files
File Type: dxf Star1.dxf‎ (22.0 KB, 36 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-09-2008, 06:29 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Hi seunao

Opened the Dxf file it seem to be a clean file the next thing I need is what are you using for a cutting tool & are you cutting right through the part for the eyes mouth & right around the outside
__________________
Mactec54
Reply With Quote

  #7   Ban this user!
Old 12-09-2008, 06:35 PM
 
Join Date: Nov 2008
Location: UK
Posts: 10
seunao is on a distinguished road

Hi thank you for checking this, I'm Cutting onto a wood block and not drilling right through the eyes or mouth, just need 2 cuts, one rough and and finish cut using a 6mm Mill machine

Originally Posted by mactec54 View Post
Hi seunao

Opened the Dxf file it seem to be a clean file the next thing I need is what are you using for a cutting tool & are you cutting right through the part for the eyes mouth & right around the outside
Reply With Quote

  #8   Ban this user!
Old 12-09-2008, 06:52 PM
 
Join Date: Oct 2008
Location: USA
Posts: 10
Alf0412 is on a distinguished road

Assuming center of star X0,Y0, cutting mouth only with no compensation (best approximation):

G00 X-5.695 Y-11.2813
G01 Z-.5 F100.
G03 X10.2289 Y-11.4497 R28.2452
X18.7738 Y-6.6219 R31.8564
G02 X22.1672 Y-4.2794 R31.6126
X26.1031 Y-5.2214 R2.8939
X27.8373 Y-11.4248 R10.1605
X2.3171 Y-35.3956 R27.1592
X-24.787 Y-12.5812 R28.5656
X-23.1355 Y-5.0471 R9.5
X-19.3359 Y-3.9715 R3.2157
X-14.8732 Y-6.4509 R21.
G03 X-5.695 Y-11.2813 R36.0081
G01 Z2.5
Reply With Quote

  #9   Ban this user!
Old 12-09-2008, 07:37 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Hi seunao

How deep do you want to go in the eyes & mouth & is all the material removed in the mouth to the depth you want or just a profile around it on the inside with the 6mm cutter
__________________
Mactec54
Reply With Quote

  #10   Ban this user!
Old 12-10-2008, 12:49 AM
 
Join Date: Nov 2008
Location: UK
Posts: 10
seunao is on a distinguished road

Just a Profile around it shd be good, same depth with the rest of the star. Thank you thank you
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-10-2008, 07:00 AM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

Hi seunao

Is this what you want
Attached Thumbnails
Click image for larger version

Name:	Star-2 166.jpg‎
Views:	39
Size:	47.8 KB
ID:	71278  
__________________
Mactec54
Reply With Quote

  #12   Ban this user!
Old 12-10-2008, 07:14 AM
 
Join Date: Nov 2008
Location: UK
Posts: 10
seunao is on a distinguished road

Yes it is
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
In-Cycle tool offset Correction wazzoo General CNC (Mill and Lathe) Control Software (NC) 8 12-05-2008 01:56 PM
Incompatibility of Power Factor Correction Capacitors with AC PWM Drives kreutz General Electronics Discussion 0 06-04-2008 09:56 AM
Taper correction help OKThumper General CNC (Mill and Lathe) Control Software (NC) 1 11-26-2007 06:32 PM
NOTES ON BACKLASH CORRECTION IN Mach3 1.90.004 chris59 Machines running Mach Software 5 05-09-2007 12:00 PM
looking for g code 3d from bobcadcam or simmilar for indexer lpt v5 with g code soft troyswood Ability Systems - LPT Indexer and G-Code 2 12-24-2006 09:21 PM




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