Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: bryson on November 12, 2009, 05:08:31 PM

Title: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 05:08:31 PM
Hi all,

My name is Bryson Korsboen and I am a mechanical engineer working for a lighting company called LSGC.  Although i am a design engineer, I have been give the great task of sealing glass onto a fixture via silicone.
We have a standard XY table.  Attached to the XY table we have a syringe that dispenses silicone though means of a pneumatic air gun.

I have written a program for the XY table to follow a simple rectangle with rounded edges to follow the profile of the fixture Using the G-code below and MACH3 software.  In each step, the motors come to complete stop before the next step.  Is there any way for the steps to have no pause in between them.  The clue dispensed is at a fixed amount and at each step the glue piles up.  

Can someone please give me example code, MACH3 settings, or hardware/software that I need to get the machine to run through the entire rectangle without momentarily stopping?  Below is the code I'm using.

O1111 (DOES 1 COMPLETE 1 FT FIXTURE)
( W .020 RTV THICKNESS)
(X0 CENTERED ON LEFT RAIL OF FIXT.1)
(Y0 AT EDGE OF PART)
(Z0 AT HIGHEST POINT OF FIXTURE)
(DC 732 AT 45PSI,GREEN PLASTIC TIP)
(5-15-09 REV.= )
G0 G90 G17 G40 G54
(DISPENSING)
G0 X-7.0 Y3.0 Z.5
M00 (VERIFY DISPENSE)
G0 X-.0858 Y-.5
G0 Z0
G01 Z-.26 F20.0 (SET NEEDLE HEIGHT FOR 1)
M00
M98 P17
G90 G0 Z.5
X-7.0 Y3.0
M00 (WIPE TIP OF DISPENSER)
Y24.0(INSTALL GLASS)
M30
%

O17
G0 G91 G17 G40
G01 Y12.18 F180
X.155 Y.155 r .175 F180 (motor stops)
M01
G01 X1.48 F180
G17 G02 Y-.155 X.155 r .175 F180 (motor stops)
M01
G01 Y-11.50 F180
G17 G02 X-.155 Y-.155 r .175 F180 (motor stops)
M01
G01 X-1.48 F180
G17 G02 X-.155 Y.155 r .175 F180 (motor stops)
G4P0
G01 Z -.02
G01 X.1
G01 X-.1
G01 X.1
M99
%


Don't hesitate to email.

I need immediate help as this is quite frustrating and I have limited experience writing G-code.

thanks,

Bryson

bkorsboen@lsgc



Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 05:16:18 PM
put a G64 near the beginning of your code, on the line with G0 G90 G17 G40 G54 would be fine.
Hood
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 05:24:21 PM
I tried that and it still doesn't not go as smoothly as I would like it too.

Thanks, but any other suggestions?

-bryson
Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 05:29:18 PM
Not really unless the acceleration of your motors are very low.
Hood
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 05:54:28 PM
How do I increase the acceleration of my motors?

-Bryson
Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 06:12:07 PM
You need to use the motor tuning page to get the best performance out of your motors, maybe you are already at the best performance, its the only thing I can think of at the moment.
Hood
Title: Re: Smoothness EXTREME need of help
Post by: Chaoticone on November 12, 2009, 06:13:14 PM
That is handled by your motor tuning. If you decide to give it a try write down the settings before you adjust any thing so you can revert back if necessary.  Config. tab, motortuning is where you will find it.

Brett
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 06:14:32 PM
I tried the motor tuning and the increments got all wacked out.  What are some safe settings that will get me the smoothness i need?
Title: Re: Smoothness EXTREME need of help
Post by: docltf on November 12, 2009, 06:14:46 PM
use g64 like hood said,and edit out those M01 stops.then it should go pretty good.
Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 06:17:08 PM
LOL I never even noticed the M01's ;D
Title: Re: Smoothness EXTREME need of help
Post by: Chaoticone on November 12, 2009, 06:21:30 PM
Quote
LOL I never even noticed the M01's

Sometimes you can't see the forest for the trees................................. or you are blind like myself and Hood.  ;D

Brett
Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 06:22:54 PM
blind, deaf and dumb oh and bald as well ;D
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 06:30:13 PM
Even with those mods in the G-code, the machine still does the same thing.  It follows the straight line at first, pauses for fraction of a second, then proceeds to make the arc and pauses again before making the horizontal line.

After the glue is dispensed, my rectangle is created with little piles of excess glue in the corners.

What can i DO?
Title: Re: Smoothness EXTREME need of help
Post by: docltf on November 12, 2009, 06:31:29 PM
no excuse for baldness with use of the modern glue.
Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 06:36:30 PM
Even with those mods in the G-code, the machine still does the same thing.  It follows the straight line at first, pauses for fraction of a second, then proceeds to make the arc and pauses again before making the horizontal line.

After the glue is dispensed, my rectangle is created with little piles of excess glue in the corners.

What can i DO?

possibly you will have to modify the speeds of the corners or adjust the rate of flow of the glue.


no excuse for baldness with use of the modern glue.


LOL

