Hello
Guest
it is
May 12, 2025, 11:44:55 PM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
G-Code, CAD, and CAM
/
G-Code, CAD, and CAM discussions
/
G code strategy
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: G code strategy (Read 6294 times)
0 Members and 1 Guest are viewing this topic.
mgilbert754
10
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
Logged
Overloaded
4,923
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
Logged
BR549
6,965
Re: G code strategy
«
Reply #2 on:
July 27, 2012, 07:11:07 PM »
YEP just run the dispense function in INC mode.
(;-) TP
Logged
mgilbert754
10
Re: G code strategy
«
Reply #3 on:
July 28, 2012, 03:04:19 PM »
AWESOME- this works GREAT! THANK YOU VERY MUCH!!
Logged
Print
Pages:
1
Go Up
« previous
next »