1
G-Code, CAD, and CAM discussions / Re: Trispokedovetiles: CNC code to cut tiles
« on: July 06, 2017, 07:25:34 PM »
OK. Keep me posted.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Anyway that "Trispokedovetiles: CNC code to cut tiles" webpage has got an option to generate CNC code for router cutting for any size of router bit,Correction. You must input the size of the HEXAGON in mm and all other dimensions such as tool path diameter as a percentage of the HEXAGON size.though you must input the dimensions in mm.
I'm having some trouble with the cut. I'm using 3mm plywood from the hobby shop. It must have hard spots or knots on the inside layer. I've broken 3 bits. I'll have to go back to the store and get some thin basswood.
I'm trying to cut these with a .0312" router bit and am having trouble with the fit up. The pieces are loose an not fitting tight. I've tried to offset the cut and it's worse. I guess I don't quite understand the way offsets work. I also have some new 1mm bits I could try out. I guess they are about .0394".
I did try to go to this fellows website but I think it's been hacked. He had a tutorial for routing the parts. All I got was a phishing scam.Sorry about the dead-links.
Hi Peter,Ah progress!
Excellent work sir, your generated Gcode works just fine without any editing at all.
Tweakie.
G21
G91.1
F600
G00 X88.82 Y317.50
M11P1
G03 X76.17 Y317.50 I-6.33 J0.00
G03 X88.82 Y317.50 I6.33 J0.00
M10P1
G00 X101.13 Y345.00
M11P1
G03 X95.63 Y345.00 I-2.75 J0.00
G03 X101.13 Y345.00 I2.75 J0.00
M10P1
G00 X101.13 Y290.00
M11P1
G03 X95.63 Y290.00 I-2.75 J0.00
G03 X101.13 Y290.00 I2.75 J0.00
M10P1
G00 X53.50 Y317.50
M11P1
G03 X48.00 Y317.50 I-2.75 J0.00
G03 X53.50 Y317.50 I2.75 J0.00
M10P1
G00 X34.87 Y345.00
M11P1
G01 X34.87 Y338.56
G03 X39.58 Y334.17 I4.40 J0.00
G03 X89.52 Y363.00 I-4.71 J65.83
G03 X88.08 Y369.28 I-3.64 J2.47
G01 X82.50 Y372.50
G01 X82.50 Y378.94
G02 X87.21 Y383.33 I4.40 J0.00
G02 X137.15 Y354.50 I-4.71 J-65.83
G02 X135.71 Y348.22 I-3.64 J-2.47
G01 X130.13 Y345.00
G01 X124.55 Y348.22
G03 X118.39 Y346.33 I-2.20 J-3.81
G03 X118.39 Y288.67 I59.37 J-28.83
G03 X124.55 Y286.78 I3.96 J1.92
G01 X130.13 Y290.00
G01 X135.71 Y286.78
G02 X137.15 Y280.50 I-2.20 J-3.81
G02 X87.21 Y251.67 I-54.65 J37.00
G02 X82.50 Y256.06 I-0.31 J4.39
G01 X82.50 Y262.50
G01 X88.08 Y265.72
G03 X89.52 Y272.00 I-2.20 J3.81
G03 X39.58 Y300.83 I-54.65 J-37.00
G03 X34.87 Y296.44 I-0.31 J-4.39
G01 X34.87 Y290.00
G01 X29.29 Y286.78
G02 X23.13 Y288.67 I-2.20 J3.81
G02 X23.13 Y346.33 I59.37 J28.83
G02 X29.29 Y348.22 I3.96 J-1.92
G01 X34.87 Y345.00
M10P1
G00 X0.00 Y400.00
M30
%
M23 deleted (laser off must be followed by an axis movement).
G00 replaced with G00 M10P1 (turns laser off prior to rapid moves).
Hi Peter,I've added another line of inputs at the foot of my webpage to allow for those changes to be made (please see post#17 for links).
Your change to the M23 position in the generated code is good and makes the editing easier - the M10P1/M11P1 commands I use are specific to Mach3 ( http://hobbycncart.com/publ/cikkek/mach3_temaju_cikkek/switching_a_laser_under_mach_control/8-1-0-29 )
I had to remove an M00 (not quite sure why it is there) and add the % character to the end of file and (because I am using a laser) remove the dwell commands but the editing is quick and easy to do and your code works extremely well.
G21
G91.1
F600
G00 M10P1 X88.82 Y317.50
M11P1
G03 X76.17 Y317.50 I-6.33 J0.00
G03 X88.82 Y317.50 I6.33 J0.00
G00 M10P1 X101.13 Y345.00
M11P1
G03 X95.63 Y345.00 I-2.75 J0.00
G03 X101.13 Y345.00 I2.75 J0.00
G00 M10P1 X101.13 Y290.00
M11P1
G03 X95.63 Y290.00 I-2.75 J0.00
G03 X101.13 Y290.00 I2.75 J0.00
G00 M10P1 X53.50 Y317.50
M11P1
G03 X48.00 Y317.50 I-2.75 J0.00
G03 X53.50 Y317.50 I2.75 J0.00
G00 M10P1 X34.87 Y345.00
M11P1
G01 X34.87 Y338.56
G03 X39.58 Y334.17 I4.40 J0.00
G03 X89.52 Y363.00 I-4.71 J65.83
G03 X88.08 Y369.28 I-3.64 J2.47
G01 X82.50 Y372.50
G01 X82.50 Y378.94
G02 X87.21 Y383.33 I4.40 J0.00
G02 X137.15 Y354.50 I-4.71 J-65.83
G02 X135.71 Y348.22 I-3.64 J-2.47
G01 X130.13 Y345.00
G01 X124.55 Y348.22
G03 X118.39 Y346.33 I-2.20 J-3.81
G03 X118.39 Y288.67 I59.37 J-28.83
G03 X124.55 Y286.78 I3.96 J1.92
G01 X130.13 Y290.00
G01 X135.71 Y286.78
G02 X137.15 Y280.50 I-2.20 J-3.81
G02 X87.21 Y251.67 I-54.65 J37.00
G02 X82.50 Y256.06 I-0.31 J4.39
G01 X82.50 Y262.50
G01 X88.08 Y265.72
G03 X89.52 Y272.00 I-2.20 J3.81
G03 X39.58 Y300.83 I-54.65 J-37.00
G03 X34.87 Y296.44 I-0.31 J-4.39
G01 X34.87 Y290.00
G01 X29.29 Y286.78
G02 X23.13 Y288.67 I-2.20 J3.81
G02 X23.13 Y346.33 I59.37 J28.83
G02 X29.29 Y348.22 I3.96 J-1.92
G01 X34.87 Y345.00
G00 M10P1 X0.00 Y400.00
M30
%
Mach3 will run just fine on your 64 bit machine it is just the parallel port drivers which don’t work.Well Mach3 draws the toolpath OK when I load up the gcode file but beyond that, without a CNC machine to test the gcode on, "running fine" and not "running fine" are hard for me to tell apart.
You are welcome to use my posted pictures (if I had known, I would have used a clean piece of stock).Oh I love your Christmas trispokedovetiles jigsaw puzzle.
Hi Peter,Hi Tweakie. Nice to meet you and your interest is most welcome.
Thank you for posting the link your free online CAD/CAM software which looks most interesting.
Definitely changes are needed to offer full compatibility with Mach controllers but your helpful reply has sparked off some interest in me in developing such a compatibility.
I think there are perhaps one or two changes which may need to be made to make it more Mach3 / Mach4 friendly and I will post more details once I have tested the generated code on my machine.
Tweakie.
Couldn’t resist trying this before meeting friends for lunch.Friends in real life? Lucky you! Mine seem to be all on line. Otherwise I suppose I might be spending Christmas day with them instead of with my PC, wishing everyone on the internet "Happy Christmas"!
I had to make a few changes (some essential & some desirable) to the generated Gcode file to make it compatible with Mach3 Laser use and these were as follows:-I've made that change to my webpage - to the BASIC code option only - the MACRO is a whole other can of worms to fix which I will need to take time over.
M00 deleted (it cannot share the same line as another command in the same modal group (M23) and it is not really necessary).
G4 P100 deleted (a plasma start delay is not necessary for CO2 laser).I've left that in for now. Are you sure that even for thick sheets the CO2 laser doesn't ever need some dwell time to get a cut started?
G91.1 added (to ensure Incremental Arcs mode).I've put that in. Incremental IJ values for arcs seems to be the default on CNC Simulator Pro.
G21 added (to ensure operation in metric units).I've added that.
F600 added at start of file (a feed-rate must be specified for feed-rate moves).I've not done that yet on the webpage. It is easy enough to add manually meanwhile. Since feed-rate could be different for different jobs, it probably warrants an input option for feed-rate on my webpage.
M22 replaced with M11P1 (laser on).Not done any of those yet. I was happy enough for this initial reply to you just to get the toolpath displaying correctly when I load up the gcode, see attached image.
M23 deleted (laser off must be followed by an axis movement).
G00 replaced with G00 M10P1 (turns laser off prior to rapid moves).
% added at end of file (all files must end with a Carriage Return and a null character forces the CR).
Haven’t actually cut any yet but this was laser drawn at low power on a spoil board just to verify the code.Very nice. I'd like to post your laser drawing elsewhere as proof of concept of my webpage if that's OK?
You have indeed produced an excellent piece of software my friend.That's kind of you to say so Tweakie, especially after all the tedious editing to my code you must have had to do to allow it to draw 29 tiles. Ideally, I'd like to develop the software so that it generates code that can work without (a lot of) additional editing.
Tweakie.