Title: Re: Smoothness EXTREME need of help
Post by: docltf on November 12, 2009, 06:40:05 PM
check the look ahead setting in general config menu and make sure it is set for more lines than one.
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 06:41:37 PM
what does the look ahead command do?
Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 06:45:18 PM
it looks ahead LOL
if its set to 1 then that will definitely be a problem butI think the default is 20 so it will only be lower if its been changed.
Hood
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 06:53:16 PM
It was set at 20.  I changed it 50 and then 1 and then 20 again and no difference.

 :-\
Title: Re: Smoothness EXTREME need of help
Post by: docltf on November 12, 2009, 06:53:38 PM
what are you drinking hood
Title: Re: Smoothness EXTREME need of help
Post by: Hood on November 12, 2009, 06:55:12 PM
Ha ha just been a long day
Title: Re: Smoothness EXTREME need of help
Post by: docltf on November 12, 2009, 07:08:01 PM
bryson
poat your current code.
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 07:09:21 PM
O1111 (DOES 1 COMPLETE 1 FT FIXTURE)
( W .020 RTV THICKNESS)
(X0 CENTERED ON LEFT RAIL OF FIXT.1)
(Y0 AT EDGE OF PART)
(Z0 AT HIGHEST POINT OF FIXTURE)
(DC 732 AT 45PSI,GREEN PLASTIC TIP)
(5-15-09 REV.= )
G0 G90 G17 G40 G54
(DISPENSING)
G0 X-7.0 Y3.0 Z.5
M00 (VERIFY DISPENSE)
G0 X-.0858 Y-.5
G0 Z0
G01 Z-.26 F20.0 (SET NEEDLE HEIGHT FOR 1)
M00
M98 P17
G90 G0 Z.5
X-7.0 Y3.0
M00 (WIPE TIP OF DISPENSER)
Y24.0(INSTALL GLASS)
M30
%

O17
G0 G91 G17 G40 G54
G01 Y12.18 F180
X.155 Y.155 r .175 F300
G01 X1.48 F180
G17 G02 Y-.155 X.155 r .175 F300
G01 Y-11.50 F180
G17 G02 X-.155 Y-.155 r .175 F300
G01 X-1.48 F180
G17 G02 X-.155 Y.155 r .175 F300
G4P0
G01 Z -.02
G01 X.1
G01 X-.1
G01 X.1
M99
%
Title: Re: Smoothness EXTREME need of help
Post by: docltf on November 12, 2009, 07:18:02 PM

G0 G90 G17 G40 G54
you have to add the G64

G0 G90 G17 G40 G54 G64

Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 12, 2009, 07:32:23 PM
I added the G64 with no avail.  I think that our machine is a piece and is not capable of making round turns without stopping.
Title: Re: Smoothness EXTREME need of help
Post by: tripleblack on November 12, 2009, 08:55:06 PM
try changing the cv distance tolerance to .1 , and the stop cv on angles to 89 in general config.also depending on your speed and toolpath , polylines instead of arcs work more smooth.
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 13, 2009, 01:43:19 PM
how do i create polylines?
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 13, 2009, 02:45:37 PM
CAn someone give me an example of code generated from polylines.

Please.

thanks,

-Bryson
Title: Re: Smoothness EXTREME need of help
Post by: SteinarN on November 13, 2009, 03:35:52 PM
What is your CV feedrate set to?
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 13, 2009, 03:39:24 PM
CV feedrate = +1
Title: Re: Smoothness EXTREME need of help
Post by: SteinarN on November 13, 2009, 03:43:04 PM
CV feedrate = +1

Increase your CV feedrate to the same value as your normal feedrate. Set the CV distance to 1 to 3 if you are in mm and to .05 to .15 if you are in inches.
Title: Re: Smoothness EXTREME need of help
Post by: SteinarN on November 13, 2009, 03:53:57 PM
And make sure your CV distance and CV feedrate leds is on.
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 13, 2009, 04:41:53 PM
how do i change the cv feedrate?
Title: Re: Smoothness EXTREME need of help
Post by: SteinarN on November 13, 2009, 04:46:36 PM
Enter the desired CV feedrate in the DRO next to the CV feedrate button on the setting page, then hit enter.
Title: Re: Smoothness EXTREME need of help
Post by: bryson on November 13, 2009, 04:46:43 PM
wow!

That did it.

I cant believe that all i had to do was increase the CV rate.

What does CV stand for and what does it do?


Thank you very much.
Title: Re: Smoothness EXTREME need of help
Post by: SteinarN on November 13, 2009, 05:01:12 PM
The CV feedrate is the maximum allowed feedrate when Mach3 is "cutting corners". Mach slows down to this feedrate if it's lower than the programmed feedrate when cutting corners in constant velocity mode. If this feedrate is to low Mach behaves almost as in exact stop. A feedrate of 1 (inches or mm) per minute is VERY slow and makes the movement almost like exact stop.

You also may want to uncheck the "Stop CV on angles > x Degrees" under the Config > General Config menu page.
Title: Re: Smoothness EXTREME need of help
Post by: SteinarN on November 13, 2009, 05:10:39 PM
The phrase "CV" stands for Constant Velocity.