Posted by Richard Parsons on 05/06/2011 08:52:26:
Does anyone know of a diagrammatic representation of the ‘G’ code instructions to act as a ‘halfway house’ between the drawing and the ‘G’ code instructions? Are there any ‘G’ code subroutine libraries in the public domain? Are there any ‘G’ code library management software available?
Dick
I think there are a lot of misconceptions out there as regards G code, many seem to think it’s another language and the lack of G Code speak will not let you use CNC which could not be further from the truth.
Let me take you thru something I do on a regular basis but although it’s regular they are never the same, so basically many one off’s which others tell us that CNC is no good for.
I do a lot of electric motor repairs for three different companies not the rewind bit, that’s their bowl of rice but repairing shafts , bearing housings ripped off splines etc. One oft repeated job is brush rings for largish DC motors, usually fork truck motors which can cost up to £7,000 to replace so they will repair them.
The brush ring comes in with all the brush boxes hanging off and what is left of the insulated ring is burnt away. Repair consists of making a new ring out of Tufnol, putting all the holes and slots in and fitting the old brush boxes back on, old way takes about two to two and a half hours.
First off make a sketch as good as possible then grab a sheet of Tufnol and band saw a circle out. Hold in chuck and trepan centre out if circular or if square with rounded corners onto the rotary table on the mill and work out arcs and straight lines.
Mill out curved slots and curved counterbores, layout hole positions and drill.
Cut outer diameter or shape to suit and then fasten brush boxes back on.
As I say for a simple one all circular and all holes could be just under two hours. Funny shaped ones with lugs and curved slots possibly up to three hours, that’s the old way.
New way is make the same sketch as before but now draw this in CAD, export as a DXF and into a simple CAM system, something like Cut2D, look to see what is the smallest hole and choose a cutter smaller than this or equal to, I tend to use cheap 3mm single flute router cutters from Silverline at £1 each, very cost effective.
Tell cut 2D to profile the holes, you don’t drill if the hole is larger than the cutter, then do the curved slots and counterbores.
Then do the inside shape but leave 4 tabs on 0.5mm thick by 3mm long to hold the inner so it doesn’t flip up and break the cutter, same on the outside.
Tell Cut2D to generate the code and save to a memory sick.
Now grab a sheet of Tufnol literally nail it to the MDF sacrificial bed on the router, guess where the centre is, touch the cutter on the top surface and zero all axis, raise the cutter and press GO
Average brush ring at 8″ diameter and 10mm thick will take about 10 minutes to cut, snap out from the tabs and clean up and reassemble the boxes as before.
From sketch to finish is now under one hour. I have not even seen the GCode at any point nor do I need to.
For these brush rings there are so many different shapes and many are very close to another that it’s easy to get mixed up so other than a couple that are regular repeats I delete the files afterwards because it’s quicker to draw a new one than cut, copy, paste, scale and make mistakes.
Years ago we had to write code or alter it but things have moved on and programs are so much better today.
Andrew Johnson in the thread “How would you make this part” spent 40 odd hours programming his bevel gear, OK a lot of that was his learning curve but using a modern program, which wasn’t out when Andrew was doing this, I ‘drew’ the gear and got all the information from the screen and the code in 10 minutes.
This when entered into the CNC told me it wanted 1 hour and 58 minutes to cut and again I had never seen the G Code.
So you can use them for one off’s and not repetition and contrary to popular belief you don’t need to know GCode.
John S.
Edited By John Stevenson on 05/06/2011 12:05:39