what I’m trying to accomplish here. I’ve retrofitted a Avid control box to an old burntables cnc 2’X4’ table. The next upgrade is to fit a better quality Z axis unit to the table. To that end I’m trying to fabricate an adaptor plate that has 4 holes that the Avid torch holder will bolt to and 4 hole that attach that assembly to the Z axis. In cutting small holes, it’s more accurate to mark or “center punch” all the holes and then to cut out the contour with the plasma torch. With that done, I can accurately drill the holes on my drill press.
This the you tube vid that I was following to attempt to accomplish that.
The problem I’m having is that the Avid Mach 4 post processer doesn’t recognize the drill operation and it’s not in the g code that is generated for Mach. I’m wondering if anyone has a workaround for just marking the holes I want to drill, stopping the operation to turn up the plasma power and then cutting the profile. Thanks in advance.
If I am understanding this request correctly, it is similar to something that I do. One in a while when I need to put in a hold with precision sides in thicker material, I use the plasma cutter to ‘pierce’ the material and then come back later, place the center of an annular cutter from the mag drill into that pierce hole and then cut the hole with the mag drill. The only thing the pierce hole does is locate the mag drill / annular cutter.
If that is what you are looking for, let me know. I’ve got a small bit of Python code that takes in a G-Code snippet with a series of X-Y locations in it representing the holes that one wants to pierce / plasma drill and puts out modified G-Code to make this happen on the AVID CNC. That is something I could share, but from the description, I can’t tell if that is exactly what you are looking for?
Kenneth,
That sounds interesting. I’m just looking to accurately locate the holes and if this code snippet will do the trick, it’s worth a try. I did get a suggestion from Leire at Avid, about using a different post processor to generate the drilling center punch commands and then insert them after the Avid header. I thought I’d give that a try first, but if you’re willing to pass along your technique, I’d be happy to try and see if I could get it to work for me. Thank you for responding, and I’ll wait your reply.
Andy
Basically, the program will take an input G-Code file that has only the drill points in it, see below: (Mainly it is just looking for the move to X-Y location commands) The following is an example of what it expects for input.
It is going to ignore a lot of the starting pieces and really only look at the G-Code… It dumps out an intermediate file (shown below) that shows what it is / is-not going to interact with…
And then lastly it will go ahead and produce a processed file that has the commands needed inserted. I use this quite a bit with a legacy CAD system that is not “plasma aware”
Give these 3x G-Code pieces a good comparison to make sure this is what is needed. The program is looking for some specifically formatted input so if the post processor being used isn’t producing an input file that is pretty close to this, then this project is just going to choke on it, or produce erronous output.
Kenneth,
First off thanks for taking the time to respond. I’m not very clear on the process of accomplishing this so as I wrote earlier, I’m going to try the approach that Leire laid out first and see what results come of that. If that doesn’t work, I may come back and ask for some more clarity. Hope you’re having a good weekend and thanks again.
Andy
Basically, the program will take an input G-Code file that has only the drill points in it, see below: (Mainly it is just looking for the move to X-Y location commands) The following is an example of what it expects for input.
It is going to ignore a lot of the starting pieces and really only look at the G-Code… It dumps out an intermediate file (shown below) that shows what it is / is-not going to interact with…
And then lastly it will go ahead and produce a processed file that has the commands needed inserted. I use this quite a bit with a legacy CAD system that is not “plasma aware”
Give these 3x G-Code pieces a good comparison to make sure this is what is needed. The program is looking for some specifically formatted input so if the post processor being used isn’t producing an input file that is pretty close to this, then this project is just going to choke on it, or produce erronous output.
So the suggested insertion of "center punch " G code didn’t work. I did the editing in word pad that produced a “rich text”. When I tried loading that code, it added 3 lines ahead of the Avid header and Mach didn’t recognize it. I used the bing AI to see if I could learn why. I came across a post on a cnc forum that said that it wouldn’t recognize the "rich text " and said that it had to be converted to just txt. I tried that. That didn’t work. Another post suggested that I replace the txt to tap. Tried that, didn’t work. Any ideas?
The G-Code I have always worked with has always been just plain old ascii text files. Typically sved with a *.nc file extension. (Older systems I used had *.ngc files as well) but that was only the extension. With Mach-3 I used *.nc file extensions and it all works fine. I’m using Mach-3, not Mach-4, so I am unaware of any special processing / setup lines Mach-4 might need. My best guess would be that it doesn’t need anything special. Probably just come canned generic G-Code to tell it to start out in absolute corrdinates, Select Imperial/Metric, select a work corrdinate system and work offset, set a tool / tool-height and you’d be off to the races, but that’s only my guess…
Sy,
This year has been a bit crazy. I’m retired and did some traveling in the spring and when I returned in mid May, I’ve been rehabing 2 rental properties and haven’t had time to devote to the project. I’m hoping to be done with this rehabing thing in mid Nov and will probably return to fitting the spindle to my old burntables machine. I’d be very curious to know if you do make some progress on this. When I contacted Avid, they said they didn’t support that and didn’t seem very interested in working on it. At any rate, when I get back to working on my machine, I’ll revisit this, Maybe I’ll email you then to see where you are, if that’s ok.
Andy
Hey andy, I got it working. I used the standard Mach4 plasma post processor in sheetcam with some of the avid lines from their post processor. Below is the result, after the % is the original code generated by the mach4 plasma post. I did a few tests with this, at 10 amps i get a really nice pilot pierce, but a few times mach4 stalls after the pierce and doesnt retract. Not sure why.
Sy,
Thank you for taking the time to email me this code. I’m glad you’re making progress with this and it would be nice if Avid actually incorporated this into their post processors. Good luck in your projects and thanks again for sharing this.
Andy
Hey andy, I got it working. I used the standard Mach4 plasma post processor in sheetcam with some of the avid lines from their post processor. Below is the result, after the % is the original code generated by the mach4 plasma post. I did a few tests with this, at 10 amps i get a really nice pilot pierce, but a few times mach4 stalls after the pierce and doesnt retract. Not sure why.