585,743 active members*
5,161 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 31
  1. #1
    Join Date
    Aug 2006
    Posts
    119

    Gcode its driving me crAZY

    Hi Guys um using mastercam x with Mach3 everything is good except i get these strange lead in my Gcode can anyone help thanks in advance
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2006
    Posts
    119

    looks like im being avoided

    How come i post threads and i get no reply

  3. #3
    Join Date
    Sep 2004
    Posts
    145
    What do you not like about the G code?
    I do see that the Z commands are all z0
    I don't know MCX very well, but I'll try to help.
    Insanity "doing the same thing and expecting a different result"
    Mark

    www.mcoates.com

  4. #4
    Join Date
    Mar 2005
    Posts
    1498
    070814-2131 EST USA

    frankg521:

    Your code does not look good. Going to Z0 first, then a rapid in the X-Y plane looks dangerous.

    There should be considerable initialization before your first line of code. Mastercam post is a problem or you have not supplied Mastercam enough information.I would expect a % at the beginning followed by an O-number, and at the end M30 and the ending %.

    .

  5. #5
    Join Date
    Apr 2005
    Posts
    3634
    I didn't see anything other than an extra "G00"?

    Whats strange about the lead in?



    G00

    G00

    Z0.0

    X8.4372y7.7675

    G01

    Z0.0 F10.0

    X7.9444y8.7114
    X6.9756y9.647
    X6.015y10.1065
    X4.1105y10.0733
    X3.1666y9.5805
    X2.231y8.6117
    X1.7715y7.6511
    X1.3203y6.2145
    X1.3619y3.8339
    X1.8629y2.4138
    X2.3557y1.4699
    X3.3245y0.5343
    X4.2851y0.0748
    X6.1895y0.108
    X7.1335y0.6008
    X8.0691y1.5696
    X8.5286y2.5302
    X8.5036y3.9585

    G00

    Z0.0

    X6.123y3.917

    G01

    Z0.0 F10.0

    X8.5036y3.9585

    G00

    Z0.0
    Attached Thumbnails Attached Thumbnails 1.jpg  

  6. #6
    Join Date
    Aug 2006
    Posts
    119

    thanks guys guys i realy need the help

    I realy do like Gcode ...switcher checkout this red line in mach see attched pic
    Attached Thumbnails Attached Thumbnails MACH LEAD IN.jpg  

  7. #7
    Join Date
    Apr 2005
    Posts
    3634
    I also posted on your other thread.

    http://www.cnczone.com/forums/showthread.php?t=41996

    Can you post the octagon file?

    .

  8. #8
    Join Date
    Aug 2006
    Posts
    119

    thanks

    yes .. i want the z to plunge were i put the gantry but it follows the red leasdin and then cuts i dont know were to put the stock
    Attached Files Attached Files

  9. #9
    Join Date
    Apr 2005
    Posts
    3634
    That looks like a bunch of extra code, what type of cnc machine are you running?

    The code shows an "A-axis", are you just running a 3-axis mill (XYZ)?

    .

  10. #10
    Join Date
    Aug 2006
    Posts
    119
    Yes it is a bunch extra code its a home built router everything works good eccept for this lead in the gantry moves diagnaly then starts cutting it must be the post like gar sead now what to do about it yes 3 axis

  11. #11
    Join Date
    Apr 2005
    Posts
    3634
    I deleted a bunch of useless code, double check tool comp. I might have got caried away.



    RUN AT YOUR OWN RISK




    %
    N1 G00 G17 G90
    N2 Z5.0
    N3 X0.0 Y0.0
    N4 X-12.4295 Y-3.5376
    N5 G01
    N6 G91
    N7 Z-0.25 F6.0
    N8 X-8.5195 Y3.2347
    N9 X-0.686
    N10 X3.2376 Y-3.5376
    N11 X-0.6724 Y-10.3256
    N12 X-8.506
    N13 X-12.4295 Y-3.5533
    N14 G90
    N15 G00
    N16 Z5.0
    N17 X0.0 Y0.0
    N18 M30
    %
    Attached Thumbnails Attached Thumbnails 1.jpg  

  12. #12
    Join Date
    Apr 2005
    Posts
    3634
    The "Z" clearance is +5

    The "Z" infeed is -0.25

    Adjust as needed.

    .

  13. #13
    Join Date
    Jul 2005
    Posts
    12177
    Quote Originally Posted by Switcher View Post
    I deleted a bunch of useless code, double check tool comp. I might have got caried away.
    Considering that an octagon is eight sided and your screen shot showed a hexagon with six sides you must have got so carried away you deleted two whole sides.
    An open mind is a virtue...so long as all the common sense has not leaked out.

  14. #14
    Join Date
    Apr 2005
    Posts
    3634
    .

  15. #15
    Join Date
    Apr 2005
    Posts
    3634
    The file is a Hexagon.

    .

  16. #16
    Join Date
    Mar 2003
    Posts
    35538
    Isn't that red line just the machine moving from where it's currently at to the first position in your code?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  17. #17
    Join Date
    Apr 2005
    Posts
    3634
    Quote Originally Posted by ger21 View Post
    Isn't that red line just the machine moving from where it's currently at to the first position in your code?
    The control (in the screenshot) shows the machine zero out (cross hair).

    I think the G92 was the problem for the starting point.


    .

  18. #18
    Join Date
    Aug 2006
    Posts
    119

    moving from

    Quote Originally Posted by ger21 View Post
    Isn't that red line just the machine moving from where it's currently at to the first position in your code?
    Hi ger21 if i run the code the machine moves from were is is to the start of the red line
    Frank

  19. #19
    Join Date
    Jul 2005
    Posts
    12177
    Quote Originally Posted by frankg521 View Post
    Hi ger21 if i run the code the machine moves from were is is to the start of the red line
    Frank
    Like Switcher comments the G92 line shifts everything. This command moves your Work Zero to X-10. Y-10. Z-10.

    I loaded this code into one of my big machines and ran the graphics simulation. It generates a hexagon, not an octagon.

    The starting point is: G0 G90 X-12.4295 Y-3.5376

    Because the G92 has set a Work Zero shift in machine coordinates this is;
    X-22.4295 Y-13.5376 Z-10.

    If you look at it like a clock face this is at the 9 position and the moves go to positions 11, 1, 3, 5 and 7 which is the end.

    Why do you have the G92 command?
    An open mind is a virtue...so long as all the common sense has not leaked out.

  20. #20
    Join Date
    Aug 2006
    Posts
    119
    Why do you have the G92 command? G92 was generated by Mastercamx how do i get rid of it

Page 1 of 2 12

Similar Threads

  1. Protel is driving me crazy
    By ez-cnc.com in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 03-30-2010, 06:54 AM
  2. Mach 3 reacting to my GCode crazy!
    By WarrenW in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 02-19-2006, 10:44 PM
  3. LPT crazy
    By Lu_ca in forum DNC Problems and Solutions
    Replies: 9
    Last Post: 04-06-2005, 12:17 AM
  4. Replies: 0
    Last Post: 03-10-2005, 07:46 PM
  5. Aligning cross table is driving me crazy. Ideas?
    By pigifly in forum Uncategorised MetalWorking Machines
    Replies: 4
    Last Post: 07-07-2004, 08:45 AM

Posting Permissions

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