![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Mach Software (ArtSoft software) Discuss Mach 1 , 2 and the new Mach3 here NC software here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
ok i just got my first cnc mill a few months ago and i have been writing g code for it using rhino cam and so far its been working well. my problem arose the other day when i tried to use rhino to program a 4th axis path to profile a part. the problem is at the beginning of the code it sets the feed rate to 18 which is fine for the actual pass but when the part needs to index on the a axis it keeps the 18 feed rate and its KILLING my cycle time and i know their has to be a better way. so i did some research into hand writing code and found out about sub routines. this looks like exactly what i want but im having a difficult time completely understanding how to get it to do what i want it to. here is a rough code for what i have now (introductory code turning on spindle and coolant) g00 z1 m98 01 m98 02 (end program lines) o01 g1 z.5f20 (block of code to produce profile) g00 z1 g00 x0 m99 (this is where i get lost) o02 g1 a "+1" f300 (what i want to do is increment the a axis 1 degree untill a=360) m99 if anybody has any ideas on how to accomplish this please help |
![]() |
| 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 |
| Just IN- hand writing g code for circular interpolation | cedarcreek | Want To Buy...Need help! | 3 | 04-14-2010 06:38 PM |
| Help Making Sub Routines | PROTOTRAKFAN | Parametric Programing | 7 | 07-14-2008 06:09 PM |
| Sub Routines on VF3 | Rocko1 | Haas Mills | 8 | 11-10-2007 02:41 PM |
| sub routines | earl | Fanuc | 2 | 03-04-2007 02:34 AM |
| coverting from Right-hand to left-hand coordinate system | eltonr | General CAM Discussion | 6 | 10-14-2004 08:40 PM |