DIY multifunction cnc

Please share your projects...
ernestoa
Posts: 16
Joined: Thu Jan 11, 2018 5:20 am

Re: DIY multifunction cnc

Post by ernestoa » Thu Apr 19, 2018 5:36 pm

As soon as I get through the machine building and tuning setup, I'll be back into the production side of things, which requires a lot less brain power. It will be a big relief to get back to doing what I'm good at!

:lol:

Ernesto2
Posts: 42
Joined: Sun May 06, 2018 7:17 am

Re: DIY multifunction cnc

Post by Ernesto2 » Sat May 26, 2018 1:12 am

I'm so close to having a running machine but so tired of beating my head against the wall!

I've been fighting gbrl to make it run in inches consistently for four straight days and it randomly throws errors 26, 32, 33, and 35, for no reason that I can see, and stops the cutting process. The code runs fine on sheetcam's simulator, and runs fine on a few online sims that I tried. The tool path looks great. It glitches out in bCNC and/or Grbl and when it does, the WCS settings default back to metric...sometimes...

This is getting extremely frustrating and making me look stupid for even trying a non commercial solution. I have a feeling that I'll have hardware up for sale soon. I am no longer excited about grbl/arduino. I need to cut metal, not waste time playing with toys and as far as I can tell, none of these programs are consistent enough to be relied upon for motion control.

It's time to take a break for a while. Trying to tie six diy open source systems together that only function 90% correctly and predictably was probably just a stupid idea.

If anyone feels like helping, here's the code that bCNC and/or grbl refuses to run. The last time it failed, it threw an error 26 on line N0130 but it fails on different arcs randomly. No idea why line N0350 looks like it does either but sheetcam keeps doing it. Never seen an error after that line though???

N0010 G20
N0020 F1
N0030 G53 G90 G40
N0040 G00 X2.5591 Y5.0231
N0050 G38.2 z-1.969 F19.685
N0060 G92 Z0.0
N0070 G00 Z0.0591
N0080 G92 Z0.0
N0090 G00 Z0.2500
N0100 M03 S1000
N0110 G04 P0.5
N0120 G01 Z0.1125 F3.937
N0130 G02 I0.0000 J0.0950 F35.0
N0140 M05
N0150 G00 Z0.3937
N0160 X2.7528 Y7.7998
N0170 Z0.2500
N0180 M03 S1000
N0190 G04 P0.5
N0200 G01 Z0.1125 F3.937
N0210 G02 X2.8384 Y7.6611 I-0.0266 J-0.1121 F65.0
N0220 X2.7751 Y7.5448 I-0.2457 J0.0582
N0230 G03 X2.2823 Y6.3362 I1.2833 J-1.2281
N0240 G02 X2.0298 Y6.0861 I-0.2526 J0.0026
N0250 G01 X1.4961
N0260 G02 X1.2436 Y6.3386 I0.0000 J0.2525
N0270 G01 Y9.1566
N0280 G02 X1.3008 Y9.2437 I0.0950 J0.0000
N0290 G01 X2.1581 Y9.6152
N0300 G02 X2.2576 Y9.6002 I0.0378 J-0.0871
N0310 G01 X2.9042 Y9.0459
N0320 G02 X2.9373 Y8.9784 I-0.0618 J-0.0721
N0330 G01 X2.9374 Y8.9763
N0340 G02 X2.8384 Y7.6611 I-4.1920 J-0.3455
N0350 G01
N0360 M05
N0370 G38.2 z-1.969 F19.685
N0380 G92 Z0.0
N0390 G00 Z0.0591
N0400 G92 Z0.0
N0410 G00 Z0.3937
N0420 X1.3632 Y10.3907
N0430 Z0.2500
N0440 M03
N0450 G04 P0.5
N0460 G01 Z0.1125 F3.937
N0470 G02 X1.3033 Y10.2392 I-0.1057 J-0.0458 F65.0
N0480 G01 X1.2207 Y10.2034
N0490 G02 X1.2011 Y10.2087 I-0.0065 J0.0149
N0500 G03 X1.0236 Y10.2987 I-0.1775 J-0.1299
N0510 X0.9843 Y10.2848 I-0.0000 J-0.0625
N0520 G02 X0.3936 I-0.2954 J0.3653
N0530 G03 X0.3543 Y10.2987 I-0.0393 J-0.0486
N0540 X0.1344 Y10.0787 I0.0000 J-0.2200
N0550 G01 Y0.3543
N0560 G03 X0.3543 Y0.1344 I0.2200 J-0.0000
N0570 G01 X1.0236
N0580 G03 X1.2436 Y0.3543 I0.0000 J0.2200
N0590 G01 Y5.1181
N0600 G02 X1.3386 Y5.2131 I0.0950 J0.0000
N0610 G01 X2.0866
N0620 G02 X2.1816 Y5.1181 I0.0000 J-0.0950
N0630 G03 X2.8095 Y4.8357 I0.3775 J-0.0000
N0640 G01 X3.0732 Y5.0715
N0650 G03 X3.0804 Y5.0793 I-0.0417 J0.0466
N0660 G02 X3.5683 Y5.4545 I0.9970 J-0.7914
N0670 G03 Y5.5691 I-0.0250 J0.0573
N0680 G02 X3.0846 Y5.9392 I0.5092 J1.1667
N0690 X3.3331 Y7.0000 I0.7769 J0.3775
N0700 G03 X3.4379 Y7.1261 I-0.2309 J0.2986
N0710 X3.8112 Y9.3997 I-3.3367 J1.7153
N0720 X3.7369 Y9.5340 I-0.2175 J-0.0327
N0730 G01 X2.4029 Y10.6774
N0740 G03 X2.3374 Y10.6873 I-0.0407 J-0.0475
N0750 G01 X1.3033 Y10.2392
N0760 G02 X1.1862 Y10.3525 I-0.0019 J0.1152
N0770 M05
N0780 G38.2 z-1.969 F19.685
N0790 G92 Z0.0
N0800 G00 Z0.0591
N0810 G92 Z0.0
N0820 G00 Z3.0000
N0830 X2.0000 Y2.0000
N0840 Z0.3937
N0850 X0.0000 Y0.0000
N0860 M05 M30

