Hello Guest it is July 15, 2019, 04:57:01 PM

Author Topic: dwell for the spindle  (Read 4447 times)

0 Members and 1 Guest are viewing this topic.

dwell for the spindle
« on: November 13, 2009, 05:32:43 PM »
Hello all,

Its Bryson again.

As you have seen on my previous smoothness topic I have fixed the smoothness problem.  The CV rate was far too low and my program was acting like an exact stop program.

New Dilemma.

As you all know "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 and we use a step peddle to activate the 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.    The clue dispensed is at a fixed amount and at each step the glue piles up."


I have kind of jimmy rigged a connection from the computer to the XY table in place of the foot step peddle.  I used the port for the spindle and have the commands M3 and M5 to start and stop the air gun in place of the spindle.

My problem is, at the end of the program when the M5 is called the dwell keeps the Air Gun(spindle) running for 1 sec or so and Glue piles up.  I need to reduce the 1 second into 0 seconds.  I want the M5 to stop on a dime.

Any suggestions?

Below is the code.  I already put dwell in milliseconds and it still doesn't work.

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 G64
M3 (Glue ON)
G01 Y12.23 F160
X.155 Y.155 r .175 F300
G01 X1.48 F160
Y-.155 X.155 r .175 F300
G01 Y-11.48 F160
X-.155 Y-.155 r .175 F300
G01 X-1.48 F160
X-.155 Y.155 r .175 F300
G4P0
M5 (Glue OFF)
G01 Z -.02
G01 X.1
G01 X-.1
G01 X.1
M99
%


Thanks,

-Bryson

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: dwell for the spindle
« Reply #1 on: November 13, 2009, 05:53:38 PM »
Hi, Bryson

Make sure your settings in Config, Ports & Pins, Spindle Setup, "CW Delay spin-Down are set to Zero.

Chip

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: dwell for the spindle
« Reply #2 on: November 17, 2009, 03:51:26 PM »
Hi, Bryson

Are you venting the residual air pressure when you turn off the air to the glue gun. ?

Take out the G4p0 and you may need to put the M5 earlier in your G-code.

O17
G0 G91 G17 G40 G54 G64
M3 (Glue ON)
G01 Y12.23 F160
X.155 Y.155 r .175 F300
G01 X1.48 F160
Y-.155 X.155 r .175 F300
G01 Y-11.48 F160
X-.155 Y-.155 r .175 F300
G01 X-1.48 F160
M5 ;-----------------------(Glue OFF)
X-.155 Y.155 r .175 F300
;--------------------------G4P0
;--------------------------M5 (Glue OFF)
G01 Z -.02
G01 X.1
G01 X-.1
G01 X.1
M99
%

Chip
Re: dwell for the spindle
« Reply #3 on: November 17, 2009, 05:52:19 PM »
I put the M5 stop earlier in the code and the glue piles up whenever i call out that M5 command.  I just need it to stop at the exact moment that I tell it too.

Is this a dwell problem. And if so, is there any way to completely get rid of the dwell feature as it does not apply to us and never will.

thanks,

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: dwell for the spindle
« Reply #4 on: November 17, 2009, 06:07:17 PM »
Hi, Bryson

Theirs been allot of discussion with laser users on this, You could use the A axis direction pin and do away with the M3/M5's completely in your G-code.

Chip
Re: dwell for the spindle
« Reply #5 on: November 17, 2009, 06:08:35 PM »
Can you please explain how this would work?

thanks

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: dwell for the spindle
« Reply #6 on: November 17, 2009, 06:24:55 PM »
Hi, Bryson

A small move in A axis pos will turn Dir pin high and a neg turn will turn it off.

In the end you may need a positive way to shutoff the glue flow at the nozzle.

Chip
« Last Edit: November 17, 2009, 06:31:09 PM by Chip »
Re: dwell for the spindle
« Reply #7 on: November 17, 2009, 06:32:48 PM »
I dont think that we utilize the a axis.  Is there a setting that i need to access to turn the use of it on?

And what code can i use to move the A axis?

Bryson

Offline Chip

*
  • *
  •  2,057 2,057
  • Gainesville Florida USA
    • View Profile
Re: dwell for the spindle
« Reply #8 on: November 17, 2009, 06:51:53 PM »
Hi, Bryson

Ports & pins, Turn it on and assign pin's and port #, You'll need some G-code to insure it's off to start with.

Then G0 A.01 for on and G0 A0 for off, You may need to change the Dir Low active to get the on/off correct.

Chip
« Last Edit: November 17, 2009, 06:55:03 PM by Chip »
Re: dwell for the spindle
« Reply #9 on: November 17, 2009, 08:29:16 PM »
 i followed your directions and your settings and nothing happens when i type G0 A.01 or G0 A0 in the midi tab or code.

-bryson