588,174 active members*
4,893 visitors online*
Register for free
Login
Results 1 to 13 of 13
  1. #1
    Join Date
    Nov 2008
    Posts
    10

    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

  2. #2
    Join Date
    Jun 2008
    Posts
    1511
    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

  3. #3
    Join Date
    Nov 2008
    Posts
    10
    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

  4. #4
    Join Date
    Jan 2005
    Posts
    15362
    Hi seunao

    Do you have a DXF file it would be easier to check
    Mactec54

  5. #5
    Join Date
    Nov 2008
    Posts
    10
    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

    Quote Originally Posted by mactec54 View Post
    Hi seunao

    Do you have a DXF file it would be easier to check
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 2005
    Posts
    15362
    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

  7. #7
    Join Date
    Nov 2008
    Posts
    10
    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

    Quote 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

  8. #8
    Join Date
    Oct 2008
    Posts
    65
    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

  9. #9
    Join Date
    Jan 2005
    Posts
    15362
    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

  10. #10
    Join Date
    Nov 2008
    Posts
    10
    Just a Profile around it shd be good, same depth with the rest of the star. Thank you thank you

  11. #11
    Join Date
    Jan 2005
    Posts
    15362
    Hi seunao

    Is this what you want
    Attached Thumbnails Attached Thumbnails Star-2 166.jpg  
    Mactec54

  12. #12
    Join Date
    Nov 2008
    Posts
    10
    Yes it is

  13. #13
    Join Date
    Oct 2008
    Posts
    65
    (***** SIMPLE PROGRAM *****)
    (STARTING IN UPPER/ RIGHT CORNER)
    (USING 6 MM CUTTER)
    (CLIMB CUTTING WITH NO CUTTER COMPENSATION)
    (ROUGH PASS .75 STOCK)
    M6 T1
    ...
    G00 X24.1658 Y-7.5423
    G01 Z-.5 F100.
    G02 X-21.2382 Y-7.3389 R33.5773 (UPPER LIP)
    G03 X24.1658 Y-7.5423 R22.7497 (LOWER LIP)
    G01 Z2.5
    ...
    (FINISH PASS 0 STOCK)
    M6 T2
    ...
    G00 X24.7676 Y-5.9331
    G01 Z-.5 F100.
    G02 X-21.8256 Y-5.7244 R32.8273 (UPPER LIP)
    G03 X24.7676 Y-5.9331 R23.4997 (LOWER LIP)
    G01 Z2.5
    ...

Similar Threads

  1. In-Cycle tool offset Correction
    By wazzoo in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 8
    Last Post: 12-05-2008, 08:56 PM
  2. Incompatibility of Power Factor Correction Capacitors with AC PWM Drives
    By kreutz in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 06-04-2008, 03:56 PM
  3. Taper correction help
    By OKThumper in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 11-27-2007, 01:32 AM
  4. NOTES ON BACKLASH CORRECTION IN Mach3 1.90.004
    By chris59 in forum Machines running Mach Software
    Replies: 5
    Last Post: 05-09-2007, 06:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •