585,741 active members*
5,152 visitors online*
Register for free
Login

Thread: G02 and G03

Page 1 of 2 12
Results 1 to 20 of 25
  1. #1
    Join Date
    Jan 2009
    Posts
    8

    G02 and G03

    Dear

    I was testing the manufacturing abilitys in pro-e.
    This works out fine but the G02 and G03 commands give the following errors in EMC for a sherline 5410 mill:

    ...zero radius...
    ...radius at begin differs from radius at end...

    Could this have something to do with the rounded numbers? not enough number after the point?

    Hope someone has had the same problem before.

    Cheers

    Philip

  2. #2
    Join Date
    Jul 2005
    Posts
    101
    The I & J coordinates can be either absolute or incremental... check your post-processor settings... check EMC's settings.

    I don't use EMC so I can't tell you what it is looking for or if there are settings to adjust...

  3. #3
    Join Date
    Jan 2009
    Posts
    8
    The problem occurs at the very first time the G02 command is used.

    all the numbers look okay, absolute (like i need them to be)

  4. #4
    Join Date
    May 2007
    Posts
    781
    I do not think you can change the arc endpoint error setting in EMC like you can in other controls.
    Can you try bumping up the number of decimal places you CAM software puts out.
    I remember reading a while back (years) that 6 places was recomended for best results in inch mode, probably get by with 5 in mm.

  5. #5
    Join Date
    Jan 2009
    Posts
    8
    So i need to get into the postprocessor in pro-e...

    anyone know how?

  6. #6
    Join Date
    Feb 2007
    Posts
    514
    If it is the first arc only you are having a problem with then your post is not moving to the proper start position for the arc. Check your post processor.

    John

  7. #7
    Join Date
    Jan 2009
    Posts
    8
    According to the read-outs the cutter is in the right position to start the curve.

    that is why I think that it has something to do with the accuracy...

  8. #8
    Join Date
    Feb 2007
    Posts
    514
    Then the arc is defined wrong. Take a look at the Arc Buddy on this page.

    http://wiki.linuxcnc.org/cgi-bin/emc...ode_Generators

    It will generate the start position and the arc after you put in a couple of things. Then you can check your output to see what is wrong with your post processor.

    John

  9. #9
    Join Date
    Jan 2009
    Posts
    8
    i think i need ubuntu with EMC2 to do that?
    now i have the standard issue EMC debian from sherline...

  10. #10
    Join Date
    May 2005
    Posts
    1662
    Quote Originally Posted by Spunk View Post
    i think i need ubuntu with EMC2 to do that?
    now i have the standard issue EMC debian from sherline...
    Any linux distribution worth it's salt includes python.

    That wiki page has grown since I last looked ! The problem is it assumes people know what python is and how to use it. What percentage of the population might that be ?

    Do this:

    1) Right click "upload arcbuddy.py" on that wiki page.

    2) "Save link as" and save it to your home directory

    3) Open a terminal and type the commands
    Code:
     chmod  a+x  arcbuddy.py
    Code:
     ./arcbuddy.py
    if you get a "bad interpretor" error, open arcbuddy.py in a text editor and modify the top line to read
    Code:
     #!/usr/bin/python
    and rerun the ./arcbuddy.py command in the terminal.

    4} That's it. These scripts should also work in Windows with a python interpreter ? Think so anyway.

    Btw: There's a quick text editor that can be run right from the terminal.
    Code:
     nano  arcbuddy.py
    The instructions are all listed at the bottom and take the form
    Code:
    "cntrl btn"   "some letter"
    very handy and intuitive.

    Anyway, just me up much to early and rattling on. Hope that helps in someway.

    Edit/ There is a possibility another error might pop up. Depends on the python installed and what the gcode generator calls up. If another error shows up, just paste it here and someone will tell you what to install.
    Anyone who says "It only goes together one way" has no imagination.

  11. #11
    Join Date
    Jan 2009
    Posts
    8
    owkay sure going to try it

    but this is going to be a method to check, not to solve though...
    i did the math and the places are pretty accurate but perhaps not accurate enough???

    no-one knows something about pro-e postprocessors? can't be hard to tell him to print 4 or 5 digits after the point is it?

  12. #12
    Join Date
    May 2005
    Posts
    1662
    Quote Originally Posted by Spunk View Post
    no-one knows something about pro-e postprocessors? can't be hard to tell him to print 4 or 5 digits after the point is it?
    ProE has it's own forum here. You could post the question there also.

    Another option is telling ProE to use R's instaed of I's and J's. R's allow more fudge factor. I's and J's are the preferred way however.
    Anyone who says "It only goes together one way" has no imagination.

  13. #13
    Join Date
    Feb 2007
    Posts
    514
    Quote Originally Posted by cyclestart View Post
    Any linux distribution worth it's salt includes python.

    That wiki page has grown since I last looked ! The problem is it assumes people know what python is and how to use it. What percentage of the population might that be ?
    Actually the page is so big now that you must have missed the last part about how to use the python files with EMC

    Quote Originally Posted by cyclestart View Post
    Do this:

    1) Right click "upload arcbuddy.py" on that wiki page.

    2) "Save link as" and save it to your home directory
    However this part is/was missing...

    Quote Originally Posted by cyclestart View Post

    4} That's it. These scripts should also work in Windows with a python interpreter ? Think so anyway.
    Yep just change the file extension to .pyw and install Python.

    John

  14. #14
    Join Date
    Feb 2007
    Posts
    514
    Quote Originally Posted by Spunk View Post
    owkay sure going to try it

    but this is going to be a method to check, not to solve though...
    i did the math and the places are pretty accurate but perhaps not accurate enough???

    no-one knows something about pro-e postprocessors? can't be hard to tell him to print 4 or 5 digits after the point is it?
    Can you post the move to the start position and the arc move?

    John

  15. #15
    Join Date
    Mar 2008
    Posts
    267
    I too have see this problem with the G2/G3 codes.

    The problem a the time i seem to recal was that the g code was generated on bob cad imperial to 3 decimal places

    EMC2 moaned about errors and upon further reading ( somewhere in the fine manual ) it became obvious i needed another decimal place in order to apease the accuracy criterion.

    Generaly i work in metric units and my current cad/cam software outputs metric g code to 5 decimal places no problems.

  16. #16
    Join Date
    Feb 2007
    Posts
    514
    The amount of decimal places does not matter, what does is it is how close to the proper position you specify with your offsets. Now if your post rounds up to 3 places in inch then most likely you will be off enough to get the error. The confusing thing is if you add more precision your error might go away. For example the arc G3 X1.5 Y1 I-0.5 will run fine if your current location is X1.5 Y1. However if your current location is X1.5005 Y1 the arc will fail.

    If the distance from the current point to the center differs from the distance from the end point to the center by more than 0.0002 inch (if inches are being used) or 0.002 millimeter (if millimeters are being used) then you will get the error.

    http://www.linuxcnc.org/docview/html...ub:G2,-G3:-Arc

    John

  17. #17
    Join Date
    Mar 2008
    Posts
    267
    John,
    thats the refference on error spec I was thinking of.
    By increasing the number of decimal places teh data was no longer truncated ( not rounded ) and the error condition disapeared.

  18. #18
    Join Date
    Feb 2007
    Posts
    514
    The cool thing is in 2.3 you define a G2/3 360° circle with just the offset you don't need to specify the end point.

    John

  19. #19
    Join Date
    Feb 2007
    Posts
    592
    So your saying a command like:

    G3 J-1.

    Will now work as it should?

  20. #20
    Join Date
    Dec 2006
    Posts
    151
    John stated that will be added in 2.3 - meaning release 2.3 which is expected sometime this year. The current release is 2.2.8 so I reckon that has not been implemented in the current releases.

Page 1 of 2 12

Posting Permissions

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