Hello Guest it is March 19, 2024, 04:32:41 AM

Author Topic: G code strategy  (Read 2335 times)

0 Members and 1 Guest are viewing this topic.

G code strategy
« on: July 27, 2012, 05:05:35 PM »
Hi guys- can anyone help this newbie?

I have built a 5 axis machine- it is for dispensing 2 chemicals into hundreds of little vials. I use the x-y-z commands to position my dispensing tips to the top of each vial.

Now is the tricky part.

I have 2 pumps controlled by stepper motors for the "A" and "B" axis. I tell them to rotate 6 revolutions to dispense the correct amount of liquid.

Now here is the trouble- I have to keep incrementing the pumps by 6 with every dispense. Does anybody know any way to "resent" the "A" or "B" axis references back to zero each time? That way it will dispense correctly and I don't have to add "6" to each event (it's hundreds of lines long.)

Any help would be greatly appreciated!

Mark
Re: G code strategy
« Reply #1 on: July 27, 2012, 05:55:29 PM »
Use G91 Incremental Mode for the pump motors.
or ...
Could run the pumps in a macro...
 G91 A-B dispense, then back to G90 for the x-y-z moves.
Just a thought,
Russ

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: G code strategy
« Reply #2 on: July 27, 2012, 07:11:07 PM »
YEP just run the dispense function in INC mode.

(;-) TP
Re: G code strategy
« Reply #3 on: July 28, 2012, 03:04:19 PM »
AWESOME- this works GREAT! THANK YOU VERY MUCH!!