![]() | |
| 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
| |||
| |||
When I program our vertical mill to mill a 2" x 2" block with rounded corners I use one main program which calls 2 subprograms. 1 subprogram is for the rough-mill and the 2nd subprogram is for the finish-mill. Note that both subprograms are practically identical with the exception of a smaller compensation for the finish end-mill. In an effort to simplify, i tried programming the G41 command within the main program so that I can use 1 subprogram for both the rough and finish end-mills. However, when i do so, the endmill doesn't travel where programmed for the first couple G1 and G2 commands, however it eventually follows the correct path. Question, why doesn't the end-mill follow the correct path for the first couple movements? Thank you in advance. |
|
#4
| |||
| |||
So to machine the block with the Rough Mill with G41 in the main program, the main program looks like this (keep in mind this is a 2" x 2" piece with 1/2" Radii corners. 01111 G0 G40 G49 G80 G90 G92 X5.0 Y5.0 X-0.5 Y1.0 T1 M6 S3000 M3 G43 Z-1.0 H1 G1 G41 Y0.0 H17 F15.0 M98 P30001 G40 Y1.0 G92 X -6.5 G1 X-0.5 G1 G41 Y0.0 H18 F15.0 M98 P30001 G40 Y1.0 G92 X-6.5 M5 G0 G28 G49 Z0 H0 G28 G49 G91 X0 Y0 G90 M30 and the subprogram looks like this: O0001 X-0.5 Y0.0 Z-0.5 G2 X0.0 Y-0.5 R0.5 F10.0 G1 Y-1.5 G2 X-0.5 Y-2.0 R0.5 G1 X-1.5 G2 X-2 Y-1.5 R0.5 G1 Y-0.5 G2 X-1.5 Y0 R0.5 G1 X-0.5 Y1.0 G92 G0 X2.5 M99 |
|
#5
| |||
| |||
|
Change this so that you have both an X and a Y move and have the end of the move a short distance away from the first corner. You will also have to change some moves ahead of this command.
__________________ An open mind is a virtue...so long as all the common sense has not leaked out. |
| Sponsored Links |
![]() |
| 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 |
| tl-2 program integrity error and program data error alarm #'s 212 250 need help | CNChelp | Haas Mills | 12 | 03-14-2010 08:19 PM |
| Mazatrol Program into a G Code Program | fuzzman | Mazak, Mitsubishi, Mazatrol | 14 | 02-08-2010 03:55 PM |
| Program Restart in mid program? | Donkey Hotey | Haas Lathes | 16 | 03-18-2008 02:19 PM |
| Looking For a Old Program | automizer | General CAM Discussion | 3 | 01-11-2006 06:53 PM |
| Anyone got any basic examples of a program using a subroutine/program? | Darc | CamSoft Products | 11 | 10-08-2005 11:45 PM |