Ernesto2
Posts: 42
Joined: Sun May 06, 2018 7:17 am

Re: DIY multifunction cnc

Post by Ernesto2 » Sat May 26, 2018 4:36 pm

It won't run the code for a square. bCNC is blinking quick flashes of the 26 and 33 alarms but ignoring them and staying in motion, then getting to direction changes and randomly stopping the program without displaying an alarm in the gui but displaying it in terminal. I'm pretty sure that the low steps/mm, and 100ipm max feed rate that I need for plasma cutting on a gear driven machine is just pushing the 328 to the limit. No idea why it won't run at lower microstepping rates either. It looks like it's time to upgrade to a mega or just wait for Grbl on ARM to come out. I'll build a little 3d printer or something someday to use the protoneer board on.

cobretti
Posts: 7
Joined: Wed Apr 25, 2018 3:14 pm

Re: DIY multifunction cnc

Post by cobretti » Mon May 28, 2018 5:36 pm

I don't have a probe(so removed the G38 lines) and this is on my laser but you have one G command that does not specify any XYZ co-ordinate causing the error 26. Once the below line is removed the G-CODE runs fine on bCNC and Laserweb

N0130 G02 I0.0000 J0.0950 F35.0

Edit: noted you mentioned that line already but on my setup it was the one causing bCNC not to want to complete the codecorrectly. As soon as I removed it, it worked.

hope that helps

Ernesto2
Posts: 42
Joined: Sun May 06, 2018 7:17 am

Re: DIY multifunction cnc

Post by Ernesto2 » Mon May 28, 2018 6:29 pm

Maybe the reason that it was running ok in simulations was that there was no tool offset/kerf width set in the sims and the radius of that hole at N0130 is less than the kerf? Now that you mention it, I remember either a grbl or sheetcam setting to correct for this.

That doesn't explain the random stops at the transitions between the other motions but a step in the right direction is a step in the right direction.

Thanks for the input. :)

Ernesto2
Posts: 42
Joined: Sun May 06, 2018 7:17 am

Re: DIY multifunction cnc

Post by Ernesto2 » Mon May 28, 2018 6:38 pm

It just occurred to me that line N0130 would be trying to get it's arc start location from the last XY coordinate all the way back at line N0040! G02/03 uses the last XY coordinate as the arc start location and the ref cycle is probably interrupting that.

I modded the sheetcam post myself to include the G38.2's and M08/9 to control my THC but edited the M08/9's out before posting because it was unlikely they'd apply to anyone else's machine. I can fix the code manually now, easily, just by adding a copy of N0040 as N0125. The touch offs between my XY location stops and the start or arc motions are probably what's confusing things. It's just strange that it's only a problem randomly.

I'll fix the code after lunch and post results.

Ernesto2
Posts: 42
Joined: Sun May 06, 2018 7:17 am

Re: DIY multifunction cnc

Post by Ernesto2 » Mon May 28, 2018 7:17 pm

I couldn't wait. I edited the code. The arcs look chunky but that's something in sheetcam. It runs though! Probing, limits, homing, torch control, thc, all works! I ran through five cycles and it blinked two errors for a split second during the probe cycles but didn't stop the program or report them in terminal. Hopefully, I can hook it up to the plasma table at my friend's place tomorrow.

cobretti
Posts: 7
Joined: Wed Apr 25, 2018 3:14 pm

Re: DIY multifunction cnc

Post by cobretti » Tue May 29, 2018 6:32 pm

Awesome and good luck - I have a plasma CNC build sitting in my garage that I have not touched in 4 years (sadly) - used Mach3 and Sheetcam with a gecko g540 on it. Too many hobbies and too little time but maybe I should look at turning that in a multifunction.

Ernesto2
Posts: 42
Joined: Sun May 06, 2018 7:17 am

Re: DIY multifunction cnc

Post by Ernesto2 » Wed May 30, 2018 3:06 am

I got the controller installed on a friend's plasma table tonight and it's cutting metal! The chunky display in bCNC is just a display error. The arcs cut fine. Not that I have the plasma going, I can cut the parts for my welding table, cut the gussets and motor mounts for my machine, and finish the thing.

Some plasma tables aren't built very stout so converting them to do routing/milling can be tricky, or impossible. I'm building mine to be as rigid as possible so it can mill metal. I figured that if it can do that, all of the other processes are even easier on the machine.

Thank you again for taking the time to post up! I really needed a little community support at the time. :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest