
09-09-2010, 01:28 AM
|
| | | Join Date: Jun 2008 Location: USA
Posts: 13
| |
G-Code within Excel for holes and slots for a Plasma cutter | | Attached is a file I generated to turn my plasma cutter into a simple hole and slot cutter. If the machine is centered on the center of the hole or slot, it penetrates in the hole-center, moves to the perimeter, and cuts out the hole or slot while compensating for kerf. You still have to determine what that kerf should be, as well as the feedrate.
There are two macros in the file, so Excel will throw up a security message when you open it. You can run it without the macros if you want. The macros are simple cut-and-paste macros that copy the code to your computer's clipboard by clicking on an arrow. I find this easier when wearing gloves. You can also re-record the macros and associate the graphic arrows to them yourself [use Right-click and Associate Macro after you've recorded the cut and paste sequence]. Using the macro is just easier than trying to highlight the resultant code and copy. The basic code generation does not rely upon the macros.
I find it best to copy the result into Notepad or some simple text editor to strip off any formatting. Then copy the results (cntrl+A [select All], cntrl+C [Copy], then cntrl+V [Paste]) to your controller software.
M50 and M51 are associated with turning the plasma cutter on and off. Edit the file based on what code you are using.
The G40 and G41 are used with "D0" which identifies when the tool is being used, but with zero compensation. This makes my controller software depict when the tool turns on and off, but defaults to the radius of the tool I've specified in the controller program, and not the code I just generated with the spreadsheet.
This is pretty simple code, but it easily turns your plasma cutter into a simple drillpress and slot-cutter. I'm considering attaching a webcam to the plasma torch mount so I can center on a mark, then move it over the X,Y to precisely place the torch for a center cut start.
Constructive comments are appreciated!.
--Joe |