Results 1 to 8 of 8

Thread: How to add G41/G42 and D code to program??

  1. #1
    Registered
    Join Date
    Jul 2006
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0

    How to add G41/G42 and D code to program??

    When I make a program for a full contour around a piece, and check the box for CRC/Cutter Radius Comp, I get a G41/42 and D in the program. However, when it is just a single line instead of a closed shape, the G and D codes are not included.

    How can I make it so they do appear, like when I want to cut a single edge off of a piece?

    Thanks in advance.


  2. #2
    Registered cadman's Avatar
    Join Date
    Jun 2003
    Location
    USA
    Posts
    513
    Downloads
    0
    Uploads
    0
    It shouldn't be any different whether it's a closed or open contour. Is the rest of the code correct?


  3. #3
    Registered
    Join Date
    Jul 2006
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0
    Everything is the same as I do it any other way, but when its just a single feature cut, G41 or G42 and D are not included. If I use even that same line but include it in a whole shape, like cutting around a square, it will include those codes. But when it is just a single line, theres nothing.


  4. #4
    Registered cadman's Avatar
    Join Date
    Jun 2003
    Location
    USA
    Posts
    513
    Downloads
    0
    Uploads
    0
    Can you upload a sample program with a contour that doesn't post right? Could be a problem with your post processor. Are you using a Gibbs or Posthaste post?


  • #5
    Registered
    Join Date
    Jul 2006
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0
    O27
    N1G0G17G40G80G90G54
    N2T1M6
    N3G54G90G0X.5315Y-.9754S2500M3
    N4G43Z1.H1M8
    N5Z.1
    N6G1Z-.09F20.
    N7Y.2996
    N8G0Z.1
    N9G90G0X.565Y.2415
    N10G1Z-.09
    N11Y-.973
    N12G0Z.1
    N13G90G0X.498Y-.9609
    N14G1Z-.09
    N15Y.2827
    N16G0Z.1
    N17M9
    N18G91G28Z0.M19
    N19M1
    N20T2M6
    N21G54G90G0X.5315Y-.9754S2500M3
    N22G43Z1.H2M8
    N23Z.1
    N24G1Z-.095F20.
    N25Y.2996
    N26G0Z.1
    N27G90G0X.595Y.2415
    N28G1Z-.095
    N29Y-.973
    N30G0Z.1
    N31G90G0X.468Y-.9609
    N32G1Z-.095
    N33Y.2827
    N34G0Z.1
    N35M9
    N36G91G28Z0.M19
    N37G28Y0.
    N38G90
    N39T1M6
    N40M30
    %

    that program should have the G41 and G42 because the box is checked.

    Heres another program where I do a cut around an entire piece, and the G42 and D are included...


    N1G0G17G40G80G90G54
    N2T1M6
    N3G54G90G0X-.82Y.0362S2000M3
    N4G43Z1.H1M8
    N5Z.1
    N6G1Z-.65F20.
    N7G42X-.52F10.D1
    N8G2X-.22Y-.2638J-.3
    N9G1Y-.875
    N10G3X.05Y-1.145I.27
    N11G1X1.113
    N12G3X1.383Y-.875J.27
    N13G1Y-.25
    N14G3X1.3039Y-.0591I-.27
    N15G1X1.1789Y.0659
    N16G3X.988Y.145I-.1909J-.1909
    N17G1X.175
    N18G3X-.0159Y.0659J-.27
    N19G1X-.1409Y-.0591
    N20G3X-.22Y-.25I.1909J-.1909
    N21G1Y-.2638
    N22Y-.4638
    N23G2X-.52Y-.7638I-.3
    N24G40G1X-.82
    N25G0Z.1
    N26M9
    N27G91G28Z0.M19
    N28M1


    Switching the Post processor doesn't make any difference. They are the gibbs cam processors, we have 3 of them and none work.


  • #6
    Registered
    Join Date
    Jul 2006
    Location
    USA
    Posts
    16
    Downloads
    0
    Uploads
    0
    Finally I figured it out...

    I didnt have a number in the lead in/out box. Instead of putting any numbers for line/90* radius, i just put 0. Well, this time i tried to put in .1 and it added the D and G41/G42.

    Haha, Ive been trying to figure this out for so long and it was something so simple.

    Thanks for the help.


  • #7
    Registered cadman's Avatar
    Join Date
    Jun 2003
    Location
    USA
    Posts
    513
    Downloads
    0
    Uploads
    0
    I was going to ask if you had any lead on/off. Glad you found the problem.

    Curiously, if I enable cutter comp without any lead moves I still get G41, G40 and D in my posted code. Obviously the machines will just error when they read the line.

    Depending what version of Gibbs you have, in your machining preferences there an option to check for CRC Entry Line Validation. Check it and Gibbs will warn you if you don't have a lead on/off line.


  • #8
    Registered
    Join Date
    Apr 2008
    Location
    usa
    Posts
    13
    Downloads
    0
    Uploads
    0
    Be aware that cutter comp can only be a maximum of what your lead is.
    If you come in at .05, than that is the most cutter comp you can use in most machines. If you are working on something that may require alot of cutter comp, then make your lead bigger.




    --Life, Liberty, and the pursuit of those that threaten it...


  • Similar Threads

    1. Mazatrol Program into a G Code Program
      By fuzzman in forum Mazak, Mitsubishi, Mazatrol
      Replies: 15
      Last Post: 09-25-2012, 11:27 AM
    2. 1/4" npt need g code program
      By imwllc in forum General Metal Working Machines
      Replies: 3
      Last Post: 08-20-2011, 11:12 AM
    3. scanner 2 g-code program
      By auvecu in forum CNCzone Club House
      Replies: 2
      Last Post: 07-27-2007, 02:59 AM
    4. Simple G-Code program?
      By N4NV in forum G-Code Programing
      Replies: 10
      Last Post: 03-24-2006, 07:35 PM
    5. I need sample G code program
      By bunalmis in forum G-Code Programing
      Replies: 1
      Last Post: 08-24-2004, 04:50 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.