Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: bisctboy on July 18, 2016, 07:25:05 PM

Title: How to automatically move to a coordinate after G-Code is done?
Post by: bisctboy on July 18, 2016, 07:25:05 PM
I have a part that I cut out of aluminum which is locked down on a jig. I usually cut out 50 - 100 pieces of the same part at a time. My usual routine is to wait until the G-Code is done running, wait for the spindle to raise 0.25 inch per the G-Code, and then manually jog the spindle over to a negative X coordinate so I have room to unscrew the part from the jig. I would like to add the negative X coordinate in the G-Code so I don't have to push the "left arrow" and manually move the spindle out of the way. I would think there is a way for me to add a line at the bottom of the G-Code that does this as part of the the whole G-Code. As an example, I would like to have the spindle move to the coordinates of Z0.25, X-4.3, and Y-2.0 once the part is cut out...how do I do this?

Thanks!

Marshall
Title: Re: How to automatically move to a coordinate after G-Code is done?
Post by: Jarhead on July 18, 2016, 09:01:05 PM
You can just add it manually. Are you looking for a way to have it added automatically?
Title: Re: How to automatically move to a coordinate after G-Code is done?
Post by: bisctboy on July 18, 2016, 09:08:29 PM
Either...how do I add it manually? I know I can open up the actually G-Code in a text program. What would be the text I insert at the end?

Thanks,

Marshall
Title: Re: How to automatically move to a coordinate after G-Code is done?
Post by: Jarhead on July 19, 2016, 08:35:07 AM
http://www.cnccookbook.com/CCCNCGCodeRelativeAbsoluteCoordinateMoves.htm
Title: Re: How to automatically move to a coordinate after G-Code is done?
Post by: bisctboy on July 19, 2016, 08:54:52 AM
Thanks!

So if I wanted my spindle to move to coordinates X-4.3, Y-2.0 after the piece is cut, I would insert the following at the end of the G-Code?

G0 X-4.3 Y-2.0

Is this correct?

Marshall
Title: Re: How to automatically move to a coordinate after G-Code is done?
Post by: Brian K on December 17, 2016, 02:06:52 PM
Can you not set a work coordiante for that?  G54 should call the distance from parked or home to the 0x, 0y corner of your table. I have noticed that a lot of home builds do not set a home position and use no work coordinate offsets.  Why is that?
Title: Re: How to automatically move to a coordinate after G-Code is done?
Post by: ger21 on December 17, 2016, 05:42:55 PM
I have noticed that a lot of home builds do not set a home position and use no work coordinate offsets.  Why is that?

Technically, just about everyone uses work offsets. When they zero the axis to set XY zero, they're setting the offsets for G54.

A lot of hobby users don't use home switches because they don't do anything that requires them.