Machsupport Forum
G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: mgilbert754 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
-
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
-
YEP just run the dispense function in INC mode.
(;-) TP
-
AWESOME- this works GREAT! THANK YOU VERY MUCH!!