![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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. :-) :-) |
|
#2
| ||||
| ||||
| 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
| |||
| |||
| 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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EMC2 G-Code Rotary Radius Offset | metaprax | General CNC (Mill and Lathe) Control Software (NC) | 0 | 09-17-2009 04:27 PM |
| code rotary manually | daisydog | Mastercam | 3 | 01-19-2008 02:20 PM |
| rotary code at tool change | brandou10l | Post Processors for MC | 2 | 01-05-2008 06:33 AM |
| Spell check it out!!! I just noticed CNCzone now has spell check! | HayTay | CNCzone Club House | 3 | 01-19-2007 07:59 AM |
| Undercut Check not perform in g-code | Wiseco | FeatureCAM CAD/CAM | 5 | 11-22-2005 04:32 PM |