![]() | |
| 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
| |||
| |||
I have no idea how to write g-code. I would like a file to make keyholes. I just need something that starts at X0, Y0, Z0.2, lowers Z to Z-0.35, then moves to Y0.6, then returns to Y0, then returns Z to Z0.2. I will just put the bit where I need it and zero X and Y before running it. I will post a file that I think is close to what I need. If someone can tell me what to add, I would really appreciate it. Thanks, Jeff (BEGIN PREDATOR NC HEADER) (MACH_FILE=3AXVMILL.MCH) (MTOOL T1 S1 D.125 H2.125 DIAM_OFFSET 1 = .0625) (don't believe this will matter(wrong bit) (SBOX X0. Y0. Z-1. L0. W.5 H1.) (END PREDATOR NC HEADER) % O100 (PROGRAM NUMBER) (PROGRAM NAME - KEYHOLE UP.TAP) (POST - MACH 3 MILL NO ATC) (DATE - MON. 08/31/2009) (TIME - 07:07PM) N01 G20 G40 G49 G54 G80 G90 G91.1 N02 G53 Z0.2 N03 T1 M06 N04 S10000 M03 N05 G00 G43 H1 Z.2 M08 N06 G90 G54 X0. Y0. N07 G01 Z-.350 F20. N08 Y.5 need something added here please to return Y to 0 N09 G00 Z.2 N10 M09 N11 M05 N12 G53 Z0.2 N13 G53 Y0. N14 M02 (END OF PROGRAM) N15 M30 % |
|
#3
| ||||
| ||||
% O100 (PROGRAM NUMBER) (PROGRAM NAME - KEYHOLE UP.TAP) (POST - MACH 3 MILL NO ATC) (DATE - MON. 08/31/2009) (TIME - 07:07PM) N1 G20 G40 G49 G54 G80 G90 G91.1 N2 G53 Z0.2 N3 T1 M06 N4 S10000 M03 N5 G00 G43 H1 Z.2 M08 N6 G90 G54 X0. Y0. N7 G01 Z-.350 F20. N8 Y0.6 ( G1 is already active -so not needed ) N8 Y0. ( this is to go back to the 'descend in' point ) N9 G00 Z.2 N10 M09 N11 M05 N12 G53 Z0.2 N13 G53 Y0. N14 M30 % |
|
#4
| |||
| |||
| And just to verify, feed rates are usually modal (meaning the control will keep using it unless you give it something else). You would need to add an F on the same line as your first Y move if you want it to feed at a rate different than F20. |
|
#5
| |||
| |||
| It looks like you are using BobCAD. If you are, try this little trick. Make a copy of the line on a different Z level, I made one at Z-0.5, then connect one of the ends. Make a contour. Then use a Profiling function and select this little contour. BobCAD will completely ignore the Z level and the toolpath will reverse itself. It might not seem worth it for a single line, but if you want to reverse direction without lifting Z on a long profile without hand editing, this is the easiest way I've found. See the code output in the pic. |
| 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 |
| Need help with simple G code | Step by Step | Coding | 2 | 10-24-2008 08:49 PM |
| Simple G-Code program? | N4NV | G-Code Programing | 10 | 03-24-2006 06:35 PM |
| Need help with simple .DXF file | Idle hands | DeskCNC Controller Board | 0 | 05-29-2005 03:40 PM |
| Mill file for SS simple 5804 PCB driver | pminmo | General Electronics Discussion | 4 | 06-17-2004 07:06 AM |
| Perhaps a bug in simple one line code?? | thuffner3 | TurboCNC | 3 | 02-02-2004 08:21 PM |