Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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
-
put a G64 near the beginning of your code, on the line with G0 G90 G17 G40 G54 would be fine.
Hood
-
I tried that and it still doesn't not go as smoothly as I would like it too.
Thanks, but any other suggestions?
-bryson
-
Not really unless the acceleration of your motors are very low.
Hood
-
How do I increase the acceleration of my motors?
-Bryson
-
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
-
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
-
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?
-
use g64 like hood said,and edit out those M01 stops.then it should go pretty good.
-
LOL I never even noticed the M01's ;D
-
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
-
blind, deaf and dumb oh and bald as well ;D
-
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?
-
no excuse for baldness with use of the modern glue.
-
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
-
check the look ahead setting in general config menu and make sure it is set for more lines than one.
-
what does the look ahead command do?
-
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
-
It was set at 20. I changed it 50 and then 1 and then 20 again and no difference.
:-\
-
what are you drinking hood
-
Ha ha just been a long day
-
bryson
poat your current code.
-
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
%
-
G0 G90 G17 G40 G54
you have to add the G64
G0 G90 G17 G40 G54 G64
-
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.
-
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.
-
how do i create polylines?
-
CAn someone give me an example of code generated from polylines.
Please.
thanks,
-Bryson
-
What is your CV feedrate set to?
-
CV feedrate = +1
-
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.
-
And make sure your CV distance and CV feedrate leds is on.
-
how do i change the cv feedrate?
-
Enter the desired CV feedrate in the DRO next to the CV feedrate button on the setting page, then hit enter.
-
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.
-
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.
-
The phrase "CV" stands for Constant Velocity.