Hello Guest it is April 19, 2024, 07:19:35 AM

Author Topic: How do I do an XY axis tool offset rather than a Z?  (Read 2594 times)

0 Members and 1 Guest are viewing this topic.

How do I do an XY axis tool offset rather than a Z?
« on: May 15, 2014, 05:49:27 AM »
We are building a modified CNC machine that will drip a stream of paint instead of turning a spindle. The way the machine is built the table moves and the paint heads are stationary. The paint heads will be laid out in several rows together and there will be 50 of them. (See attached picture for an illustration)

My Question: When we switch from one paint head to the next, how would you recommend doing this "tool change" in the G-code?

A normal tool change would account for a Z axis tool offset. In this case all of our paint heads are the same Z position (stationary), but the X and Y positions are different for each. Should I handle this as a tool change? Or write a custom macro? Or should I just write Gcode to move at relative coordinates to the new tool position?

Would love to hear from some voices of experience before starting down one of these roads!
Re: How do I do an XY axis tool offset rather than a Z?
« Reply #1 on: May 15, 2014, 06:41:11 AM »
You could assign each head an offset number using G59P1 thru G59P50 (number the heads accordingly for ease of recognition).
Enter the offset info for each and just include the G59P* in the code as necessary.
Probably a better way coming soon.

Regards,
Russ
Re: How do I do an XY axis tool offset rather than a Z?
« Reply #2 on: May 15, 2014, 06:51:14 AM »
 :)
« Last Edit: May 15, 2014, 07:01:14 AM by Overloaded »
Re: How do I do an XY axis tool offset rather than a Z?
« Reply #3 on: May 16, 2014, 01:55:51 AM »
Russ, thank you so much. That looks amazing! I didn't realize that I could use G59 to do that many offsets.

I can't wait to get this tested out. Many, many thanks!

-Sam

(Like your quotes, by the way!)