585,589 active members*
3,210 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Posts
    123

    Rotary G-Code check..!

    Hi All.
    This is one of my first attempts at NC from scratch...

    I have used Edgecam for a lot of my 3 axis very successfully
    but a reliable 4th axis post still alludes me so.....

    I need to machine this (see attached screenshots)

    I have written the NC code for HURCO's BASIC NC (as I dont have ISNC option available to me)
    (see attached txt file)

    It cuts the part in increments of 1mm cuts (with the tool Z zero being at A axis center zero.)

    NOTE: My A axis is mounted on the LEFT of my machine table for this particular part...

    PLEASE could someone look at the code and give me some guidence and help regarding where I have gone wrong and possibly where and how I could improve it and maybe shorten it??

    Many thanks for any help you can give me people. :-) :-)
    Attached Thumbnails Attached Thumbnails beyonet.jpg   bayonet 2.jpg  
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    You could shorten the program by using a main/sub program. I'm not a Hurco programmer so don't assume this is "gospel".

    MAIN PROGRAM:

    N10G90 G40
    N20T1
    N30S1200 M3
    N40G0 X10.0 Y0.0 A0.0 M8
    N50Z38.0
    N60M98 P190050 (CALL SUB 50 19 TIMES)
    N70G0 Z38.0
    N80M05
    N90M25
    N100M02

    SUBPROGRAM:

    N10G91
    N20G0 Z-1.0 (INCREMENT Z-1MM)
    N30G90
    N40G1 X-34 F250
    N50A-90.0 Y-4.0
    N60X-18.0
    N70G3 X-18.0 Y4.0 I-18.0 J0.0
    N80G1 X-39.0
    N90G3 X-44.0 Y0.0 I-39.0 J0.0
    N100G1 A0.0
    N110G3 X-39.0 Y-4.0 I-39.0 J 0.0
    N120G1 X10.0
    N130G0 Y4.0
    N140M99

  3. #3
    Join Date
    Apr 2008
    Posts
    123
    Cheers dcoupar, not totally sure how that works on hurco's basic nc but will try. Thanks.

    ALSO I cant seem to get the A and Y to move together, keeps saying 'syntax error in wrong mode'
    any ideas people??

    N10G90 G40
    N20T3
    N30S850 M3
    N40G0 X10.0 Y0.0 A0.0 M8
    N50G0 Z38.0
    N60G1 Z37.0 F250
    N70G1 Y4.0
    N80G1 X-34.0
    N90G1 A-90.0 Y-4.0 F250

Similar Threads

  1. EMC2 G-Code Rotary Radius Offset
    By metaprax in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 09-17-2009, 10:27 PM
  2. code rotary manually
    By daisydog in forum Mastercam
    Replies: 3
    Last Post: 01-19-2008, 09:20 PM
  3. rotary code at tool change
    By brandou10l in forum Post Processors for MC
    Replies: 2
    Last Post: 01-05-2008, 01:33 PM
  4. Replies: 3
    Last Post: 01-19-2007, 02:59 PM
  5. Undercut Check not perform in g-code
    By Wiseco in forum FeatureCAM CAD/CAM
    Replies: 5
    Last Post: 11-22-2005, 11:32 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
  •