Hello Guest it is October 17, 2019, 02:46:43 PM

### Author Topic: Cirkles in Mach 3 Problem  (Read 1803 times)

0 Members and 1 Guest are viewing this topic.

#### archerknives

• 7
##### Cirkles in Mach 3 Problem
« on: November 19, 2017, 10:55:20 AM »
Hello
im new here (and with programming G code). We learned G code in school about 9 year ago now i have a small cnc mill and start experimenting.

Today i wanted to mill  a round portion into a square piece of material.  G code look like that:
G17 G90 F200;
G01 x-14 y-20;
G01 Z-16;
G01 Y0;
G02 X-14 Y0 I14 J0;
G01 x-13.5;
G02 X-13.5 Y0 I13.5 J0;
G01 x-13;
G02 X-13 Y0 I13 J0;
G01 x-12.5;
G02 X-12.5 Y0 I12.5 J0;
G01 x-12;
G02 X-12 Y0 I12 J0;
G01 x-11.5;
G02 X-11.5 Y0 I11.5 J0;
G01 x-11;
G02 X-11 Y0 I11 J0;
G01 x-10.5;
G02 X-10.5 Y0 I10.5 J0;
G01 x-10;
G02 X-10 Y0 I10 J0;
G01 x-9.5;
G02 X-9.5 Y0 I9.5 J0;
G01 x-9.1;
G02 X-9.1 Y0 I9.1 J0;

I tried this G code on several simulator and it looked good.
My Mach 3 somehow made an egg out of the circles.
https://ibb.co/iEG2A6

Sadly im not very experienced in Mach 3.
Could you guys please help me? Whats wrong? Settings, G code?

Daniel

#### Tweakie.CNC

• 7,951
• Super Kitty
##### Re: Cirkles in Mach 3 Problem
« Reply #1 on: November 19, 2017, 11:08:20 AM »
Hi Daniel,

In Config. / General Config. change the IJ Mode then regenerate the toolpath.

To avoid this problem all Gcode containing arcs should include the G90.1 or G91.1 as appropriate.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

#### Tweakie.CNC

• 7,951
• Super Kitty
##### Re: Cirkles in Mach 3 Problem
« Reply #2 on: November 19, 2017, 11:23:04 AM »
Hi Daniel,

You also need to check your Z axis dimensions and it's placing in the code.
It Is usual to have Z zero as the top surface of the work and your initial cut of X-16 is perhaps a bit steep.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

#### archerknives

• 7
##### Re: Cirkles in Mach 3 Problem
« Reply #3 on: November 19, 2017, 11:27:28 AM »
Thanks for the reply. I look into the config and it was set to absolute. G code was also programmed in absolute if im not wrong..
When i changed to incremental the cirkles were round.

Sorry for my ignorance, but shouldnt it work with Absolute also?

Beste regards

Edit.

my zero is on top of workpiece center of cirkle.
i go to x-9 y-20 to clear workpiece and go down in z then go to the startpoint of the cirkle...
hope this makes sense

« Last Edit: November 19, 2017, 11:30:07 AM by archerknives »

#### archerknives

• 7
##### Re: Cirkles in Mach 3 Problem
« Reply #4 on: November 19, 2017, 12:31:20 PM »
ok i tried to programm it as "incremental"
in the simulator it seems fine..

Mach 3 doesnt like it at all...

Tried to change the settings from IJ to avsolut and back to incremental... didnt fix my problem

Sorry if that might be a dumb question. in just learning
Any ideas?

#### ger21

• 6,288
##### Re: Cirkles in Mach 3 Problem
« Reply #5 on: November 19, 2017, 01:28:27 PM »
Quote
G code was also programmed in absolute if im not wrong..
Two different things.

There's Absolute G90 - Incremental G91.

But the problem is the IJ mode, which has it's own Absolute and Incremental modes, which are G90.1 (absolute IJ) and G91 (Incremental IJ).

The most common method, which most CAM programs use, is to program in Absolute (G90), with Incremental IJ (G91.1).

Be sure not to put both G90 and G91.1 on the same line in your g-code, or it may not work correctly.

G90 G91.1 (Don't do this.)

Proper method below:

G90
G91.1
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

#### archerknives

• 7
##### Re: Cirkles in Mach 3 Problem
« Reply #6 on: November 19, 2017, 04:13:16 PM »
like i said noob at work
I didnt know that.

After putting both in different lines everything worked perfect!
Just finished maschining.

Thanks alot!!!

#### archerknives

• 7
##### Re: Cirkles in Mach 3 Problem
« Reply #7 on: November 20, 2017, 04:03:44 AM »
ok now i maschined a part to try out the code and it worked.
But the part turned out to be not very round at all.

heres a video of the milling of a test piece.
https://youtu.be/wrK5LY8areU

Question is why.
I have backlash compensation on and measured it with a dail gauge. the backlash is compensated very well...
also tried to run slower because the motors might have trouble slowing down, speeding up. but didnt change.
Any idea? Is there a setting n Mach3 to eliminate this?
sorry for my dumb questions. total new here. try to learn...

Dan
« Last Edit: November 20, 2017, 04:14:27 AM by archerknives »

#### Tweakie.CNC

• 7,951
• Super Kitty
##### Re: Cirkles in Mach 3 Problem
« Reply #8 on: November 20, 2017, 04:31:19 AM »
It could be flex in the material but I suspect backlash in the machine. Backlash comp. is OK but it is not the answer to all situations (toolpaths). Perhaps look toward reducing the actual backlash in the machine ?

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

#### archerknives

• 7
##### Re: Cirkles in Mach 3 Problem
« Reply #9 on: November 20, 2017, 04:40:33 AM »
im pretty sure it is not flex in that case. this material is very good /easy to maschine.

But i have quite a bit of backlash in the spindels (trapezoidal spindels) no ballscrews. as i also want to be able to mill manually ill keep the spindles.
I'll try to minimize the backlash by workung on the nuts tough...

thanks!